LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


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/Novell 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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration