LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-06-2006, 09:21 PM   #1
natetheros
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 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!
 
  


Reply



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 01:46 PM
Slack 10.1 - Gnome internationalization skruf_man Slackware 1 07-12-2005 08:10 AM
beep-media-player internationalization problem (font in display list) septanla Ubuntu 0 05-10-2005 07:41 AM
GTK+ CList Internationalization wpyh Programming 0 12-11-2004 11:26 PM
Internationalization problem skruf_man Amigo 2 11-23-2004 08:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:09 AM.

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