Translation for solar panels

This commit is contained in:
drcrazy 2019-07-26 15:22:48 +03:00
parent d76d637781
commit 4e1dfa0018
2 changed files with 14 additions and 13 deletions

View file

@ -58,7 +58,7 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
return canSeeSky && !world.isRaining() && !world.isThundering() && world.isDaylight(); return canSeeSky && !world.isRaining() && !world.isThundering() && world.isDaylight();
} }
private void updatePanel(){ private void updatePanel() {
if (world == null) { if (world == null) {
return; return;
} }
@ -135,20 +135,19 @@ public class SolarPanelBlockEntity extends PowerAcceptorBlockEntity implements I
// Nope // Nope
} }
// TODO: Translate
@Override @Override
public void addInfo(List<Text> info, boolean isReal, boolean hasData) { public void addInfo(List<Text> info, boolean isReal, boolean hasData) {
info.add(new LiteralText(Formatting.GRAY + "Internal Energy Storage: " + Formatting.GOLD info.add(new LiteralText(Formatting.GRAY + StringUtils.t("reborncore.tooltip.energy.maxEnergy") + ": "
+ PowerSystem.getLocaliszedPowerFormatted((int) getMaxPower()))); + Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted(getMaxPower())));
info.add(new LiteralText(Formatting.GRAY + "Generation Rate Day: " + Formatting.GOLD info.add(new LiteralText(Formatting.GRAY + StringUtils.t("techreborn.tooltip.generationRate.day") + ": "
+ PowerSystem.getLocaliszedPowerFormatted(panel.generationRateD))); + Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted(panel.generationRateD)));
info.add(new LiteralText(Formatting.GRAY + "Generation Rate Night: " + Formatting.GOLD info.add(new LiteralText(Formatting.GRAY + StringUtils.t("techreborn.tooltip.generationRate.day") + ": "
+ PowerSystem.getLocaliszedPowerFormatted(panel.generationRateN))); + Formatting.GOLD + PowerSystem.getLocaliszedPowerFormatted(panel.generationRateN)));
info.add(new LiteralText(Formatting.GRAY + "Tier: " + Formatting.GOLD info.add(new LiteralText(Formatting.GRAY + StringUtils.t("reborncore.tooltip.energy.tier") + ": "
+ StringUtils.toFirstCapitalAllLowercase(getTier().toString()))); + Formatting.GOLD + StringUtils.toFirstCapitalAllLowercase(getTier().toString())));
} }
@Override @Override

View file

@ -617,6 +617,8 @@
"techreborn.tooltip.inventory": "Inventory", "techreborn.tooltip.inventory": "Inventory",
"techreborn.tooltip.upgrades": "Upgrades", "techreborn.tooltip.upgrades": "Upgrades",
"techreborn.tooltip.alarm": "Shift rightclick to change sound", "techreborn.tooltip.alarm": "Shift rightclick to change sound",
"techreborn.tooltip.generationRate.day": "Generation Rate Day",
"techreborn.tooltip.generationRate.night": "Generation Rate Night",
"_comment23": "ManualUI", "_comment23": "ManualUI",
"techreborn.manual.wiki": "Online wiki", "techreborn.manual.wiki": "Online wiki",