Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: GUI with multiple languages option

  • Subject: Re: GUI with multiple languages option
  • From: Roy Schestowitz <newsgroups@schestowitz.com>
  • Date: Wed, 12 Jan 2005 14:26:44 +0000
  • Newsgroups: comp.soft-sys.matlab
  • References: <eef856f.-1@webx.raydaftYaTP>
  • User-agent: KNode/0.7.2
Tony Jones wrote:

> I am attempting to write a multi-window GUI for customers in several
> countries.
> 
> 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

Hi Tony,

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:

http://www.mathworks.nl/matlabcentral/fileexchange/loadFile.do?objectId=4925&objectType=FILE

-- 
Roy Schestowitz
http://schestowitz.com

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