diff options
| author | iouter <62897714+iouter@users.noreply.github.com> | 2023-01-31 02:48:02 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-30 19:48:02 +0100 |
| commit | dc1421b0e6c18b83193b228edc4cea2c4312415f (patch) | |
| tree | c206c0fe1a9acbe5f1205014589561f8a3412ac1 /src/main/java/gtPlusPlus/xmod/forestry | |
| parent | a32aee4dce706f11682eedd69671bd462b2ab676 (diff) | |
| download | GT5-Unofficial-dc1421b0e6c18b83193b228edc4cea2c4312415f.tar.gz GT5-Unofficial-dc1421b0e6c18b83193b228edc4cea2c4312415f.tar.bz2 GT5-Unofficial-dc1421b0e6c18b83193b228edc4cea2c4312415f.zip | |
make almost all hardcoded items localizable (#521)
* make almost all hardcoded items localizable
* sa
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/forestry')
4 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java index cc29daf6b6..3495869c97 100644 --- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java +++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_CombType.java @@ -38,6 +38,7 @@ public enum GTPP_CombType { this.mColour = aColour; map(aID, this); this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", "")); + GT_LanguageManager.addStringLocalization("gtplusplus.comb." + this.mNameUnlocal, this.mName + " Comb"); } public void setHidden() { @@ -45,7 +46,7 @@ public enum GTPP_CombType { } public String getName() { - return GT_LanguageManager.addStringLocalization("comb." + this.mNameUnlocal, this.mName + " Comb"); + return GT_LanguageManager.getTranslation("gtplusplus.comb." + this.mNameUnlocal); } public int[] getColours() { diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java index f045dc9b26..cbf448b7f6 100644 --- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java +++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_DropType.java @@ -37,6 +37,7 @@ public enum GTPP_DropType { this.mColour = aColour; map(aID, this); this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", "")); + GT_LanguageManager.addStringLocalization("gtplusplus.drop." + this.mNameUnlocal, this.mName + " Drop"); } public void setHidden() { @@ -44,7 +45,7 @@ public enum GTPP_DropType { } public String getName() { - return GT_LanguageManager.addStringLocalization("drop." + this.mNameUnlocal, this.mName + " Drop"); + return GT_LanguageManager.getTranslation("gtplusplus.drop." + this.mNameUnlocal); } public int[] getColours() { diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java index d4591b5094..ec49643001 100644 --- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java +++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PollenType.java @@ -36,6 +36,7 @@ public enum GTPP_PollenType { this.mColour = aColour; map(aID, this); this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", "")); + GT_LanguageManager.addStringLocalization("gtplusplus.pollen." + this.mNameUnlocal, this.mName + " Pollen"); } public void setHidden() { @@ -43,7 +44,7 @@ public enum GTPP_PollenType { } public String getName() { - return GT_LanguageManager.addStringLocalization("pollen." + this.mNameUnlocal, this.mName + " Pollen"); + return GT_LanguageManager.getTranslation("gtplusplus.pollen." + this.mNameUnlocal); } public int[] getColours() { diff --git a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java index 5049053773..b857827d62 100644 --- a/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java +++ b/src/main/java/gtPlusPlus/xmod/forestry/bees/handler/GTPP_PropolisType.java @@ -37,6 +37,7 @@ public enum GTPP_PropolisType { this.mColour = aColour; map(aID, this); this.mMaterial = GTPP_Bees.sMaterialMappings.get(aName.toLowerCase().replaceAll(" ", "")); + GT_LanguageManager.addStringLocalization("gtplusplus.propolis." + this.mNameUnlocal, this.mName + " Propolis"); } public void setHidden() { @@ -44,7 +45,7 @@ public enum GTPP_PropolisType { } public String getName() { - return GT_LanguageManager.addStringLocalization("propolis." + this.mNameUnlocal, this.mName + " Propolis"); + return GT_LanguageManager.getTranslation("gtplusplus.propolis." + this.mNameUnlocal); } public int getColours() { |
