From 766d31a11877a9b86b5a7a4c37cdbcc88dbd3699 Mon Sep 17 00:00:00 2001 From: tosmers Date: Wed, 18 Feb 2015 19:51:10 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20ccm-ldn-search/s?= =?UTF-8?q?rc/com/arsdigita/london/search/ui/admin/ServerForm.java=20die?= =?UTF-8?q?=20FormProcessException=20in=20den=20Zeilen=20108=20und=20119?= =?UTF-8?q?=20umgebaut.=20Die=20keys=20search.ui.admin.invalid=5Furl=20und?= =?UTF-8?q?=20search.ui.admin.server=5Falready=5Fexists=20den=20Properties?= =?UTF-8?q?=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@3228 8810af33-2d31-482b-a856-94f89814c4df --- .../com/arsdigita/london/search/SearchResources.properties | 2 ++ .../com/arsdigita/london/search/SearchResources_de.properties | 2 ++ .../src/com/arsdigita/london/search/ui/admin/ServerForm.java | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources.properties b/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources.properties index c9219430d..281599321 100644 --- a/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources.properties +++ b/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources.properties @@ -5,3 +5,5 @@ search.ui.submit_button=Find search.ui.help=Please enter at least three letters for a search. You may narrow the result by adding further parameters. search.ui.no_results=No results found. +search.ui.admin.invalid_url=The URL is not valid +search.ui.admin.server_already_exists=A server already exists for that URL diff --git a/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources_de.properties b/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources_de.properties index 274bbf20d..5a8ab5253 100644 --- a/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources_de.properties +++ b/ccm-ldn-search/src/com/arsdigita/london/search/SearchResources_de.properties @@ -5,3 +5,5 @@ search.ui.submit_button=Finden search.ui.help=Bitte geben Sie miindestens drei Buchstaben f\u00fcr die Suche ein. Sie k\u00f6nnen das Ergebnis mit weiteren Suchparametern weiter einschr\u00e4nken. search.ui.no_results=Keine Ergebnisse gefunden. +search.ui.admin.invalid_url=Die URL ist nicht g\u00fcltig +search.ui.admin.server_already_exists=Eine Server existiert bereits f\u00fcr diese URL diff --git a/ccm-ldn-search/src/com/arsdigita/london/search/ui/admin/ServerForm.java b/ccm-ldn-search/src/com/arsdigita/london/search/ui/admin/ServerForm.java index 341432eee..856654476 100755 --- a/ccm-ldn-search/src/com/arsdigita/london/search/ui/admin/ServerForm.java +++ b/ccm-ldn-search/src/com/arsdigita/london/search/ui/admin/ServerForm.java @@ -31,6 +31,7 @@ import com.arsdigita.bebop.PageState; import com.arsdigita.bebop.event.FormValidationListener; import com.arsdigita.domain.DataObjectNotFoundException; import com.arsdigita.bebop.form.FormErrorDisplay; +import com.arsdigita.london.search.SearchGlobalizationUtil; import java.net.MalformedURLException; import java.net.URL; @@ -104,7 +105,8 @@ public class ServerForm extends Form { try { URL url = new URL(hostname); } catch ( MalformedURLException m ) { - throw new FormProcessException("The URL is not valid: " + hostname + "\n" + m.getMessage()); + throw new FormProcessException(SearchGlobalizationUtil.globalize( + "search.ui.admin.invalid_url")); } try {