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

// User language here
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

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??


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

Reply via email to