-   Programming (
-   -   [Internationalization] Using gettext on the CLI (

natetheros 01-06-2006 09:21 PM

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


All times are GMT -5. The time now is 11:41 PM.