Re: gettext i18n

From: Date: Thu, 04 Sep 2003 14:09:43 +0000
Subject: Re: gettext i18n
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-161654@lists.php.net to get a copy of this message
Hi, Thanks for the reply, but it doesn't work this way either. in /www/locale I do have de/ LC_MESSAGES/ messages.mo de_DE/ LC_MESSAGES/ messages.mo btw! 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. > > > > <?php > > echo 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.

« previous php.general (#161654) next »