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 {