public interface ResourceBundle
ResourceBundle
is a set of Strings identified by keys
A ResourceBundle
is associated with a Locale
making the Strings specific for that Locale
.
ResourceBundle
s can be obtained by name from the LocalizationService
.
ResourceBundle
s are ordered in a fallback hierarchy. If a String is not defined
in the current bundle the call is forwarded to the parent bundle.
See LocalizationService
for an exact description.Modifier and Type | Method and Description |
---|---|
Locale |
getLocale()
The
Locale of this ResourceBundle . |
String |
getName()
The name of this
ResourceBundle . |
String |
getString(String key)
Gets the
Locale -specific translation identified by a given key . |
default ResourceBundle |
toJavaResourceBundle() |
Locale getLocale()
Locale
of this ResourceBundle
.String getName()
ResourceBundle
.String getString(String key)
Locale
-specific translation identified by a given key
.
If a String is not defined in this bundle the call is forwarded
to the parent bundle.key
- a key
identifying a Stringkey
default ResourceBundle toJavaResourceBundle()
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.