datetime - How do you translate the timezone abbreviation in PHP -
datetime - How do you translate the timezone abbreviation in PHP -
when using php homecoming timezone abbreviation either date('t') or strftime('%z') result not translate localized version of these abbreviations.
in french have been told next @ right translations:
edt == hae
est == hne
i have tried next code example:
<?php setlocale(lc_all, 'fr_fr'); echo strftime('%z'); echo date('t'); ?> all attempts produce est/edt rather translated versions.
i same on mac , linux.
i inspected gettext mo file french, this:
/usr/local/bin/msgunfmt /usr/share/locale/fr/lc_messages/texinfo.mo this shows translations things months , days. should translations if do:
echo strftime("%a %e %b %y\n"); // gives "vendredi 27 juin 2014" but translation file not appear contain translations est, or edt - or in fact others looked for.
so guess reply these strings not translated in standard locale packages.
php datetime localization translation
Comments
Post a Comment