From c4f77bd47b53f858073554b91bd1b941149ebc1e Mon Sep 17 00:00:00 2001 From: Konloch Date: Thu, 8 Jul 2021 02:08:46 -0700 Subject: [PATCH] Translation Fix --- .../components/TranslatedDefaultMutableTreeNode.java | 2 +- .../translation/components/TranslatedJButton.java | 2 +- .../translation/components/TranslatedJCheckBox.java | 2 +- .../translation/components/TranslatedJCheckBoxMenuItem.java | 2 +- .../bytecodeviewer/translation/components/TranslatedJLabel.java | 2 +- .../bytecodeviewer/translation/components/TranslatedJMenu.java | 2 +- .../translation/components/TranslatedJMenuItem.java | 2 +- .../translation/components/TranslatedJRadioButtonMenuItem.java | 2 +- .../translation/components/TranslatedJTextField.java | 2 +- .../translation/components/TranslatedVisibleComponent.java | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java index 3165a955..f80e50d7 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedDefaultMutableTreeNode.java @@ -22,7 +22,7 @@ public class TranslatedDefaultMutableTreeNode extends DefaultMutableTreeNode componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setUserObject(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java index 4072376d..da31cddc 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJButton.java @@ -22,7 +22,7 @@ public class TranslatedJButton extends JButton componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java index fe77f275..0b29e131 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBox.java @@ -40,7 +40,7 @@ public class TranslatedJCheckBox extends JCheckBox componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java index 1bcfe33a..b0ba6a92 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJCheckBoxMenuItem.java @@ -40,7 +40,7 @@ public class TranslatedJCheckBoxMenuItem extends JCheckBoxMenuItem componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java index 6659f504..c2aa2517 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJLabel.java @@ -22,7 +22,7 @@ public class TranslatedJLabel extends JLabel componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java index a802f0a6..03da8ca0 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenu.java @@ -40,7 +40,7 @@ public class TranslatedJMenu extends JMenu componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java index ef491906..0b1fc5ed 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJMenuItem.java @@ -40,7 +40,7 @@ public class TranslatedJMenuItem extends JMenuItem componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java index 53453d76..bab8132b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJRadioButtonMenuItem.java @@ -40,7 +40,7 @@ public class TranslatedJRadioButtonMenuItem extends JRadioButtonMenuItem componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java index 5690f80f..84ffcf8b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedJTextField.java @@ -22,7 +22,7 @@ public class TranslatedJTextField extends JTextField componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setText(componentReference.value); }); componentReference.translate(); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java index d1a87a6e..1e50ae26 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/components/TranslatedVisibleComponent.java @@ -21,7 +21,7 @@ public class TranslatedVisibleComponent extends VisibleComponent componentReference = translation.getTranslatedComponentReference(); componentReference.runOnUpdate.add(()-> { - if(componentReference.value != null && componentReference.value.isEmpty()) + if(componentReference.value != null && !componentReference.value.isEmpty()) setTitle(componentReference.value); }); componentReference.translate();