I think the best solution would be to make gdn::Format->Date overridable as many other functions, such as Plural, since setting proper locale does not do the job for some languages (it would be better to format text in different way). For instance, in russian locale-formatted string looks like, say, "Июнь 24", while proper way is "24 июня".
Gdn_Format::Date() uses strftime() which can display month in genitive case. Use token %B. However, I think that anyway need to make overridable Format::Date() function, +1 @TiGR
@S token %B does not return month in genitive case on various server configurations (quite common problem, btw, AFAIK it works better only on FreeBSD servers, all linux servers return nominative form).
I'm interested as well in the date change issue. Can someone hep translate "S"'s idea into something that easier to understand and implement for the time beeing?
Thanx
VanillaAPP | iOS & Android App for Vanilla - White label app for Vanilla Forums OS
VanillaSkins | Plugins, Themes, Graphics and Custom Development for Vanilla
Comments
Most likely I found the reason, why you cannot localize Months & Days (yet): http://github.com/vanillaforums/Garden/commit/ce6c2600a98ed2a8571424edc3c74fb42e1891ed#commitcomment-98474
or manually edit necessary lines?
http://php.net/manual/en/function.setlocale.php
// Test on Linux
locale -a =>
setlocale($LocaleName. '.'. $Encoding);
// php script
$x[] = setlocale(LC_ALL, 'sk_SK'); // Fail.
huh?
http://vanillaforums.org/blog/translation-improvements-in-vanilla-2/comment-page-1/#comment-2238
Here is more information about various locale-related bugs in PHP: http://www.onphp5.com/article/22
It is the only thing to do - modify your theme
P.S: We can't add FreeBSD as a requirement for Vanilla, right? Then we need function override.
I'm interested as well in the date change issue. Can someone hep translate "S"'s idea into something that easier to understand and implement for the time beeing?
Thanx
Vanilla Forums COO [GitHub, Twitter, About.me]
Furthermore: is there a setting to change date and time format?
Does anyone have an idea?