From b966753ed8cca05ab0104a574d73b0ac1ac87648 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:33:30 +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 0388364..d091dc3 100644 --- a/src/de/todesbaum/jsite/i18n/jSite.properties +++ b/src/de/todesbaum/jsite/i18n/jSite.properties @@ -34,6 +34,7 @@ jsite.wizard.next=Next jsite.wizard.quit=Quit jsite.quit.question=Do you really want to quit? +jsite.quit.question.title=Really 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? diff --git a/src/de/todesbaum/jsite/i18n/jSite_de.properties b/src/de/todesbaum/jsite/i18n/jSite_de.properties index 3e5fd53..5e61cc4 100644 --- a/src/de/todesbaum/jsite/i18n/jSite_de.properties +++ b/src/de/todesbaum/jsite/i18n/jSite_de.properties @@ -34,6 +34,7 @@ jsite.wizard.next=Vorw\u00e4rts jsite.wizard.quit=Beenden jsite.quit.question=M\u00f6chten Sie jSite wirklich beenden? +jsite.quit.question.title=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? diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index 8809a32..81636d1 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -592,7 +592,7 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen if (((ProjectPage) pages.get(PageType.PAGE_PROJECTS)).wasUriCopied() || ((ProjectInsertPage) pages.get(PageType.PAGE_INSERT_PROJECT)).wasUriCopied()) { JOptionPane.showMessageDialog(wizard, I18n.getMessage("jsite.project.warning.use-clipboard-now")); } - if (JOptionPane.showConfirmDialog(wizard, I18n.getMessage("jsite.quit.question"), null, JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.OK_OPTION) { + if (JOptionPane.showConfirmDialog(wizard, I18n.getMessage("jsite.quit.question"), I18n.getMessage("jsite.quit.question.title"), 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())), I18n.getMessage("jsite.quit.overwrite-configuration.title"), JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (overwriteConfigurationAnswer == JOptionPane.YES_OPTION) { -- 2.7.4