From 276aeafcc67b68fc6b5665a953e921cf918a7c1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 16 Aug 2011 23:21:26 +0200 Subject: [PATCH] Add title to confirmation dialog. --- src/de/todesbaum/jsite/i18n/jSite.properties | 1 + src/de/todesbaum/jsite/i18n/jSite_de.properties | 1 + src/de/todesbaum/jsite/main/Main.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/de/todesbaum/jsite/i18n/jSite.properties b/src/de/todesbaum/jsite/i18n/jSite.properties index c56cff8..0388364 100644 --- a/src/de/todesbaum/jsite/i18n/jSite.properties +++ b/src/de/todesbaum/jsite/i18n/jSite.properties @@ -35,6 +35,7 @@ jsite.wizard.quit=Quit jsite.quit.question=Do you really want to quit? jsite.quite.overwrite-configuration=Overwrite configuration?

A configuration file already exists:
{0}

Should it be overwritten? +jsite.quit.overwrite-configuration.title=Overwrite configuration? jsite.quit.config-not-saved=Configuration not saved

The configuration could not be saved.
Do you want to quit anyway? jsite.menu.languages=Languages diff --git a/src/de/todesbaum/jsite/i18n/jSite_de.properties b/src/de/todesbaum/jsite/i18n/jSite_de.properties index edf8256..3e5fd53 100644 --- a/src/de/todesbaum/jsite/i18n/jSite_de.properties +++ b/src/de/todesbaum/jsite/i18n/jSite_de.properties @@ -35,6 +35,7 @@ jsite.wizard.quit=Beenden jsite.quit.question=M\u00f6chten Sie jSite wirklich beenden? jsite.quite.overwrite-configuration=Konfiguration \u00fcberschreiben?

Es existiert bereits eine Konfigurationsdatei unter:
{0}

Soll sie \u00fcberschrieben werden? +jsite.quit.overwrite-configuration.title=Konfiguration \u00fcberschreiben? jsite.quit.config-not-saved=Konfiguration nicht gespeichert

Die Konfiguration konnte nicht gespeichert werden.
Soll jSite trotzdem beendet werden? jsite.menu.languages=Sprachen diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index f4e4b24..8809a32 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -594,7 +594,7 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen } if (JOptionPane.showConfirmDialog(wizard, I18n.getMessage("jsite.quit.question"), null, JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.OK_OPTION) { if (isOverwritingConfiguration()) { - int overwriteConfigurationAnswer = JOptionPane.showConfirmDialog(wizard, MessageFormat.format(I18n.getMessage("jsite.quite.overwrite-configuration"), configuration.getConfigurationLocator().getFile(configuration.getConfigurationDirectory())), null, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); + int overwriteConfigurationAnswer = JOptionPane.showConfirmDialog(wizard, MessageFormat.format(I18n.getMessage("jsite.quite.overwrite-configuration"), configuration.getConfigurationLocator().getFile(configuration.getConfigurationDirectory())), I18n.getMessage("jsite.quit.overwrite-configuration.title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (overwriteConfigurationAnswer == JOptionPane.YES_OPTION) { if (saveConfiguration()) { System.exit(0); -- 2.7.4