Anything magic about PHP4 and gettext?

2002-06-07 Thread Cajus Pollmeier
Hi!

Maybe its a bit offtopic - sorry. I'm trying to get php to translate
output via gettext on a woody machine. Obviously the code running
on the old redhat box is not working on Debian.

Do I have to add something special in php.ini or in the script?

8<
putenv ("LANG=de_DE");

setlocale("LC_ALL", "");
bindTextDomain('main', './locale');
textDomain('main');

print ( _("This is a test message...") );


Thanks,
-Cajus Pollmeier


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Anything magic about PHP4 and gettext?

2002-06-07 Thread Cajus Pollmeier

Hi!

Maybe its a bit offtopic - sorry. I'm trying to get php to translate
output via gettext on a woody machine. Obviously the code running
on the old redhat box is not working on Debian.

Do I have to add something special in php.ini or in the script?

8<
putenv ("LANG=de_DE");

setlocale("LC_ALL", "");
bindTextDomain('main', './locale');
textDomain('main');

print ( _("This is a test message...") );


Thanks,
-Cajus Pollmeier


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]