Logon Translate

General questions regarding the development with JVx.

Logon Translate

Postby Garantisoft » Wed Aug 17, 2011 5:46 pm

Hi,

How can I do translate on the default logon screen (File, Help, Exit, Login, welcome, Username, Password, Login) to the another language.
Attachments
LogonImage.jpg
Logon
LogonImage.jpg (18.53 KiB) Viewed 4373 times
Garantisoft
 
Posts: 16
Joined: Wed Aug 17, 2011 3:26 pm

Re: Logon Translate

Postby Support@SIB » Wed Aug 17, 2011 6:12 pm

Detailed information about translation is available in the following documentation: Multi Language support.

An example for translation usage is available in our Showcase application.
User avatar
Support@SIB
 
Posts: 198
Joined: Mon Sep 28, 2009 1:56 pm

Re: Logon Translate

Postby Garantisoft » Thu Aug 18, 2011 12:47 am

I mean not all application and I don't want press a button before chagening. I want to translate just first screen.
Garantisoft
 
Posts: 16
Joined: Wed Aug 17, 2011 3:26 pm

Re: Logon Translate

Postby Support@SIB » Thu Aug 18, 2011 9:38 am

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
User avatar
Support@SIB
 
Posts: 198
Joined: Mon Sep 28, 2009 1:56 pm

Re: Logon Translate

Postby Garantisoft » Thu Aug 18, 2011 11:24 am

Thanks a lot.
Garantisoft
 
Posts: 16
Joined: Wed Aug 17, 2011 3:26 pm


Return to Development