[Phpmyadmin-devel] translating date/time related strings in js/messages.php
Michal Čihař
michal at cihar.com
Sun Feb 6 22:54:45 CET 2011
Hi
Dne Sun, 6 Feb 2011 13:47:08 +0100
Dieter Adriaenssens <dieter.adriaenssens at gmail.com> napsal(a):
> I noticed that date/time related strings, like days of week, name of
> months, are listed in js/messages.php, using gettext.
> It seems a bit strange that these should be translated, as these
> translations are already done and available. (using strftime(), f.e.).
>
> Why is it done this way in js/messages.php?
We need to get all names and feed it into javascript code. We could do
it with some tricks using strftime as well, but I think it's more
readable this way.
Also I'm afraid of strftime() and setlocale support on various
platforms like Windows.
--
Michal Čihař | http://cihar.com | http://phpmyadmin.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20110206/02f6cb39/attachment.sig>
More information about the Developers
mailing list