|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-01-05 18:58 UTC] iliaa@php.net
[2003-01-11 18:19 UTC] vigna at acm dot org
[2003-01-11 23:11 UTC] sniper@php.net
[2003-01-13 18:50 UTC] iliaa@php.net
[2003-01-27 22:32 UTC] sniper@php.net
[2003-05-20 03:20 UTC] b dot pura-vida at caramail dot com
[2003-05-20 05:06 UTC] vigna at acm dot org
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 03:00:01 2025 UTC |
After installing Red Hat Linux 8.0 with Apache 2, gettext support stopped working. I am using the sequence of calls putenv("LANG=".$_ERW_locale); setlocale(LC_MESSAGES, $_ERW_locale); bindtextdomain("ERW", $_ERW_localePath); textdomain("ERW"); to bind the text domain, and this worked perfectly in several different ERW installations (http://erw.dsi.unimi.it/) up to the upgrade. It is very difficult to give any other hint. If you create a script like <?php putenv("LANG=it_IT"); setlocale(LC_MESSAGES, "it_IT"); bindtextdomain("ERW", "/home/vigna/cvs/ERW/php/locale"); textdomain("ERW"); print _("something translated"); ?> and the translation file is located as follows /home/vigna/cvs/ERW/php/locale/it_IT/LC_MESSAGES/ERW.mo the string does not get translated. The complete lack of feedback of any of the gettext package functions makes it also very difficult to understand what's going wrong.