[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Anything magic about PHP4 and gettext?


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?

putenv ("LANG=de_DE");

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

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

-Cajus Pollmeier

To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: