From fbd3eaf854bfc758da78976c219e83e1613b988c Mon Sep 17 00:00:00 2001 From: tosmers Date: Sun, 15 Feb 2015 12:46:05 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20ccm-cms/src/com/?= =?UTF-8?q?arsdigita/cms/DataQueryExistsListener.java=20die=20FormProcessE?= =?UTF-8?q?xception=20in=20der=20Zeile=2071=20umgebaut=20und=20den=20key?= =?UTF-8?q?=20cms.dataqueryexistslistener.error=20den=20Properties=20hinzu?= =?UTF-8?q?gef=C3=BCgt.=20FormProcessException=20mit=20m=5FerrorMsg=20Stri?= =?UTF-8?q?ng=20beibehalten=20und=20um=20die=20GlobalizationUtil=20erweite?= =?UTF-8?q?rt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@3171 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 + ccm-cms/src/com/arsdigita/cms/DataQueryExistsListener.java | 3 ++- 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources.properties index 1992c24ef..4dd020c36 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources.properties @@ -1101,3 +1101,4 @@ cms.contenttypes.ui.url_missing_protocol=A valid URL starts with a protocol, eg cms.contenttypes.ui.internal_link_requires_item_selection=Item selection is required for internal link cms.contenttypes.ui.false_link_target=Link target is the same as this object cms.ui.live_item_not_editable=Live items cannot be edited +cms.dataqueryexistslistener.error=Error on validating the data query diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties index 247712899..e9e87bcb5 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_de.properties @@ -1095,3 +1095,4 @@ cms.contenttypes.ui.url_missing_protocol=Eine g\u00fcltige URL startet mit einem cms.contenttypes.ui.internal_link_requires_item_selection=Item-Wahl f\u00fcr den internen Link ist notwendig cms.contenttypes.ui.false_link_target=Das Ziel des Links ist das Selbe, wie dieses Objekt cms.ui.live_item_not_editable=Live-Items k\u00f6nnen nicht editiert/bearbeitet werden +cms.dataqueryexistslistener.error=Fehler beim Best\u00e4tigen der Datenabfrage 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 18373cf21..44d1b9341 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_en_GB.properties @@ -139,3 +139,4 @@ cms.contenttypes.ui.url_missing_protocol= cms.contenttypes.ui.internal_link_requires_item_selection= cms.contenttypes.ui.false_link_target= cms.ui.live_item_not_editable= +cms.dataqueryexistslistener.error= diff --git a/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties b/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties index db3157535..31ea974d1 100755 --- a/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties +++ b/ccm-cms/src/com/arsdigita/cms/CMSResources_fr.properties @@ -611,3 +611,4 @@ cms.contenttypes.ui.url_missing_protocol=Une URL valide commence par un protocol cms.contenttypes.ui.internal_link_requires_item_selection=Choix d'article pour le lien interne est n\u00e9cessaire cms.contenttypes.ui.false_link_target=La cible de lien est la m\u00eame que cet objet cms.ui.live_item_not_editable=articles en direct peuvent pas \u00eatre modifi\u00e9s +cms.dataqueryexistslistener.error=Erreur sur la validation de la requ\u00eate de donn\u00e9es diff --git a/ccm-cms/src/com/arsdigita/cms/DataQueryExistsListener.java b/ccm-cms/src/com/arsdigita/cms/DataQueryExistsListener.java index a81627dbb..6a33578e0 100755 --- a/ccm-cms/src/com/arsdigita/cms/DataQueryExistsListener.java +++ b/ccm-cms/src/com/arsdigita/cms/DataQueryExistsListener.java @@ -21,6 +21,7 @@ package com.arsdigita.cms; import com.arsdigita.bebop.FormProcessException; import com.arsdigita.bebop.event.FormSectionEvent; import com.arsdigita.bebop.event.FormValidationListener; +import com.arsdigita.cms.util.GlobalizationUtil; import com.arsdigita.persistence.DataQuery; @@ -67,7 +68,7 @@ public abstract class DataQueryExistsListener DataQuery dq = getDataQuery(event); if ( dq.next() ) { dq.close(); - throw new FormProcessException(m_errorMsg); + throw new FormProcessException(m_errorMsg, GlobalizationUtil.globalize("cms.dataqueryexistslistener.error")); } dq.close(); }