From: Mario C. <mar...@wa...> - 2006-03-04 13:48:09
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> I had this problem. And I found a solution that i posted on this list in january of 2005.<br> <br> Here it is.<br> <br> <table width="100%"> <tbody> <tr> <td bgcolor="#dddddd" nowrap="nowrap">2003-01-05 05:40 </td> </tr> <tr> <td> <pre> I had problems in order to have the internalization work correctly. After having read the mailing list, i found an (very good) arricle at the URL <a href="http://zez.org/article/articleprint/42/" target="_NEW">http://zez.org/article/articleprint/42/</a> which explains the internationalization with PHP and gettext (this article is referenced in the news of phpesp). That"s why i have modified PHPESP.INI by replacing setlocale (LC_ALL, $ESPCONFIG["lang"]) by what is written in this former article, that is : putenv ("LC_ALL=" . $ESPCONFIG["lang"]) And then it worked (at least for the french language that i have tried). NOTE : I have installed PHP 4.1.1 and APACHE 1.3 When i tried to install the gettext extension with PHP 4.2.3 and APACHE 2, i had problems. A message told me that it couldn"t find the php_gettext.dll although this dll was present and that libintl-1.dll was well installed in my WINNT/SYSTEM32 directory (i have windows 2000 professional). That"s why i decided to install back prior versions of APACHE and PHP. Now, it works. </pre> </td> </tr> </tbody> </table> <br> <br> Wish it can help you.<br> <br> <br> <br> Ron Wheeler a écrit : <blockquote cite="mid...@ar..." type="cite">The administration page is still in English even though the test page output seems to indicate that everything is set to French. <br> How is the language string selected? <br> <br> Ron <br> <br> PHP Information <br> <br> * Version: 5.0.4 <br> * OS: Linux <br> * SAPI: apache2handler <br> * register_globals: No <br> * magic_quotes_gpc: No <br> * magic_quotes_runtime: No <br> * safe_mode: No <br> * open_basedir: <br> <br> PHP Extensions <br> <br> * dBase: No <br> * GD: Yes -- 2.0 or higher <br> * GNU Gettext: Yes <br> * LDAP: Yes <br> * MySQL: Yes <br> * PHP Extension Dir (compiled): /usr/lib64/php/extensions <br> * PHP Extension Dir (run time): /usr/lib64/php/extensions <br> <br> phpESP Settings <br> <br> * Expected ESP_BASE: /home/usr/local/www/www.eduxxx <br> * Expected base_url: <a class="moz-txt-link-abbreviated" href="http://www.eduxxx">www.eduxxx</a> <br> * *Loading phpESP.ini.php ...* <br> * ESP_BASE: /home/usr/local/www/www.eduxxx/ <br> * base_url: <a class="moz-txt-link-freetext" href="http://www.eduxxx">http://www.eduxxx</a> <br> * Version: 1.8 <br> * Debug: No <br> <br> phpESP Language Settings <br> <br> * GNU Gettext: Real <br> * default_lang: fr_FR <br> * current lang: fr_FR <br> * available langs: da_DK, de_DE, el_GR, en_US, es_ES, fi, fi_FI, <br> fr_FR, hu_HU, it_IT, ja_JP, nl_NL, pt_BR, pt_PT, sv_SE <br> (da, de, el, en, es, fi, fr, it, ja, nl, pt, sv) <br> * GNU Gettext test: Passed <br> * Catalog Open Test: Yes <br> <br> PHP Session Test <br> <br> * session.save_path: /tmp <br> * Counter: 2 <br> <br> <br> <br> ------------------------------------------------------- <br> This SF.Net email is sponsored by xPML, a groundbreaking scripting language <br> that extends applications into web and mobile media. Attend the live webcast <br> and join the prime developer group breaking into this new coding territory! <br> <a class="moz-txt-link-freetext" href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642</a> <br> _______________________________________________ <br> phpESP-general mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:php...@li...">php...@li...</a> <br> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/phpesp-general">https://lists.sourceforge.net/lists/listinfo/phpesp-general</a> <br> <br> <br> </blockquote> </body> </html> |