[PHP-DOC] Bug #9648 Updated: Gettext does not work (id #8969) From: andy <email protected>
Date: 07/21/01

ID: 9648
Updated by: andy
Reported By: stefan <email protected>
Old Status: Open
Status: Bogus
Bug Type: Documentation problem
Operating System: Linux Slackware 7.1
PHP Version: 4.0 Latest CVS (09/03/2001)
New Comment:

works fine on Red Hat 7

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

[2001-03-09 06:27:03] sniper <email protected>

putenv("LANG=sv");

works for me just fine on Red Hat 6.2.

--Jani

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

[2001-03-09 05:15:07] stefan <email protected>

Regarding gettext won't translate strings (id #8969), I found that if you use:

putenv ("LC_ALL=sv"); // or any other language

instead of:

putenv ("LANG=sv");

it works perfekt.

I can't see it documented anywhere and I'm sure there are more than me who have stumbled into this problem..

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

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