gettext i18n

From: Date: Thu, 04 Sep 2003 13:31:14 +0000
Subject: gettext i18n
Groups: php.general 
Request: Send a blank email to php-general+get-161650@lists.php.net to get a copy of this message
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 (#161650) next »