Improved GUI with own idea and started to add a language localizer for getting the translation from the language file

This commit is contained in:
tosta3000
2015-11-04 19:46:14 +01:00
parent c33026a8fd
commit e79372ee6d
3 changed files with 177 additions and 65 deletions
@@ -0,0 +1,17 @@
package de.skate702.craftingkeys.util;
import net.minecraft.util.StatCollector;
/**
* Created by Tobi on 04.11.2015.
*/
public class LanguageLocalizer {
//TODO: Finish localizer
public static String localizeIfPossible(String unloc){
String localized = "";
if(StatCollector.canTranslate(unloc)){
localized = StatCollector.translateToLocal(unloc);
}
return localized;
}
}