Improve localization

This commit is contained in:
Nedelosk committed 2017-06-27 15:10:47 +02:00
1 parent be827a17a7
commit 941c377c58
117 files changed
+463 -494

No files matched your search

@@ -23,7 +23,11 @@ public enum EnumMoisture implements IStringSerializable {
return name().toLowerCase();
}
public String getTranslated(boolean withColor) {
return (withColor && color != null ? color : "") + I18n.translateToLocal("botany.moisture." + getName());
public String getLocalisedName(boolean withColor) {
String localisedName = I18n.translateToLocal("botany.moisture." + getName());
if(withColor && color != null){
localisedName +=color;
}
return localisedName;
}
}