Problems with gettext


Forum: Apps
Topic: Problems with gettext
started by: gerol80

Posted by gerol80 on Nov. 14 2006,11:16
Hi,

I'm trying to run a C++ application on DSL. This application uses gettext() for internationalization. But it doesn't work. I don't see the translated messages ... the programm only shows the message id strings.

So I installed the packages gettext and gettext-base ... but that didn't change anything. The console application "gettext" doesn't work too ... it only gives me the message id strings. TEXTDOMAINDIR and TEXTDOMAIN are set to the correct values.

I tested the same application in a full Fedora installation ... and it works without any problems. As the console application "gettext" does.

Is the glibc compiled without support for gettext?

Or how can I get gettext to work?

Posted by ^thehatsrule^ on Nov. 14 2006,14:39
Where did you get/install those packages from?

Does glibc have to be compiled with that support in order to work?

Posted by gerol80 on Nov. 14 2006,15:02
I found the "mistake" ... Fedora uses the LC_MESSAGES variable to determine the language for gettext. But DSL uses the LANGUAGES environment variable to do that -- that's not what I expected ;-)
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.