|
From: Christian R. <me...@me...> - 2001-05-23 13:41:17
|
L=E1szl=F3 Kov=E1cs wrote: > I am trying to implement a similar language list mechanism as in > gnome-libs/gnome_i18n_get_language_list(). This is about querying > LC_ALL, LC_MESSAGES and LANG in this order, in fact setlocale() doe= s > this all for me. My problem is that although this is implemented in > gnome-libs() Linux does not seem to like language lists in these > variables. I tried to set some lists, but my setlocale() call still > returns C, although the environment variables are set to the list. = I > dont know what am I doing wrong. On the other hand on Solaris setti= ng > these variables to a language list is illegal, it can be set to one > locale only and only to one of those that are installed. I *beleive* this is the same for Linux. I have never seen a system wi= th a language list in the LC or LANG variables myself, and it wouldn't surprise me if it isn't supported. But I don't know for sure. The gli= bc manual (http://www.gnu.org/manual/glibc/html_mono/libc.html#SEC111) mentions that language (locale) lists should be possible in the LANGU= AGE variable though: =09"When developing the message translation functions it was felt =09that the functionality provided by the variables above is not =09sufficient. For example, it should be possible to specify more =09than one locale name. Take a Swedish user who better speaks =09German than English, and a program whose messages are output =09in English by default. It should be possible to specify that =09the first choice of language is Swedish, the second German, =09and if this also fails to use English. This is possible with =09the variable LANGUAGE. For further description of this GNU =09extension see section User influence on gettext =09(http://www.gnu.org/manual/glibc/html_mono/libc.html#SEC137)." Christian |