In IRC user PJMODOS pointed out to me that in his language (CZ) the
translation for "days ago" didn't work. In Czech, they have a
different way of expressing "two days ago" through "five days ago" but
the translation file just supports singular (1 day ago) and plural (n
days ago).
I've overhauled the language system a bit. Now any member can be
either an object (string, array, etc) OR a function. This means that
if there's a language setting like:
daysAgo: '{delta} days ago'
where {delta} is an integer, you can just leave it as it is above (a
string) OR write a function that returns the right string:
daysAgo: function(delta) {
if (delta >=2 && delta <= 5) return '{delta} whatever';
return '{delta} something else';
}
This is the case regardless of what the type should be. So if it's
supposed to return an array an array so long as your function returns
an array you can do whatever you need to.
Note that this means I've changed all the language files a bit, so if
you have changes you want to make, you should pull from my current
version:
http://github.com/anutron/mootools-more/tree/master/Source/Localization
I have pulled in all of the lang files posted here thus far. If you
have submitted one here and you don't see it at the link above, please
post and let me know.
-Aaron