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:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user