Changing date language

Permalink Browser Info Environment
Hi, I didn't find a place where I can change date language (time zone is correct). On Portfolio and Blog pages date text like "3 days ago" is displayed in english and like to translate it but wherecan I do it?

Type: Discussion
Status: In Progress
pedroC5
View Replies:
c5hub replied on at Permalink Reply
c5hub
The date you are referring to uses a script called 'Timeago' whilst the author of the script does offer translated version of the script you would need to manually add this unfortunately if one exists:

https://github.com/rmm5t/jquery-timeago/tree/master/locales...
pedroC5 replied on at Permalink Reply
pedroC5
I found it from the list and drop it to concrete/js folder via ftp. Any idea how I can now change timeago language from english to finnish in the theme?
c5hub replied on at Permalink Reply
c5hub
Dropping the file in to concrete/js will have no effect (you should remove this) - you need to amend the relevant js files within the Equinox package. We do not support this so please ensure you have a back up of the files and make a note of the changes so you can re-implement should you upgrade.

For example, the masonry page list js file can be found here
packages/equinox/blocks/page_list/templates/masonry/view.js

You would need to replace lines 64 - 79 from...
prefixAgo: null,
prefixFromNow: null,
suffixAgo: "ago",
suffixFromNow: "from now",
inPast: 'any moment now',
seconds: "less than a minute",
minute: "about a minute",
minutes: "%d minutes",
hour: "about an hour",
hours: "about %d hours",
day: "a day",
days: "%d days",
month: "about a month",
months: "%d months",
year: "about a year",

To...
prefixAgo: null,
prefixFromNow: null,
suffixAgo: "sitten",
suffixFromNow: "tulevaisuudessa",
seconds: "alle minuutti",
minute: "minuutti",
minutes: "%d minuuttia",
hour: "tunti",
hours: "%d tuntia",
day: "päivä",
days: "%d päivää",
month: "kuukausi",
months: "%d kuukautta",
year: "vuosi",
years: "%d vuotta",

This type of customization is outside of our support so more of a pointer...
pedroC5 replied on at Permalink Reply
pedroC5
This was helpful, thanx.

concrete5 Environment Information

Mac OS X Yosemite

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.1.56 (KHTML, like Gecko) Version/9.0 Safari/601.1.56

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.