From:             [EMAIL PROTECTED]
Operating system: Linux Red Hat 8.0
PHP version:      4.2.2
PHP Bug Type:     Gettext related
Bug description:  gettext stopped working

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.

-- 
Edit bug report at http://bugs.php.net/?id=21447&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21447&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21447&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21447&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21447&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21447&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21447&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21447&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21447&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21447&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21447&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21447&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21447&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21447&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21447&r=gnused

Reply via email to