Hi all.  Im trying to get gettext working.  It is compiled in php 4.1.2 
on a FreeBSD-4.5 p4 box.
In the root of the webserver I have
-----------------------------------------
<?php

// User language here
putenv("LANG=fr");
putenv ("LC_ALL=fr");

// Specify location of translation tables
bindtextdomain ("messages", "./locale");

// Choose domain
textdomain ("messages");

print(_("Hello world"));

?>
---------------------------------------------

Directly under the root I have a directory structure as
--------------------------------------------
locale/en/LC_MESSAGES
locale/fr/LC_MESSAGES

Under locale/fr/LC_MESSAGES, I have messages.po messages.mo created from 
xgettext and msgfmt with 'Hello World' and the translation 'Bonjour 
Monde' in messages.po.

For some reason or another, it won't translate to french.  Anyone see 
anything wrong with this setup??

Thanks


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

Reply via email to