Class Localization
- java.lang.Object
-
- ch.supertomcat.supertomcatutils.gui.Localization
-
public final class Localization extends Object
Localization-Class for GUITools
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetString(String key)Returns the localized String for a key.static StringgetString(String key, String notFoundPrefix)Returns the localized String for a keystatic voidinit(String baseName, String language, String country)Initialize localized Stringsstatic voidinit(String baseName, String language, String country, boolean notFoundPrefix)Initialize localized Strings
-
-
-
Method Detail
-
init
public static void init(String baseName, String language, String country)
Initialize localized Strings- Parameters:
baseName- BaseName for localizationlanguage- Languagecountry- Country
-
init
public static void init(String baseName, String language, String country, boolean notFoundPrefix)
Initialize localized Strings- Parameters:
baseName- BaseName for localizationlanguage- Languagecountry- CountrynotFoundPrefix- Flag if the NOSTRINGFOUND_ prefix should be added, if there is no translation found for a key
-
getString
public static String getString(String key)
Returns the localized String for a key. If the key is not found and notFoundPrefix is true then the key prefixed by "NOSTRINGFOUND_" is returned- Parameters:
key- Key- Returns:
- Localized String
-
-