From: David ‘Bombe’ Roden Date: Mon, 21 Dec 2009 21:15:56 +0000 (+0100) Subject: Update label when language changes. X-Git-Tag: 0.8~30 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=19e053bede923d489b6275f435c86c27294fa1af;p=jSite.git Update label when language changes. --- 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; }