Re: gettext i18n
| From: | Desi | Date: | Thu, 04 Sep 2003 14:03:47 +0000 |
| Subject: | Re: gettext i18n | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161653@lists.php.net to get a copy of this message | ||
Hello,
Try:
putenv("LANG=de_DE") . '<br>';
putenv("LC_ALL=de_DE") . '<br>';
setlocale(LC_ALL, "de_DE", "german") . '<br>';
Desi
Catalin Trifu wrote:
Hi,I want to add i18n support for my web site, butit doesn't seem to work.PHP 4.3.3., Apache 1.3.28, Mandrake 9.0 Here comes the test code. As you can see I try all sorts of things.<?phpecho putenv("LANG=de") . '<br>'; echo putenv("LC_ALL=de") . '<br>'; echo setlocale(LC_ALL, "de", "german") . '<br>'; echo bindtextdomain("messages", "/www/locale") . '<br>'; echo textdomain("messages") . '<br>';echo gettext("User") . '<br>';echo strftime ("%A %e %B %Y", time()) . '<br>';?>The funny thing is that strftime prints correctly. Any ideasCatalin.