org.argouml.cognitive
Class Translator
java.lang.Object
org.argouml.cognitive.Translator
- public class Translator
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
translator
private static AbstractCognitiveTranslator translator
Translator
public Translator()
setTranslator
public static void setTranslator(AbstractCognitiveTranslator trans)
- Parameters:
trans
- the translator
localize
public static String localize(String key)
- Parameters:
key
- the key for the string to be localized
- Returns:
- the localized string
messageFormat
public static String messageFormat(String key,
Object[] args)
- Parameters:
key
- the key for the string to be localizedargs
- arguments that will be inserted in the string
- Returns:
- the localized string containing the arguments