|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.i18n.MessagesUtil
info.magnolia.i18nsystem
mechanism instead, e.g. SimpleTranslator
.
public class MessagesUtil
Util for handle messages. Allows easy use of chains and provides methods for rendering the javascript messages.
info.magnolia.i18nsystem
Constructor Summary | |
---|---|
MessagesUtil()
Deprecated. |
Method Summary | |
---|---|
static Messages |
chain(Messages msgs1,
Messages msgs2)
Deprecated. |
static Messages |
chain(Messages msgs1,
String basename)
Deprecated. |
static Messages |
chain(String[] basenames)
Deprecated. |
static Messages |
chain(String basename,
Messages msgs2)
Deprecated. |
static Messages |
chainWithDefault(String basename)
Deprecated. |
static void |
generateJavaScript(Writer out,
Messages messages)
Deprecated. Adds Variables to a JS which can be used with the getMessage(key) method. |
static String |
get(String key)
Deprecated. |
static String |
get(String key,
String basename)
Deprecated. |
static String |
get(String key,
String[] args)
Deprecated. |
static String |
get(String key,
String basename,
String[] args)
Deprecated. |
static String |
getChained(String key,
String[] basenames)
Deprecated. |
static String |
getChained(String key,
String[] basenames,
String[] args)
Deprecated. |
static String |
getChainedWithDefault(String key,
String dflt,
String[] basenames)
Deprecated. |
static String |
getChainedWithDefault(String key,
String dflt,
String[] basenames,
String[] args)
Deprecated. |
static String |
getWithDefault(String key,
String dflt)
Deprecated. |
static String |
getWithDefault(String key,
String dflt,
String basename)
Deprecated. |
static String |
getWithDefault(String key,
String dflt,
String[] args)
Deprecated. |
static String |
getWithDefault(String key,
String dflt,
String basename,
String[] args)
Deprecated. |
static String |
javaScriptString(String msg)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessagesUtil()
Method Detail |
---|
public static void generateJavaScript(Writer out, Messages messages) throws IOException
IOException
public static Messages chain(Messages msgs1, Messages msgs2)
public static Messages chain(String[] basenames)
public static Messages chain(Messages msgs1, String basename)
public static Messages chain(String basename, Messages msgs2)
public static Messages chainWithDefault(String basename)
public static String javaScriptString(String msg)
public static String get(String key)
public static String get(String key, String[] args)
public static String getWithDefault(String key, String dflt)
public static String getWithDefault(String key, String dflt, String[] args)
public static String get(String key, String basename)
public static String get(String key, String basename, String[] args)
public static String getWithDefault(String key, String dflt, String basename)
public static String getWithDefault(String key, String dflt, String basename, String[] args)
public static String getChained(String key, String[] basenames)
public static String getChained(String key, String[] basenames, String[] args)
public static String getChainedWithDefault(String key, String dflt, String[] basenames)
public static String getChainedWithDefault(String key, String dflt, String[] basenames, String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |