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