JVx supports translation for each component or for component hierarchies. Simply call
- Code: Select all
setTranslation(TranslationMap)
as described in the
documentation.
If you set the translation for the launcher, it solves common application translation issues. And if you translate only the login texts, it translates only the "login screen". A sample translation file is also included in the
documentation!
It is also possible to set the translation ony for the login screen, e.g.
- Code: Select all
<application>.getLogin().setTranslation(...)
but you need the translation for the menu too.
The showcase demonstrates only the usage of the translation mechanism, you can check how it is implemented and e.g. set the translation in the constructor of your application.
The complete source code of our showcase is available on our
download page. Open the archive and check the sources in the archive file:
- Code: Select all
/showcase.war/WEB-INF/lib/showcasesrc.jar