|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-02-15 16:08 UTC] sniper@php.net
[2010-05-25 16:57 UTC] outliver at web dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 22:00:01 2025 UTC |
Description: ------------ In my .po file, there is : msgid "Hello" msgstr "Bonjur" gettext() return : Bonjur If I update my .po file with : msgid "Hello" msgstr "Bonjour" and generate a new .mo file, gettext() return again : Bonjur Apache must be restarted to gettext() return : Bonjour Reproduce code: --------------- <?php putenv('LANG=myLocale'); setlocale(LC_ALL, 'myLocale'); bindtextdomain('mydomain', 'path_to_locale_directory'); textdomain('mydomain'); echo gettext('Hello'); ?> Expected result: ---------------- If .mo file is updated, gettext() must return updated value.