mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 14:34:36 +00:00
Localization.
This commit is contained in:
1 parent
57efdc62da
commit
4444300df0
4 files changed
+42
No files matched your search
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* This class was created by <Vazkii>. It's distributed as
|
||||
* part of the Botania Mod. Get the Source Code in github:
|
||||
* https://github.com/Vazkii/Botania
|
||||
*
|
||||
* Botania is Open Source and distributed under a
|
||||
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
||||
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
||||
*
|
||||
* File Created @ [Jan 14, 2014, 6:04:31 PM (GMT)]
|
||||
*/
|
||||
package vazkii.botania.client.core.handler;
|
||||
|
||||
import vazkii.botania.client.lib.LibResources;
|
||||
import cpw.mods.fml.common.registry.LanguageRegistry;
|
||||
|
||||
public final class LocalizationHandler {
|
||||
|
||||
public static void loadLocalizations() {
|
||||
for(String locale : LibResources.LANGS)
|
||||
LanguageRegistry.instance().loadLocalization(LibResources.PREFIX_LANG + locale + ".lang", locale, false);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,5 +22,9 @@ public final class LibResources {
|
||||
public static final String PREFIX_MODEL = PREFIX_MOD + "textures/model/";
|
||||
|
||||
public static final String EMTPY_TEXTURE = "emptyTexture";
|
||||
|
||||
public static final String[] LANGS = new String[] {
|
||||
"en_US"
|
||||
};
|
||||
|
||||
}
|
||||
@@ -11,6 +11,8 @@
|
||||
*/
|
||||
package vazkii.botania.common.item;
|
||||
|
||||
import net.minecraft.item.EnumRarity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import vazkii.botania.common.lib.LibItemIDs;
|
||||
import vazkii.botania.common.lib.LibItemNames;
|
||||
|
||||
@@ -21,5 +23,10 @@ public class ItemLexicon extends ItemMod {
|
||||
setMaxStackSize(1);
|
||||
setUnlocalizedName(LibItemNames.LEXICON);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumRarity getRarity(ItemStack par1ItemStack) {
|
||||
return EnumRarity.uncommon;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
# MISC
|
||||
itemGroup.Botania=Botania
|
||||
|
||||
# BLOCK NAMES
|
||||
|
||||
# ITEM NAMES
|
||||
item.botania:lexicon.name=Lexica Botania
|
||||
Reference in new issue
Block a user