From 8cc2883a3e6b701006a01cb9eb0bc116dfead5fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 29 May 2008 13:32:42 +0200 Subject: [PATCH] add error message when not connected to node --- src/net/pterodactylus/jsite/gui/SwingInterface.java | 5 ++--- src/net/pterodactylus/jsite/i18n/jSite.properties | 5 ++++- src/net/pterodactylus/jsite/i18n/jSite_de.properties | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/net/pterodactylus/jsite/gui/SwingInterface.java b/src/net/pterodactylus/jsite/gui/SwingInterface.java index eef499b..cf6f4e1 100644 --- a/src/net/pterodactylus/jsite/gui/SwingInterface.java +++ b/src/net/pterodactylus/jsite/gui/SwingInterface.java @@ -763,9 +763,8 @@ public class SwingInterface implements CoreListener, LoggingListener, PropertyCh private void addProject() { try { core.createProject(); - } catch (JSiteException nne1) { - /* TODO - add i18n */ - JOptionPane.showMessageDialog(mainWindow, I18n.get(""), I18n.get(""), JOptionPane.ERROR_MESSAGE); + } catch (JSiteException jse1) { + JOptionPane.showMessageDialog(mainWindow, I18n.get("mainWindow.error.notConnected.message"), I18n.get("mainWindow.error.notConnected.title"), JOptionPane.ERROR_MESSAGE); } catch (IOException e) { /* TODO - add i18n */ JOptionPane.showMessageDialog(mainWindow, I18n.get(""), I18n.get(""), JOptionPane.ERROR_MESSAGE); diff --git a/src/net/pterodactylus/jsite/i18n/jSite.properties b/src/net/pterodactylus/jsite/i18n/jSite.properties index 9f12cce..46af14e 100644 --- a/src/net/pterodactylus/jsite/i18n/jSite.properties +++ b/src/net/pterodactylus/jsite/i18n/jSite.properties @@ -51,6 +51,9 @@ mainWindow.error.nodeConnectionFailed.message: Connecting to node \u201c{0}\u201 mainWindow.error.hostnameUnresolvable.title: Could Not Resolve Hostname mainWindow.error.hostnameUnresolvable.message: The hostname \u201c{0}\u201d can not be resolved! +mainWindow.error.notConnected.title: Not Connected +mainWindow.error.notConnected.message: You are not connected to a node. + mainWindow.question.deleteNode.title: Really Remove Node? mainWindow.question.deleteNode.message: You are about to remove the node \u201c{0}\u201d!
Do you want to continue? @@ -194,7 +197,7 @@ projectPanel.label.basePath.name: Base Path projectPanel.label.basePath.mnemonic: VK_B projectPanel.basePathInformation.scanning: Scanning the base path\u2026 -projectPanel.basePathInformation.fileCount: Found {0} file{0,choice,0#s|1#|2#s}. +projectPanel.basePathInformation.fileCount: Found {0} file{0,choice,0#s|1#|2#s}. projectPanel.button.changeBasePath.name: Change projectPanel.button.changeBasePath.mnemonic: VK_C diff --git a/src/net/pterodactylus/jsite/i18n/jSite_de.properties b/src/net/pterodactylus/jsite/i18n/jSite_de.properties index 343f8aa..c951efe 100644 --- a/src/net/pterodactylus/jsite/i18n/jSite_de.properties +++ b/src/net/pterodactylus/jsite/i18n/jSite_de.properties @@ -51,6 +51,9 @@ mainWindow.error.nodeConnectionFailed.message: Die Verbindung zum Node \u201e{0} mainWindow.error.hostnameUnresolvable.title: Hostname unbekannt mainWindow.error.hostnameUnresolvable.message: Der Hostname \u201e{0}\u201e kann nicht aufgel\u00f6st werden! +mainWindow.error.notConnected.title: Nicht verbunden +mainWindow.error.notConnected.message: Es besteht keine Verbindung zu einem Node! + mainWindow.question.deleteNode.title: Node wirklich l\u00f6schen? mainWindow.question.deleteNode.message: Den Node \u201e{0}\u201c wirklich l\u00f6schen? -- 2.7.4