Problems with gettext()
mailneeraj_at_gmail.com
Date: 04/26/05
- Previous message: Rod McCall: "ANN: Free Programming Conferences (Starting 30th April)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 26 Apr 2005 07:55:17 -0700
Here's what I've been trying:
...
printf("bindtextdomain(): %s \n", bindtextdomain("myDomain",
"/root/progs/MessageCatalogs"));
printf("textdomain(): %s \n", textdomain("myDomain"));
printf("gettext(): %s \n", gettext("Long"));
...
I've got a valid .mo file in the directory
"/root/progs/MessageCatalogs". besides, I've also set the environment
varialble LC_MESSAGES to "myDomain".
The entry in the corresponding .po file is as follows:
(The .po file is generated after compiling the .mo file using msgfmt)
msgid "Long"
msgstr "LONG"
The output is as follows:
bindtextdomain(): /root/progs/MessageCatalogs
textdomain(): myDomain
gettext(): Long
I was expecting a "LONG" instead of "Long".
Thanks in advance,
Neeraj
- Previous message: Rod McCall: "ANN: Free Programming Conferences (Starting 30th April)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|