ID:               21447
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Gettext related
 Operating System: Linux Red Hat 8.0
 PHP Version:      4.2.2
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




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

[2003-01-13 18:50:14] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

[2003-01-11 23:11:40] [EMAIL PROTECTED]

restored correct summary.


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

[2003-01-11 18:19:40] [EMAIL PROTECTED]

No, I am using a stock Red Hat 8.0 and by default it should use the old
process-per-request model (at least, httpd -l gives 

Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c

Any suggestion?

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

[2003-01-05 18:58:36] [EMAIL PROTECTED]

Which worker model are you using?
If you are using a thread based (worker) model you should be aware that
gettext library is NOT thread safe and therefor you will encounter
problems when you try using it within the threaded enviroment.

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

[2003-01-05 18:55:58] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=21447&edit=1

Reply via email to