Update label when language changes.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:15:56 +0000 (22:15 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:15:56 +0000 (22:15 +0100)
src/de/todesbaum/jsite/gui/PreferencesPage.java

index e3fea06..0ba70ef 100644 (file)
@@ -147,6 +147,17 @@ public class PreferencesPage extends TWizardPage {
                final JLabel fileOptionsLabel = new JLabel("<html><b>" + I18n.getMessage("jsite.preferences.file-options") + "</b></html>");
                fileOptionsPanel.add(fileOptionsLabel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
 
+               I18nContainer.getInstance().registerRunnable(new Runnable() {
+
+                       /**
+                        * {@inheritDoc}
+                        */
+                       @Override
+                       public void run() {
+                               fileOptionsLabel.setText("<html><b>" + I18n.getMessage("jsite.preferences.file-options") + "</b></html>");
+                       }
+               });
+
                return preferencesPanel;
        }