Package jmri.server
Class Bundle
java.lang.Object
jmri.Bundle
jmri.server.Bundle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected static Bundle(package private) static StringgetMessage(String key) Provides a translated string for a given key from the package resource bundle or parent.(package private) static StringgetMessage(String key, Object... subs) Merges user data with a translated string for a given key from the package resource bundle or parent.(package private) static StringgetMessage(Locale locale, String key) Provides a translated string for a given key in a given locale from the package resource bundle or parent.(package private) static StringgetMessage(Locale locale, String key, Object... subs) Merges user data with a translated string for a given key in a given locale from the package resource bundle or parent.protected StringMethods inherited from class jmri.Bundle
formatMessage, handleGetMessage, handleGetMessage, handleGetMessage, handleGetMessage
-
Constructor Details
-
Bundle
public Bundle()
-
-
Method Details
-
getMessage
Provides a translated string for a given key from the package resource bundle or parent.Note that this is intentionally package-local access.
- Parameters:
key- Bundle key to be translated- Returns:
- Internationalized text
-
getMessage
Provides a translated string for a given key in a given locale from the package resource bundle or parent.Note that this is intentionally package-local access.
- Parameters:
locale- The locale to be usedkey- Bundle key to be translated- Returns:
- Internationalized text
-
getMessage
Merges user data with a translated string for a given key from the package resource bundle or parent.Uses the transformation conventions of the Java MessageFormat utility.
Note that this is intentionally package-local access.
- Parameters:
key- Bundle key to be translatedsubs- One or more objects to be inserted into the message- Returns:
- Internationalized text
- See Also:
-
getMessage
Merges user data with a translated string for a given key in a given locale from the package resource bundle or parent.Uses the transformation conventions of the Java MessageFormat utility.
Note that this is intentionally package-local access.
- Parameters:
locale- The locale to be usedkey- Bundle key to be translatedsubs- One or more objects to be inserted into the message- Returns:
- Internationalized text
- See Also:
-
bundleName
- Overrides:
bundleNamein classBundle
-
getBundle
-
retry
-