Translation Fix

This commit is contained in:
Konloch 2021-07-08 02:08:46 -07:00
parent 309f363cc5
commit c4f77bd47b
10 changed files with 10 additions and 10 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();

View file

@ -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();