LocaleProvider (interface)

One of a number of services that work together to provide support for i18n, its responsibility being simply to return the Locale of the current user.

API

LocaleProvider.java
interface LocaleProvider {
  Locale getLocale()     (1)
}
1 getLocale()

Returns the Locale of the current user.

Members

getLocale()

Returns the Locale of the current user.

Implementation

The Web UI (Wicket viewer) provides an implementation of this service (LocaleProviderWicket) which leverages Apache Wicket APIs.

There is (currently) no equivalent implementation for the RestfulObjects viewer.

Usage Notes

For the "big picture" and further details on the framework’s i18n support, can be found in a chapter in the user guide.

See also

Other i18n services include: