Added some localization

This commit is contained in:
kordum committed 2017-06-12 10:53:08 +03:00
1 parent 82fab2c1cb
commit 0441379c1c
19 files changed
+158 -232

No files matched your search

@@ -47,9 +47,9 @@ public class ItemSequence extends Item implements IItemAnalysable, IItemChargabl
public String getItemStackDisplayName(ItemStack stack) {
GeneItem gene = new GeneItem(stack);
if (gene.isCorrupted()) {
return "Corrupted Sequence";
return I18N.localise("genetics.sequence.corrupted");
}
return gene.getBreedingSystem().getDescriptor() + " DNA Sequence";
return I18N.localise("genetics.sequence.descriptor", gene.getBreedingSystem().getDescriptor());
}
@Override
@@ -65,16 +65,16 @@ public class ItemSequence extends Item implements IItemAnalysable, IItemChargabl
if (gene.analysed) {
gene.getInfo(tooltip);
} else {
tooltip.add("<Unknown>");
tooltip.add(I18N.localise("genetics.sequence.unknown"));
}
int seq = gene.sequenced;
if (seq == 0) {
tooltip.add("Unsequenced");
tooltip.add(I18N.localise("genetics.sequence.unsequenced"));
} else if (seq < 100) {
tooltip.add("Partially Sequenced (" + seq + "%)");
tooltip.add(I18N.localise("genetics.sequence.partially", seq));
} else {
tooltip.add("Fully Sequenced");
tooltip.add(I18N.localise("genetics.sequence.fully"));
}
}