Tony Jones wrote:
> I am attempting to write a multi-window GUI for customers in several
> As such, I'd like to be able to have them select the language to be
> used on a welcome screen, and then set the text on all the succeeding
> pages depending on what is chosen. This would include titles,
> tooltips, button text and so on. I can't immediately see any way to
> do this. Does anyone have any ideas?
> Thanks in advance!
> Tony Jones Systems Specialist
> BAE SYSTEMS Avionics
> 300 Capability Green Phone: +44 (0)1582 886 973
> Luton, BEDFORDSHIRE Fax: +44 (0)1582 795 873
> LU1 3PG
> United Kingdom Web: www.baesystems.com
> Email: tonyDOTrDOTjonesATbaesystemsDOTcom
One possibility is to duplicate an existing English version and changing the
text fields one by one (you should probably do this once, before a
release). You could do something more cunning like a switch case for each
GUI item, but it's tedious, hard to follow and it slows down the program
run regardless of the language you have chosen (!!).
To choose a language you should display something like a drop-down menu and
then, depending on the selection, invoke the right language port of the
GUI. To call one GUI from another, see: