i18n with swixml

Kovács Lajos <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Organization evosoft Kft.
Message-ID <[email protected]>
  Hello everybody!

 I started to use the swixml and it seems to be a very powerfull tool.
Congratulation! 

 I have a question about the internationalization (i18n) technique with
swixml. I see that there are two custom tags, "bundle" and "locale" for
this reason. Unfortunately not woking as I expected.

 I want to change online the strings on the GUI according to the selected
Locale (ex. selecting from a combobox). I made a resource bundle and I put
it as an attribute for the root tag. For the other tags (ex. button) for
the text I use only the keys from the bundle's property files. This is
working well, the buttons shows the local texts. 

  1) But how can I change it after the parsing? I can made in the code again
the resource bundle and set for all the texts but this is wrong. Exist a
way to reach or change the resource bundle made by the parser and only make
a refresh for the GUI.

  2) The components doesn't inherit the Local setting from the root tag, so
all the texts will be arabic, for example, but the scrollpane doesn't shows
the scroll bar in the left side. For this need to specially add a Locale
attribute to the scrollbar. But in this way, you need to specify the Local
many places in the XML file, instead of one place the root tag.
  It would be a good approach to use for all the tags the main (root tag's)
Local, if no one is specified.

 Has anybody some ideea, how can I resolve this problems?

 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.