|
DevGuideInternationalization
Easily support multiple locales with a single code base.
InternationalizationGWT includes a flexible set of tools to help you internationalize your applications and libraries. GWT internationalization support provides a variety of techniques to internationalize strings, typed values, and classes. Quick Start with InternationalizationGWT supports a variety of ways of internationalizing your code. Start by researching which approach best matches your development requirements.
Internationalization TechniquesGWT offers multiple internationalization techniques to afford maximum flexibility to GWT developers and to make it possible to design for efficiency, maintainability, flexibility, and interoperability in whichever combinations are most useful.
The I18N ModuleCore types related to internationalization:
The GWT internationalization types reside in the com.google.gwt.i18n package. To use any of these types, your module must inherit from the I18N module (com.google.gwt.i18n.I18N). <module> <inherits name="com.google.gwt.i18n.I18N"/> </module> As of GWT 1.5, the User module (com.google.gwt.user.User) inherits the I18N module. So if your project's module XML file inherits the User module (which generally it does), it does not need to specify explicitly an inherit for the I18N module. SpecificsStatic String Internationalization A type-safe and optimized approach to internationalizing strings. Dynamic String Internationalization A flexible and simplistic method of internationalizing strings that easily integrates with existing web applications that do not support the GWT locale client property. Specifying a Locale How to add locales and specify the locale client property during deployment. Localized Properties Files How to create localized properties files for use with Constants or Messages Annotations for use with Internationalization New to GWT 1.5 is the use of annotations to allow more sophisticated internationalization. support, such as plurals and descriptions. |
Sign in to add a comment