Re: gettext i18n
| From: | Desi | Date: | Thu, 04 Sep 2003 14:16:15 +0000 |
| Subject: | Re: gettext i18n | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-161655@lists.php.net to get a copy of this message | ||
Send me your messages.po file, I try it... Gettext is cool, it works very well for me...
Desi
Catalin Trifu wrote:
Hi,Thanks for the reply, but it doesn't workthis way either.in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/ LC_MESSAGES/ messages.mobtw! on win32 it works :(Catalin "Desi" <desi@mediate.sk> wrote in message news:20030904140349.97568.qmail@pb1.pair.com...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, but it 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 ideas Catalin.