|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.web.XWikiMessageTool
com.xpn.xwiki.plugin.applicationmanager.core.plugin.XWikiPluginMessageTool
@Deprecated public class XWikiPluginMessageTool
Plugin internationalization service based XWikiMessageTool.
| Field Summary |
|---|
| Fields inherited from class com.xpn.xwiki.web.XWikiMessageTool |
|---|
bundle, context |
| Constructor Summary | |
|---|---|
XWikiPluginMessageTool(Locale locale,
XWikiPluginInterface plugin,
XWikiContext context)
Deprecated. |
|
XWikiPluginMessageTool(ResourceBundle bundle)
Deprecated. |
|
XWikiPluginMessageTool(ResourceBundle bundle,
XWikiContext context)
Deprecated. |
|
| Method Summary | |
|---|---|
String |
get(String key,
String param)
Deprecated. Find a translation and then replace any parameters found in the translation by the passed param parameter. |
String |
get(String key,
String[] params)
Deprecated. Find a translation and then replace any parameters found in the translation by the passed params parameters. |
protected String |
getTranslation(String key)
Deprecated. |
| Methods inherited from class com.xpn.xwiki.web.XWikiMessageTool |
|---|
get, get, get, getDocumentBundle, getDocumentBundleNames, getDocumentBundleProperties, getDocumentBundles, getDocumentBundles, getXWikiContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XWikiPluginMessageTool(Locale locale,
XWikiPluginInterface plugin,
XWikiContext context)
locale - the locale.plugin - the plugin.context - the XWikiContext object, used to get access to XWiki primitives for loading
documentspublic XWikiPluginMessageTool(ResourceBundle bundle)
bundle - the default Resource Bundle to fall back to if no document bundle is found when trying to get a key
public XWikiPluginMessageTool(ResourceBundle bundle,
XWikiContext context)
bundle - the default Resource Bundle to fall back to if no document bundle is found when trying to get a keycontext - the XWikiContext object, used to get access to XWiki primitives for loading
documents| Method Detail |
|---|
protected String getTranslation(String key)
Start calling context's XWikiMessageTool.get(String) then if nothing is found use
plugin's ResourceBundle.
getTranslation in class XWikiMessageToolXWikiMessageTool.getTranslation(java.lang.String)
public String get(String key,
String[] params)
MessageFormat.
key - the key of the string to findparams - the array of parameters to use for replacing "{N}" elements in the string. See
MessageFormat for the full syntax
XWikiMessageTool.get(String, List)
public String get(String key,
String param)
MessageFormat.
key - the key of the string to findparam - the parameter to use for replacing "{0}" element in the string. See MessageFormat
for the full syntax
XWikiMessageTool.get(String, List)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||