Package net.minecraft.src
Class Locale
java.lang.Object
net.minecraft.src.Locale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatMessage(String par1Str, Object[] par2ArrayOfObj) Calls String.format(translateKey(key), params)booleanvoidloadLocaleData(List par1List) par1 is a list of ResourcesvoidloadLocaleDataFiles(ResourceManager par1ResourceManager, List par2List) par2 is a list of languages.translateKey(String par1Str) Returns the translation, or the key itself if the key could not be translated.
-
Constructor Details
-
Locale
public Locale()
-
-
Method Details
-
loadLocaleDataFiles
par2 is a list of languages. For each language $L and domain $D, attempts to load the resource $D:lang/$L.lang -
isUnicode
public boolean isUnicode() -
loadLocaleData
par1 is a list of Resources- Throws:
IOException
-
translateKey
Returns the translation, or the key itself if the key could not be translated. -
formatMessage
Calls String.format(translateKey(key), params)
-