gettext

From: Date: Fri, 18 Apr 2003 14:36:03 +0000
Subject: gettext
Groups: php.general 
Request: Send a blank email to php-general+get-144411@lists.php.net to get a copy of this message
Hello, I'm using gettext in my web. I've done every step that is in the php.net , but it doesn't work. No error messages, only it doesn't work. I try with many examples (from the manual, webs...)..for example (myPHPApp.php): <?php putenv ("LANG=es"); bindtextdomain ("myPHPApp", "./locale"); textdomain ("myPHPApp"); print (gettext ("Welcome to My PHP Application")); ?> or the same but using setlocale(LC_ALL, "es"); before bindtextdomain. I try with setlocale(LC_ALL, 'es'); instead putenv. I've create the directory /locale/es/LC_MESSAGES/ and there, i've create myPHPApp.po and myPHPApp.mo and there're no errors. But when i try to see my page i see "Welcome to My PHP Application" instead of "my new message in Spanish". Searching in the web, i've found people with the same proble but without solution. Any idea? It will drive me crazy!!!! Thanks P.D:I cann't use alias "_" instead "gettext", it ignores it.

« previous php.general (#144411) next »