Removed LanguageManager

Added I18N static class
Some code reformatting
This commit is contained in:
kordum committed 2017-05-09 20:07:11 +03:00
1 parent 1ffe80b8c9
commit 186cbda444
62 files changed
+360 -375

No files matched your search

@@ -1,11 +1,18 @@
package binnie.botany.api;
import binnie.botany.Botany;
import binnie.core.util.I18N;
public enum EnumAcidity {
Acid,
Neutral,
Alkaline;
ACID,
NEUTRAL,
ALKALINE;
public String getID() {
return name().toLowerCase();
}
public String getLocalisedName() {
return I18N.localise(Botany.instance, "ph." + getID());
}
}