From 19e053bede923d489b6275f435c86c27294fa1af Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 21 Dec 2009 22:15:56 +0100 Subject: [PATCH] Update label when language changes. --- src/de/todesbaum/jsite/gui/PreferencesPage.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index e3fea06..0ba70ef 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -147,6 +147,17 @@ public class PreferencesPage extends TWizardPage { final JLabel fileOptionsLabel = new JLabel("" + I18n.getMessage("jsite.preferences.file-options") + ""); 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("" + I18n.getMessage("jsite.preferences.file-options") + ""); + } + }); + return preferencesPanel; } -- 2.7.4