mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 21:09:51 +00:00
Fix #1287 Some genetic traits have broken localization
This commit is contained in:
1 parent
6700c511a5
commit
7575b9c6ce
4 files changed
+13
-13
No files matched your search
@@ -21,10 +21,10 @@ import net.minecraft.util.math.Vec3i;
|
||||
*
|
||||
* For example:
|
||||
* en_US
|
||||
* Forestry.allele.smallest=Smallest
|
||||
* forestry.allele.smallest=Smallest
|
||||
* ru_RU
|
||||
* Forestry.allele.smallest=????? ?????????
|
||||
* Forestry.allele.height.smallest=????? ??????
|
||||
* forestry.allele.smallest=????? ?????????
|
||||
* forestry.allele.height.smallest=????? ??????
|
||||
*/
|
||||
public interface IAlleleFactory {
|
||||
/**
|
||||
|
||||
@@ -17,19 +17,19 @@ public class GenericRatings {
|
||||
|
||||
public static String rateMetabolism(int metabolism) {
|
||||
if (metabolism >= 19) {
|
||||
return Translator.translateToLocal("Forestry.allele.highest");
|
||||
return Translator.translateToLocal("forestry.allele.highest");
|
||||
} else if (metabolism >= 16) {
|
||||
return Translator.translateToLocal("Forestry.allele.higher");
|
||||
return Translator.translateToLocal("forestry.allele.higher");
|
||||
} else if (metabolism >= 13) {
|
||||
return Translator.translateToLocal("Forestry.allele.high");
|
||||
return Translator.translateToLocal("forestry.allele.high");
|
||||
} else if (metabolism >= 10) {
|
||||
return Translator.translateToLocal("Forestry.allele.average");
|
||||
return Translator.translateToLocal("forestry.allele.average");
|
||||
} else if (metabolism >= 7) {
|
||||
return Translator.translateToLocal("Forestry.allele.slow");
|
||||
return Translator.translateToLocal("forestry.allele.slow");
|
||||
} else if (metabolism >= 4) {
|
||||
return Translator.translateToLocal("Forestry.allele.slower");
|
||||
return Translator.translateToLocal("forestry.allele.slower");
|
||||
} else {
|
||||
return Translator.translateToLocal("Forestry.allele.slowest");
|
||||
return Translator.translateToLocal("forestry.allele.slowest");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ import forestry.core.utils.Translator;
|
||||
* For example, temperature tolerances or speeds are categories with several values.
|
||||
*
|
||||
* This class helps localization by allowing specific names like
|
||||
* Forestry.allele.speed.fast
|
||||
* forestry.allele.speed.fast
|
||||
* and can fall back on generic names like
|
||||
* Forestry.allele.fast
|
||||
* forestry.allele.fast
|
||||
*/
|
||||
public abstract class AlleleCategorized extends Allele {
|
||||
protected AlleleCategorized(String modId, String category, String valueName, boolean isDominant) {
|
||||
|
||||
Reference in new issue
Block a user