Merge pull request #2408 from MatthiasMann/issue_2407

#2407 allow more localization
This commit is contained in:
tterrag1098 committed 2015-05-05 13:12:09 -04:00
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;
}