PDA

View Full Version : PHP GetText dosn't work



fadishouha
10 Nov 2011, 10:04 AM
Hello,

I wrote a php page to test gettext on WAMP2 server on Windows XP.
I created the .po file using POEdit.
The problem is that it works with PHP 5.3.8 but it doesn't work (for example) with PHP 5.3.0 and 5.3.3, here is my source code:

<?php
putenv("LC_ALL=fr_FR");
setlocale(LC_ALL, 'fr_FR');
bindtextdomain("messages", "./locale");
textdomain("messages");

echo gettext("Hello World!");
?>

Thanks in advance for helping me.