public abstract class NLS
extends java.lang.Object
| Constructor and Description |
|---|
NLS() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String[] |
getAvailableLocales()
Gets the list of available locales.
|
abstract java.lang.String |
getCurrentLocale()
Gets the current loaded locale.
|
static NLS |
getDefault()
Deprecated.
Use instantiate instead
|
abstract java.lang.String |
getDisplayName(java.lang.String locale)
Gets the human-readable name of the given locale.
|
abstract java.lang.String |
getMessage(int messageID)
Gets the message matching the specified ID in the current language.
|
abstract java.lang.String |
getMessage(int messageID,
java.lang.String locale)
Gets the message matching the specified ID in the language of the specified locale.
|
static NLS |
instantiate(java.lang.String header)
Creates an NLS instance for the given header
|
abstract void |
setCurrentLocale(java.lang.String locale)
Changes the current locale loaded.
|
public abstract java.lang.String[] getAvailableLocales()
public abstract java.lang.String getDisplayName(java.lang.String locale)
locale - the localepublic abstract java.lang.String getMessage(int messageID)
messageID - the ID of the message to retrievejava.lang.ArrayIndexOutOfBoundsException - if the given messageID does not match a valid messagepublic abstract java.lang.String getMessage(int messageID,
java.lang.String locale)
messageID - the ID of the message to retrievelocale - the locale to usejava.lang.ArrayIndexOutOfBoundsException - if the given messageID does not match a valid messagepublic abstract void setCurrentLocale(java.lang.String locale)
locale - the locale to setpublic abstract java.lang.String getCurrentLocale()
public static NLS instantiate(java.lang.String header)
header - the NLS instance's header@Deprecated public static NLS getDefault()