Hello friends,
I configured PHP with --with-gettext and wrote a small code to test it. But i couldn't find the translated string. Could anyone help in this regard.
I created the following code :
putenv("LANG=de");
bindtextdomain("messages","./locale");
textdomain("messages");
print(gettext("Good Morning!"));
i have created .po file using
xgettext -a test.php
and then opened the .po file and edited the msgstr to the translated string.
Then created .mo file by
msgfmt -o test.mo test.po and moved the file to the corresponding /locale/de/LC_MESSAGES/ directory and tested the file.
Everything is fine, but still couldn't find the string translated , just displaying the original string. Could anyone help what could be the problem