java.lang.Object | |
↳ | com.google.gwt.i18n.client.LocaleInfo |
Provides access to the currently-active locale and the list of available locales.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor to be used by subclasses, such as mock classes for testing.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an array of available locale names.
| |||||||||||
Returns a LocaleInfo instance for the current locale.
| |||||||||||
Returns a DateTimeConstants instance for this locale.
| |||||||||||
Returns a DateTimeConstants instance for this locale.
| |||||||||||
Returns the name of the name of the cookie holding the locale to use,
which is defined in the config property
locale.cookie . | |||||||||||
Returns the name of this locale, such as "default, "en_US", etc.
| |||||||||||
Returns the display name of the requested locale in its native locale, if
possible.
| |||||||||||
Returns the name of the query parameter holding the locale to use, which is
defined in the config property
locale.queryparam . | |||||||||||
Returns a NumberConstants instance for this locale.
| |||||||||||
Returns true if any locale supported by this build of the app is RTL.
| |||||||||||
Returns true if this locale is right-to-left instead of left-to-right.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor to be used by subclasses, such as mock classes for testing. Any such subclass should override all methods.
Returns a LocaleInfo instance for the current locale.
Returns a DateTimeConstants instance for this locale.
Returns a DateTimeConstants instance for this locale.
Returns the name of the name of the cookie holding the locale to use,
which is defined in the config property locale.cookie
.
Returns the name of this locale, such as "default, "en_US", etc.
Returns the display name of the requested locale in its native locale, if possible. If no native localization is available, the English name will be returned, or as a last resort just the locale name will be returned. If the locale name is unknown (including an user overrides) or is not a valid locale property value, null is returned. If the I18N module has not been imported, this will always return null.
localeName | the name of the locale to lookup. |
---|
Returns the name of the query parameter holding the locale to use, which is
defined in the config property locale.queryparam
.
LocalizedNames
for this locale.
Returns a NumberConstants instance for this locale.
Returns true if any locale supported by this build of the app is RTL.
Returns true if this locale is right-to-left instead of left-to-right.