mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 20:52:22 +00:00
Improve localization
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user