info.magnolia.i18nsystem
mechanism instead.@Deprecated public abstract class MessagesManager extends Object
info.magnolia.i18nsystem
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASENAME
Deprecated.
Use this basename if no other is provided.
|
static String |
FALLBACK_LOCALE
Deprecated.
Use this locale if no other provided.
|
static String |
FALLBACK_NODEDATA
Deprecated.
The name of the property to store the current system language.
|
static String |
I18N_CONFIG_PATH
Deprecated.
The node name where the configuration for i18n is stored.
|
static String |
LANGUAGES_NODE_NAME
Deprecated.
Under this node all the available languages are stored.
|
Constructor and Description |
---|
MessagesManager()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static String |
get(String key)
Deprecated.
|
static String |
get(String key,
Object[] args)
Deprecated.
Get a message with parameters inside: the value {0} must be a number.
|
abstract Collection |
getAvailableLocales()
Deprecated.
|
abstract Locale |
getDefaultLocale()
Deprecated.
|
static MessagesManager |
getInstance()
Deprecated.
since 4.5, use IoC !
|
static Messages |
getMessages()
Deprecated.
|
static Messages |
getMessages(Locale locale)
Deprecated.
|
static Messages |
getMessages(String basename)
Deprecated.
|
static Messages |
getMessages(String basename,
Locale locale)
Deprecated.
|
protected abstract Messages |
getMessagesInternal(String basename,
Locale locale)
Deprecated.
|
static String |
getWithDefault(String key,
Object[] args,
String defaultMsg)
Deprecated.
Get a message with parameters inside: the value {0} must be a number.
|
static String |
getWithDefault(String key,
String defaultMsg)
Deprecated.
Use a default string.
|
abstract void |
init()
Deprecated.
|
abstract void |
reload()
Deprecated.
|
public static final String FALLBACK_LOCALE
public static final String DEFAULT_BASENAME
public static final String I18N_CONFIG_PATH
public static final String FALLBACK_NODEDATA
public static final String LANGUAGES_NODE_NAME
@Deprecated public static MessagesManager getInstance()
public static Messages getMessages()
public static String get(String key, Object[] args)
key
- key to findargs
- replacement stringspublic static String getWithDefault(String key, String defaultMsg)
key
- key to finddefaultMsg
- default messagepublic static String getWithDefault(String key, Object[] args, String defaultMsg)
key
- key to findargs
- replacement stringsdefaultMsg
- default messagepublic abstract void init()
public abstract Collection getAvailableLocales()
public abstract Locale getDefaultLocale()
protected abstract Messages getMessagesInternal(String basename, Locale locale)
public abstract void reload()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.