add missing stuff in the dict

This commit is contained in:
bancika
2020-05-07 11:10:05 +02:00
parent ffe4d83e3d
commit aeca976c4e
7 changed files with 264 additions and 183 deletions
@@ -40,8 +40,20 @@ public class TranslatedPanel extends JPanel {
if (comp instanceof JLabel) {
JLabel button = (JLabel)comp;
String name = button.getText();
if (name != null)
button.setText(LangUtil.translate(name));
if (name != null) {
boolean containsColon = false;
if (name.contains(": ")) {
containsColon = true;
name = name.replace(": ", "");
}
String translated = LangUtil.translate(name);
if (containsColon)
translated += ": ";
button.setText(translated);
}
}
return super.add(comp);
}