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.

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to