In today's world one or the other application needs I18N support. We want our application to be international
compliant. Out of the box Vaadin-7 is not supporting Internationalization for there components captions, table
headers etc.
I wrote an Add-on to provide internationalization support to Vaadin application.
You need to follow couple of steps to make sure that Jain-I8N works properly.
I wrote an Add-on to provide internationalization support to Vaadin application.
You need to follow couple of steps to make sure that Jain-I8N works properly.
Extend
I18NUI instead of UI
Use
I18NWindow instead of Window
Always add parent component in first before adding any other component in the component container to improve performance.For more information please visit reference implementation and demo application.
7 Comments
Hi lokesh, can you please provide the simple step by step process to implement the internationalization in vaadin using your add-on. where & how to load the property files. and how to implement the language change listener.
ReplyDeletePlease have a look at https://github.com/lkumarjain/jain-I18n-demo
Deletethank you for your quick response. i have already seen this code. but it is difficult to me to understand the flow. so can you please explain with simple steps. and please tell me where you load those messages property files and what is the logic you implemented when we change the language in combobox.
Deletethank you for your response. can you please tell me where & how you load those messages property files and what is the logic you implemented when we change the language.
ReplyDeleteHi lokesh, i am requesting you to please explain where you load the property file and retrieve the keys. and where & how the logic implemented when changing the language. please do the needful, so that you can help me a lot.
ReplyDeleteHave a look at https://github.com/lkumarjain/jain-I18n-demo/blob/master/src/main/java/com/jain/common/approot/ApplicationUI.java
DeleteAnd override this method to provide your own I18n Implementation provider...
public I18NProvider getI18nProvider() {
return DefaultI18NResourceProvider.instance();
}
thank you lokesh. its working for me.
ReplyDeletePost a Comment