Comment 1 by Baptiste Db, May 17, 2010
Looks like strftime() is systemwide locale dependant.
in Pluf_Template_dateFormat:
setting this
setlocale (LC_TIME, 'FR.utf8','fra');
before
return strftime($format, strtotime($date));
did the trick for me.
Maybe we should have a config var to use together with setlocale to
provide a utf-8 compatible output ?
Comment 2 by Baptiste Db, Jun 15, 2010
Other idf, other config, same strftime issue.
I don't understand, because there, the locales seem set up correctly
:
# locale
8<--
LC_TIME="fr_FR.UTF-8"
8<--
A phpinfo confirms this point. However, I *have to set the locale
immediately before the strftime call*.
setlocale(LC_TIME, 'fr_FR.UTF8', 'fr.UTF8', 'fr_FR.UTF-8',
'fr.UTF-8');
(looks more correct than my precendent codeline)
I tried to set this in the index.php, but it did not work.
So maybe this is a fcgi together with another php webapp related pb.
Comment 3 by Baptiste Db, Aug 2, 2010
okay, the locale was set in the Translation but they were not forced to utf-8... See attached patch
Comment 4 by Thomas Keller, Mar 10, 2011
Slightly changed (removed the dublettes) and committed in revision 0b090e2.
Status:
Fixed
Sign in to reply to this comment.
Reported by Baptiste Db, May 5, 2010