Re: How to create a simple multilingual GUI



On Fri, May 11, 2007 at 02:52:06PM +0200, John Zoidberg wrote:
I would like to create a GUI with GTK where the language can be chosen
interactively in a "settings" menu.
I would like this to be independant of the machines local language settings.

Each user (not machine) has separate language preferences
and even individual applications can be run with different
settings, e.g.

  LC_ALL=cs_CZ myapp

How can I do that?

If you want your application to disobey for whatever reason,
set appropriate LC_* variables yourself -- either in
a wrapper script or with g_setenv() before initializing
Gtk+. The selector can be GUI or not, this does not matter.

Yes, this just makes possible to run the applications with
a different locale. Run-time switching of languages is not
possible http://bugzilla.gnome.org/show_bug.cgi?id=313736

Yeti

--
http://gwyddion.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]