Re: How to create a simple multilingual GUI



Michelle Konzack wrote:
Am 2007-05-14 20:43:42, schrieb David Ne?as (Yeti):
On Mon, May 14, 2007 at 08:04:09PM +0200, Michelle Konzack wrote:
Does
        setlocale("LC_ALL", "de_DE");

not work?
It works.  Future locale-dependent calls will use the new
locale.

So if you do this while your application is already running,
you can watch it trasmuting slowly to German, with some parts
probably never getting there.

AFAIK it is enough, if you reload all the Widgets...

It works only for the widget itself. Usually there is also
localized code in the program control flow like this:

if (condition)
    status_text = _("Condition is true");

If a branch like this is not executed again on reload or branch
into another part of the code, the language of the text stays
in the former language.

Cheers, Andy



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