|
From: | Tacvek |
Subject: | Re: [Enigma-devel] TLA on windows |
Date: | Sun, 7 Nov 2004 12:52:17 -0500 |
program and running *both* setlocale (LC_MESSAGES, "C") *and* setlocale (LC_MESSAGES, ""). (Haven't seen that mentioned anywhere in any manual.)
The manual does not say that. it says to use code like this: /* Change language. */ setenv ("LANGUAGE", "fr", 1); /* Make change known. */ { extern int _nl_msg_cat_cntr; ++_nl_msg_cat_cntr; }(Note this only works with a GNU gettext, so it works with glibc and the include libintl only. i'm not sure if this means an autoconf change is nessisary.)
And the second problem can be solved by copying 1000 lines of code from libintl and duplicting that code in your own program. Never mind that reading the libintl source code is extremely painful to read, since there are three lines of macro code for every other line of code. Yuck.
um... you cannot just call _nl_locale_name directly using the applicable category? I'll admit that the whole category/locale system used by gettext is overly complicated.
If more work is needed than just that little bit of code i may actually create a patch like i said i would in the other message.
[Prev in Thread] | Current Thread | [Next in Thread] |