ID:               27243
 Updated by:       [EMAIL PROTECTED]
 Reported By:      fch at hexanet dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         Gettext related
 Operating System: windows 98 SE
 PHP Version:      4.3.4
 New Comment:

This is gettext feature. Not PHP bug -> bogus.




Previous Comments:
------------------------------------------------------------------------

[2004-02-13 12:49:49] fch at hexanet dot fr

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.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27243&edit=1

Reply via email to