Translation Fix
This commit is contained in:
parent
309f363cc5
commit
c4f77bd47b
10 changed files with 10 additions and 10 deletions
|
@ -22,7 +22,7 @@ public class TranslatedDefaultMutableTreeNode extends DefaultMutableTreeNode
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setUserObject(componentReference.value);
|
setUserObject(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class TranslatedJButton extends JButton
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class TranslatedJCheckBox extends JCheckBox
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class TranslatedJCheckBoxMenuItem extends JCheckBoxMenuItem
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class TranslatedJLabel extends JLabel
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class TranslatedJMenu extends JMenu
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class TranslatedJMenuItem extends JMenuItem
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class TranslatedJRadioButtonMenuItem extends JRadioButtonMenuItem
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class TranslatedJTextField extends JTextField
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setText(componentReference.value);
|
setText(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class TranslatedVisibleComponent extends VisibleComponent
|
||||||
componentReference = translation.getTranslatedComponentReference();
|
componentReference = translation.getTranslatedComponentReference();
|
||||||
componentReference.runOnUpdate.add(()->
|
componentReference.runOnUpdate.add(()->
|
||||||
{
|
{
|
||||||
if(componentReference.value != null && componentReference.value.isEmpty())
|
if(componentReference.value != null && !componentReference.value.isEmpty())
|
||||||
setTitle(componentReference.value);
|
setTitle(componentReference.value);
|
||||||
});
|
});
|
||||||
componentReference.translate();
|
componentReference.translate();
|
||||||
|
|
Loading…
Reference in a new issue