[UPDATE]
In der Klasse ccm-navigation/src/com/arsdigita/navigation/ui/admin/CategoryFormAddContext.java die FormProcessException in der Zeile 113 umgebaut und den key template_already_exists den Properties hinzugefügt. git-svn-id: https://svn.libreccm.org/ccm/trunk@3188 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
2b4b09fc08
commit
ba4f8d47a5
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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}));
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
|
|
|||
Loading…
Reference in New Issue