mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 15:33:06 +00:00
Merge pull request #2408 from MatthiasMann/issue_2407
#2407 allow more localization
This commit is contained in:
commit
23a8a8b312
12 files changed
+15
-16
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package crazypants.enderio.gui;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -183,7 +184,7 @@ public class TooltipAddera {
|
||||
if(showAdvancedTooltips()) {
|
||||
list.add(Lang.localize("fuel.tooltip.heading"));
|
||||
list.add(EnumChatFormatting.ITALIC + " " + PowerDisplayUtil.formatPowerPerTick(fuel.getPowerPerCycle()));
|
||||
list.add(EnumChatFormatting.ITALIC + " " + fuel.getTotalBurningTime() + " " + Lang.localize("fuel.tooltip.burnTime"));
|
||||
list.add(EnumChatFormatting.ITALIC + " " + MessageFormat.format(Lang.localize("fuel.tooltip.burnTime"), fuel.getTotalBurningTime()));
|
||||
} else {
|
||||
addShowDetailsTooltip(list);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package crazypants.enderio.nei;
|
||||
|
||||
import java.awt.Rectangle;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
@@ -126,11 +127,7 @@ public class SagMillRecipeHandler extends TemplateRecipeHandler {
|
||||
float chance = recipe.getChanceForOutput(stack);
|
||||
if(chance > 0 && chance < 1) {
|
||||
int chanceInt = (int) (chance * 100);
|
||||
if(chanceInt == 0) {
|
||||
currenttip.add(EnumChatFormatting.GRAY + "Chance: <1%");
|
||||
} else {
|
||||
currenttip.add(EnumChatFormatting.GRAY + "Chance: " + chanceInt + "%");
|
||||
}
|
||||
currenttip.add(EnumChatFormatting.GRAY + MessageFormat.format(StatCollector.translateToLocal("enderio.nei.sagmill.outputchance"), chanceInt));
|
||||
}
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user