Package net.sourceforge.jnlp.runtime
Class Translator
- java.lang.Object
-
- net.sourceforge.jnlp.runtime.Translator
-
public class Translator extends java.lang.ObjectUtility class to provide simple methods to help localize messages
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TranslatorgetInstance()protected java.lang.StringgetMessage(java.lang.String key, java.lang.Object... args)static java.lang.StringR(java.lang.String message)Return a translated (localized) version of the messagestatic java.lang.StringR(java.lang.String message, java.lang.Object... params)static java.lang.StringVVPossibleBrowserValues()convenient method to show VVPossibleBrowserValues with all four params
-
-
-
Method Detail
-
getInstance
public static Translator getInstance()
-
R
public static java.lang.String R(java.lang.String message)
Return a translated (localized) version of the message- Parameters:
message- the message to translate- Returns:
- a string representing the localized message
-
R
public static java.lang.String R(java.lang.String message, java.lang.Object... params)- Parameters:
message- key to be found in propertiesparams- params to be expanded to message- Returns:
- the localized string for the message
-
VVPossibleBrowserValues
public static java.lang.String VVPossibleBrowserValues()
convenient method to show VVPossibleBrowserValues with all four params- Returns:
- translation of VVPossibleBrowserValues with all params in
-
getMessage
protected java.lang.String getMessage(java.lang.String key, java.lang.Object... args)- Parameters:
key- key to be found in propertiesargs- params to be expanded to message- Returns:
- the localized resource string using the specified arguments.
-
-