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

 ID:               27243
 Comment by:       outliver at web dot de
 Reported by:      fch at hexanet dot fr
 Summary:          Gettext cache seems to be not reset when .mo file is
                   updated
 Status:           Bogus
 Type:             Bug
 Package:          Gettext related
 Operating System: windows 98 SE
 PHP Version:      4.3.4

 New Comment:

There should be a method to clear its cache then.


Previous Comments:
------------------------------------------------------------------------
[2004-02-15 16:08:02] sni...@php.net

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



------------------------------------------------------------------------
[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/bug.php?id=27243&edit=1

Reply via email to