| java.lang.Object com.ecyrd.jspwiki.i18n.InternationalizationManager
InternationalizationManager | public class InternationalizationManager (Code) | | Manages all internationalization in JSPWiki.
author: Janne Jalkanen since: 2.6 |
Field Summary | |
final public static String | CORE_BUNDLE The name of the ResourceBundle which contains any and all JSPWiki core
resource strings. |
Method Summary | |
public String | get(String key) Returns a String from the CORE_BUNDLE using English as the default
locale. | public String | get(String bundle, Locale locale, String key) If you are too lazy to open your own bundle, use this method
to get a string simply from a bundle.
Parameters: bundle - Which bundle the string is in Parameters: locale - Locale to use - null for default Parameters: key - Which key to use. | public ResourceBundle | getBundle(String bundle, Locale locale) Finds a resource bundle.
Parameters: bundle - The ResourceBundle to find. |
CORE_BUNDLE | final public static String CORE_BUNDLE(Code) | | The name of the ResourceBundle which contains any and all JSPWiki core
resource strings. It's value is
.
|
InternationalizationManager | public InternationalizationManager(WikiEngine engine)(Code) | | Constructs a new InternationalizationManager.
Parameters: engine - To which engine this belongs to |
get | public String get(String bundle, Locale locale, String key) throws MissingResourceException(Code) | | If you are too lazy to open your own bundle, use this method
to get a string simply from a bundle.
Parameters: bundle - Which bundle the string is in Parameters: locale - Locale to use - null for default Parameters: key - Which key to use. A localized string (or from the default language, if not found) throws: MissingResourceException - If the key cannot be located at all, even from the default locale. |
|
|