[vox-tech] Locales and installed languages/charsets (in C)

Jan W vox-tech@lists.lugod.org
Tue, 25 May 2004 16:53:07 -0700 (PDT)


Hi all:

My question is mostly for Mark.  I am a _complete_ language/locale/charset noob
(I only speak english, for shame).

so here goes:

I have a fltk app (tuxpaint-config) which allows users to reset the language of
the (tuxpaint) application.  However, I need to know how to get things to
display right for an option box, the locale chooser.  I know 'locale -a' lists
all locales, and 'locale -m' lists the charsets available (and the -c option
gives also languages).  What I would like to know is how do I translate
ISO-8599-1 <or> en_US <to> english (so that users can choose the right language
without having to know about locales or charsets).  Ideally, I would like
something that gives output like:  ISO-8599-1:en_US:English (United States), so
I have all the charset/locale/language data and I can choose which to
display...

I just need a simple list to give a user that has the locally installed
languages, and get enough info from this listing to correctly name the locale
in tuxpaint.conf.

I am just too hammered to try to figure this one out...  sorry if I am a doofus
and the answer is simple.

--thanks a million

jan

=====
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
EDUCATION, n. That which discloses to the wise and disguises from the
foolish their lack of understanding.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/