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.
Extend I18NUI instead of UI
public class ApplicationUI extends I18NUI {
protected void initialize(VaadinRequest request) {
// ....
// ....
}
}
view raw I18NUI.java hosted with ❤ by GitHub
Use I18NWindow instead of Window
public class LoginAction extends I18NWindow implements ClickListener, JNIComponent {
public void init() {
// ....
// ....
}
}
view raw I18NWindow.java hosted with ❤ by GitHub
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.