-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Here, you will hopefully find the information you need to start using I18N4Vaadin 2.0 in your applications.
I18N4Vaadin is a small and simple add-on for making it easier to localize Vaadin applications. By using I18N4Vaadin, you do not have to implement a new localization system for every application and you can even change the language of your application on the fly without having to restart it.
I18N4Vaadin is licensed under the Apache License version 2.0.
Version 2.0 is a complete rewrite that has very little in common with 1.0. Version 2.0 has been primarily designed to be used in CDI-enabled Vaadin 7 applications, even though it is also possible to use it in non-CDI applications.
The biggest new feature is an annotation processor (inspired by NetBeans) that automatically generates bundles for the default language. You define the default language strings using annotations directly in your code, and then access them using a special bundle-class that contains methods for each string in the bundle. Thus, you no longer have to deal with situations where a bundle resource key has been misspelled and the compiler will warn you if you change a bundle without changing your code.
I18N4Vaadin 2.0 does not depend on any Vaadin jars, so technically it should be possible to use it in Vaadin 6 applications as well. I have not tested it, though, nor do I plan to do so.
Version 1.0 is still available in the V6 branch on GitHub.
You can download I18N4Vaadin either here on GitHub or from the Vaadin Directory.
To compile the source code downloaded from GitHub, you need to use Maven. Go to the parent
directory and issue mvn clean install
.
You can use I18N4Vaadin in both CDI-enabled Vaadin applications and standard Vaadin applications. Instructions for both approaches are found here:
I have not had time to write a demo application yet. It is my intention of writing one before the 2.0.0 release.