From ba4f8d47a549546355b25df9459465656341d622 Mon Sep 17 00:00:00 2001 From: tosmers Date: Sun, 15 Feb 2015 16:31:07 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20ccm-navigation/s?= =?UTF-8?q?rc/com/arsdigita/navigation/ui/admin/CategoryFormAddContext.jav?= =?UTF-8?q?a=20die=20FormProcessException=20in=20der=20Zeile=20113=20umgeb?= =?UTF-8?q?aut=20und=20den=20key=20template=5Falready=5Fexists=20den=20Pro?= =?UTF-8?q?perties=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@3188 8810af33-2d31-482b-a856-94f89814c4df --- .../arsdigita/navigation/NavigationResources.properties | 1 + .../navigation/NavigationResources_de.properties | 1 + .../navigation/ui/admin/CategoryFormAddContext.java | 9 +++------ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ccm-navigation/src/com/arsdigita/navigation/NavigationResources.properties b/ccm-navigation/src/com/arsdigita/navigation/NavigationResources.properties index dba6edfa9..21a93891e 100644 --- a/ccm-navigation/src/com/arsdigita/navigation/NavigationResources.properties +++ b/ccm-navigation/src/com/arsdigita/navigation/NavigationResources.properties @@ -15,3 +15,4 @@ ui.quick_link.icon=Icon portlet.ui.cannot_find_object_type=Can not find object type {0}. portlet.ui.not_a_subtype=The type {0} is not a subtype of {1}. portlet.ui.type_does_not_have_property=The type {0} does not a have a property {1}. +ui.admin.template_already_exists=A template already exists for dispatcher context {0} and use context {1} diff --git a/ccm-navigation/src/com/arsdigita/navigation/NavigationResources_de.properties b/ccm-navigation/src/com/arsdigita/navigation/NavigationResources_de.properties index e85cd58be..d5c69cb3e 100644 --- a/ccm-navigation/src/com/arsdigita/navigation/NavigationResources_de.properties +++ b/ccm-navigation/src/com/arsdigita/navigation/NavigationResources_de.properties @@ -15,3 +15,4 @@ ui.quick_link.icon=Icon portlet.ui.cannot_find_object_type=Kann Typ '{0}' nicht finden. portlet.ui.not_a_subtype=Der Typ '{0}' ist kein Untertyp von '{1}'. portlet.ui.type_does_not_have_property=Der Typ '{0}' hat keine Eigenschaft '{1}'. +ui.admin.template_already_exists=Eine Vorlage existiert bereits f\u00fcr den dispatcher context {0} und use context {1} diff --git a/ccm-navigation/src/com/arsdigita/navigation/ui/admin/CategoryFormAddContext.java b/ccm-navigation/src/com/arsdigita/navigation/ui/admin/CategoryFormAddContext.java index 4233448ba..a5cb2498c 100755 --- a/ccm-navigation/src/com/arsdigita/navigation/ui/admin/CategoryFormAddContext.java +++ b/ccm-navigation/src/com/arsdigita/navigation/ui/admin/CategoryFormAddContext.java @@ -41,6 +41,7 @@ import com.arsdigita.bebop.parameters.NotNullValidationListener; import com.arsdigita.categorization.Category; import com.arsdigita.cms.TemplateContext; import com.arsdigita.cms.TemplateContextCollection; +import com.arsdigita.navigation.NavigationGlobalizationUtil; import com.arsdigita.xml.Element; import java.util.TooManyListenersException; @@ -109,12 +110,8 @@ public class CategoryFormAddContext extends Form { TemplateMapping mapping = TemplateMapping.retrieve( category, dispatcherContext, useContext ); if( null != mapping ) { - StringBuffer buf = new StringBuffer(); - buf.append( "A template already exists for dispatcher context " ); - buf.append( dispatcherContext ).append( " and use context " ); - buf.append( useContext ).append( ". You may edit it below" ); - - throw new FormProcessException( buf.toString() ); + throw new FormProcessException(NavigationGlobalizationUtil.globalize( + "ui.admin.template_already_exists", new Object[]{dispatcherContext, useContext})); } } } );