ID: 49349
Comment by: bengibollen at hotmail dot com
Reported By: raulsalitrero at gmail dot com
Status: Assigned
Bug Type: Gettext related
Operating System: win32 only - windows xp sp3
PHP Version: 5.3.0
Assigned To: pajoye
New Comment:
I have got this problem as well. I'd like to add that the system
default language/locale gets translated. But no other languages.
Example:
I have windows vista, English version, and the system default locale is
set to Swedish. The strings that are supposed to be translated are all
written in English; _("Hello World!").
I have made three translations:
./se/LC_MESSAGES/default.mo
./de/LC_MESSAGES/default.mo
./en/LC_MESSAGES/default.mo /*nonsense words/phrases only for
testing*/
I always get the Swedish translation no matter what configurations* I
try. If I rename the Swedish translation file I get no translation at
all, only the default string.
* I've tried all kind of parameters for the following:
setlocale(LC_ALL, ...);
putenv("LANGUAGE=...");
putenv("LANG=...");putenv("LC_ALL=...");
Previous Comments:
------------------------------------------------------------------------
[2009-12-08 13:57:06] paulw at torchtrust dot org
I am also getting this big. Is it fixed in 5.3.1? Is there a work
around?
Thanks
Paul
------------------------------------------------------------------------
[2009-10-14 13:45:51] roger dot olivier at gmail dot com
As asked by [email protected] you can found here an archive with a working
script with 5.2.5 and not with 5.3.0
Tested on Xp pro Sp3
http://www.lanforums.com/dl/gettext-setlocale_BUG_5.3.0.zip
Unzip and launch index.php.
Expected result => print "Hello world" on screen
Actual result => print "bonjour le monde" on screen
------------------------------------------------------------------------
[2009-10-02 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2009-09-24 18:05:55] [email protected]
Yes, but nobody managed to get to it at this stage. I assign it to me
so I won't forget to check this problem.
To ease my work it would be nice if someone can zip a working script
with 5.2, with mo/po files, where it should be placed, etc. and
describe. That will shorten the time I will have to spend on the issue.
------------------------------------------------------------------------
[2009-09-24 16:51:48] bkraul at yahoo dot com
I was wondering this this issue is expected to be resolved in the near
future? Right know I have gotten around it by reverting back to php
5.2.11. Is this a problem with the extension itself?
Regards,
Belman Kraul
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/49349
--
Edit this bug report at http://bugs.php.net/?id=49349&edit=1