|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tridas.io.gui.I18n
public class I18n
Simple localization
Method Summary | |
---|---|
static Boolean |
getBoolean(String argKey)
Gets the boolean value of the key. |
static Integer |
getInteger(String argKey)
Gets and integer value of the key. |
static String |
getText(String key)
Get the text for this key. |
static String |
getText(String argKey,
String... argReplacing)
Look up a translation key with each {n} replaced with a value in the array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getText(String key)
For example, if the localization file has the line
copy = &Copy [accel C]
, the string "Copy" is returned.
key
- the key to look up in the localization file
public static String getText(String argKey, String... argReplacing)
argKey
- argReplacing
-
public static Integer getInteger(String argKey)
argKey
-
public static Boolean getBoolean(String argKey)
argKey
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |