Re: How to create a simple multilingual GUI



Am 2007-05-16 09:47:07, schrieb Andreas Stricker:
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.

Ah right...

I had put all strings in an array which I reload. :-)
Then, all strings are new translated if I reinitialize the array.

This is why it worked 4me.

Greetings
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)


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