General

The infrastructure provides internationalization (i18n) and localization (l10n) service. These service include:

  • Support for locale-based messages.
  • Suuport for locale-based formats.

A message is any message that may be used in the system. This includes GUI labels, log messages, or any other text the user might see.

A format is a text formatting tool. It allows you to format texts in various ways according to the locale.

Definitions

Define a format as a property in a file called shinefw_formats[_locale].properties. See message documentation for details on how to define a message.

Using Formats

To use a format access it from the Localizer:

 String formattedMessage=Localizer.format("patternName",params)

The parameters depend on the format itself. See documentation in the JDK API under MessageFormat, SimpleDateFormat and NumberFormat.