public interface InternationalizationManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CORE_BUNDLE
The name of the ResourceBundle which contains any and all JSPWiki core resource strings.
|
static java.lang.String |
DEF_TEMPLATE
The name of the ResourceBundle which contains any and all JSPWiki default templates resource strings.
|
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
get(java.lang.String key)
Returns a String from the CORE_BUNDLE using English as the default locale.
|
default java.lang.String |
get(java.lang.String bundle,
java.util.Locale locale,
java.lang.String key)
If you are too lazy to open your own bundle, use this method to get a string simply from a bundle.
|
default java.lang.String |
get(java.lang.String bundle,
java.util.Locale locale,
java.lang.String key,
java.lang.Object... args)
Obtain a parameterized String from the bundle.
|
default java.util.ResourceBundle |
getBundle(java.lang.String bundle,
java.util.Locale locale)
Finds a resource bundle.
|
static final java.lang.String CORE_BUNDLE
static final java.lang.String DEF_TEMPLATE
default java.lang.String get(java.lang.String key) throws java.util.MissingResourceException
key - Key to findjava.util.MissingResourceException - If there is no such keydefault java.util.ResourceBundle getBundle(java.lang.String bundle, java.util.Locale locale) throws java.util.MissingResourceException
bundle - The ResourceBundle to find. Must exist.locale - The Locale to use. Set to null to get the default locale.java.util.MissingResourceException - If the key cannot be located at all, even from the default locale.default java.lang.String get(java.lang.String bundle, java.util.Locale locale, java.lang.String key) throws java.util.MissingResourceException
bundle - Which bundle the string is inlocale - Locale to use - null for defaultkey - Which key to use.java.util.MissingResourceException - If the key cannot be located at all, even from the default locale.default java.lang.String get(java.lang.String bundle, java.util.Locale locale, java.lang.String key, java.lang.Object... args) throws java.util.MissingResourceException
bundle - Which bundle the string is inlocale - Locale to use - null for defaultkey - Which key to use.args - parameters to insert in the String.java.util.MissingResourceException - If the key cannot be located at all, even from the default locale.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.