Re: i18n with swixml

Kovács Lajos <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Organization evosoft Kft.
Message-ID <[email protected]>
Wolf Paulus wrote:

> Actually, much thought went into the internationalization capabilities
> of Swixml.
> Swixml's SwingEngine can be reconfigured - the locale can be changed -
> at runtime. However, if Strings, Labels etc. have been rendered
> already, you need to re-render the UI. (See SwingEngine.getLocalizer()
> etc)
> 
 
  Hello!

 I tried to re-render the GUI, setting the right local
to the engine, but another GUI is created beside the old one.
I dispose the old frame, but this is not nice.
 Can somehow rerender the old GUI, not creating another one,
only to update it?

 Or, I thinked on to iterate through the elements and set the
text of the objects according to the new locale. The new text
for a key I can found from Localizer getString(key) method as
you says, but how can I reach the key, parsed from the xml,
associated to the iterated object? It is a way?

  Best Regards,
  Lajos
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.