Visit the LQ Articles and Editorials section
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-06-2006, 10:21 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
[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?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yast Text Translation For Internationalization strangedub SUSE / openSUSE 0 08-15-2005 02:46 PM
Slack 10.1 - Gnome internationalization skruf_man Slackware 1 07-12-2005 09:10 AM
beep-media-player internationalization problem (font in display list) septanla Ubuntu 0 05-10-2005 08:41 AM
GTK+ CList Internationalization wpyh Programming 0 12-12-2004 12:26 AM
Internationalization problem skruf_man Amigo 2 11-23-2004 09:27 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration