From 9d472068cfa13a0ee7d2945f811981b38808a323 Mon Sep 17 00:00:00 2001 From: tosmers Date: Fri, 13 Feb 2015 21:11:32 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20com/arsdigita/cm?= =?UTF-8?q?s/contenttypes/ui/LinkPropertyForm.java=20die=20FormProcessExce?= =?UTF-8?q?ption=20in=20der=20Zeile=20410/11=20umgebaut.=20Angeh=C3=A4ngte?= =?UTF-8?q?=20Exception-Nachricht=20rausgeschmissen.=20Entsprechenden=20Ei?= =?UTF-8?q?ntrag=20(url=5Fnot=5Fvalid=20in=20den=20Properties=20hinzugef?= =?UTF-8?q?=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@3154 8810af33-2d31-482b-a856-94f89814c4df --- ccm-cms/src/com/arsdigita/cms/CMSResources.properties | 1 + ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties | 1 + ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties | 1 + ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties | 1 + .../com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java | 5 +++-- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources.properties index 621a341a7..b216dc154 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources.properties @@ -1096,3 +1096,4 @@ cms.ui.workflow.task.approval_or_reject_required=Approval or rejection is requir cms.ui.type.cancelled=Cancelled cms.contenttypes.ui.cancelled=Cancelled cms.contenttypes.ui.requires_uri_field=The URI field is required for an external link +cms.contenttypes.ui.url_not_valid=The URL is not valid diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties index f836c4a6e..7f1f33554 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties @@ -1090,3 +1090,4 @@ cms.ui.workflow.task.approval_or_reject_required=Ablehnung oder Zustimmung ist b cms.ui.type.cancelled=Abgebrochen cms.contenttypes.ui.cancelled=Abgebrochen cms.contenttypes.ui.requires_uri_field=Das URI-Feld wird f\u00fcr einen externen Link ben\u00f6tigt +cms.contenttypes.ui.url_not_valid=Die URL ist nicht g\u00fcltig diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties index bdae07a3e..e92a9c3b0 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties @@ -134,3 +134,4 @@ cms.ui.type.name_not_unique=Name not unique cms.ui.type.cancelled=cancelled cms.contenttypes.ui.cancelled=Cancelled cms.contenttypes.ui.requires_uri_field= +cms.contenttypes.ui.url_not_valid= diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties index a63aca55a..d980e8b08 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties @@ -606,3 +606,4 @@ cms.ui.type.invalid=Invalide cms.ui.category.name_not_unique=Il y a d\u00e9ja une cat\u00e9gorie avec le nom cms.contenttypes.ui.cancelled=Annul\u00e9 cms.contenttypes.ui.requires_uri_field=Le champ URI est n\u00e9cessaire pour un lien externe +cms.contenttypes.ui.url_not_valid=L'URL n'est pas valide diff --git a/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java b/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java index 060fd73e1..78926aceb 100755 --- a/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java +++ b/ccm-cms/src/com/arsdigita/cms/contenttypes/ui/LinkPropertyForm.java @@ -406,8 +406,9 @@ public class LinkPropertyForm extends FormSection newURL = HTTP_PROTOCOL + url; } else { // No idea, just throw the error - - throw new FormProcessException("URL is not valid: " + ex.getMessage()); + + // originally: "URL is not valid: " + ex.getMessage() + throw new FormProcessException(GlobalizationUtil.globalize("cms.contenttypes.ui.url_not_valid")); } try {