public abstract class Locale
extends java.lang.Object
Constructor and Description |
---|
Locale() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
_INVALID_getMessage(java.lang.String key)
Deprecated.
This method is included for the sake of reverse-compatibility
and will not exist at runtime.
|
abstract java.lang.String |
_INVALID_getMessage(java.lang.String key,
java.lang.String... replacements)
Deprecated.
This method is included for the sake of reverse-compatibility
and will not exist at runtime.
|
abstract Localizable |
getMessage(java.lang.String key,
java.lang.Object... replacements)
Retrieves the message with the given key from the
current locale, and replaces placeholder sequences
(
%i ) with the corresponding vararg
parameter. |
abstract java.lang.String |
getPlugin()
Returns the name of the plugin which this Locale belongs to.
|
void |
initialize()
Deprecated.
This method is obsolete and does nothing, but is retained for
compatibility purposes
|
abstract boolean |
isLegacy()
Deprecated.
Always returns
false due to changes to locale
API |
public abstract java.lang.String getPlugin()
@Deprecated public abstract java.lang.String _INVALID_getMessage(java.lang.String key)
This method is included for the sake of reverse-compatibility. It will not exist at runtime and thus should not be used under any circumstances.
key
- the key of the message to retrieve@Deprecated public abstract java.lang.String _INVALID_getMessage(java.lang.String key, java.lang.String... replacements)
%i
) with the corresponding vararg
parameter.
This method is included for the sake of reverse-compatibility. It will not exist at runtime and thus should not be used under any circumstances.
key
- the key of the message to retrievereplacements
- an array or vararg list of
strings to replace placeholder sequences (%i) withpublic abstract Localizable getMessage(java.lang.String key, java.lang.Object... replacements)
%i
) with the corresponding vararg
parameter. This method will never return null
.
Note: placeholder sequences should start at index 1.
key
- the key of the message to retrievereplacements
- an array or vararg list of objects to replace
placeholder sequences (%i) with. If an object in this
list is an instance of a Localizable, it will be
localized appropriately. Otherwise, toString() will
be invoked upon it.Localizable
associated with the given key@Deprecated public abstract boolean isLegacy()
false
due to changes to locale
API@Deprecated public void initialize()