[Internationalization] Using gettext on the CLI
I'm having trouble getting the gettext command line app to do what it's supposed to. I'm running Debian with a 2.6.x kernel.
I have a test.po file that looks like this:
-------------------------
#
msgid "FOO1"
msgstr "This is a test"
#
msgid "FOO2"
msgstr "This is another test"
-------------------------
...and have used msgfmt to create a binary test.mo file, which resides in /usr/share/locale/en/LC_MESSAGES/
Now, when I run this on the command line (under the en locale):
gettext -s -d test FOO1
I believe I should get the translated text, but instead I get "FOO1" printed out again.
Anyone have experience with gettext to know why this isn't working?
Cheers!
|