Weitere Verbesserung Multi-Language Support.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2211 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2013-06-15 08:43:37 +00:00
parent 681578432f
commit 7639171263
5 changed files with 9 additions and 13 deletions

View File

@ -95,11 +95,11 @@ public class ImagePropertiesStep extends SimpleEditStep {
editSheet = new ImagePropertyForm(itemModel, this); editSheet = new ImagePropertyForm(itemModel, this);
add(EDIT_SHEET_NAME, add(EDIT_SHEET_NAME,
"Edit", GlobalizationUtil.globalize("cms.ui.edit"),
new WorkflowLockedComponentAccess(editSheet, itemModel), new WorkflowLockedComponentAccess(editSheet, itemModel),
editSheet.getSaveCancelSection().getCancelButton()); editSheet.getSaveCancelSection().getCancelButton());
add(UPLOAD_SHEET_NAME, add(UPLOAD_SHEET_NAME,
"Upload", GlobalizationUtil.globalize("cms.ui.upload"),
new WorkflowLockedComponentAccess(uploadSheet, itemModel), new WorkflowLockedComponentAccess(uploadSheet, itemModel),
uploadSheet.getSaveCancelSection().getCancelButton()); uploadSheet.getSaveCancelSection().getCancelButton());

View File

@ -21,7 +21,6 @@ package com.arsdigita.cms.contenttypes.ui;
import com.arsdigita.cms.contenttypes.InlineSite; import com.arsdigita.cms.contenttypes.InlineSite;
import com.arsdigita.bebop.Component; import com.arsdigita.bebop.Component;
import com.arsdigita.bebop.PageState;
import com.arsdigita.cms.ContentPage; import com.arsdigita.cms.ContentPage;
import com.arsdigita.cms.ContentSection; import com.arsdigita.cms.ContentSection;
import com.arsdigita.cms.ui.authoring.BasicPageForm; import com.arsdigita.cms.ui.authoring.BasicPageForm;
@ -32,8 +31,6 @@ import com.arsdigita.cms.ui.authoring.SimpleEditStep;
import com.arsdigita.toolbox.ui.DomainObjectPropertySheet; import com.arsdigita.toolbox.ui.DomainObjectPropertySheet;
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess; import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
import com.arsdigita.cms.util.GlobalizationUtil; import com.arsdigita.cms.util.GlobalizationUtil;
import com.arsdigita.domain.DomainObject;
import java.text.DateFormat;
/** /**
* Authoring step to edit the simple attributes of the InlineSite content type * Authoring step to edit the simple attributes of the InlineSite content type
@ -51,7 +48,8 @@ public class InlineSitePropertiesStep extends SimpleEditStep {
super(itemModel, parent); super(itemModel, parent);
final BasicPageForm editSheet = new InlineSitePropertyForm(itemModel, this); final BasicPageForm editSheet = new InlineSitePropertyForm(itemModel, this);
add(EDIT_SHEET_NAME, "Edit", add(EDIT_SHEET_NAME,
GlobalizationUtil.globalize("cms.ui.edit"),
new WorkflowLockedComponentAccess(editSheet, itemModel), new WorkflowLockedComponentAccess(editSheet, itemModel),
editSheet.getSaveCancelSection().getCancelButton()); editSheet.getSaveCancelSection().getCancelButton());
setDefaultEditKey(EDIT_SHEET_NAME); setDefaultEditKey(EDIT_SHEET_NAME);

View File

@ -20,13 +20,11 @@ package com.arsdigita.cms.contenttypes.ui;
import com.arsdigita.bebop.Component; import com.arsdigita.bebop.Component;
import com.arsdigita.bebop.PageState;
import com.arsdigita.cms.ContentPage; import com.arsdigita.cms.ContentPage;
import com.arsdigita.cms.ContentSection; import com.arsdigita.cms.ContentSection;
import com.arsdigita.cms.ItemSelectionModel; import com.arsdigita.cms.ItemSelectionModel;
import com.arsdigita.cms.contenttypes.LegalNotice; import com.arsdigita.cms.contenttypes.LegalNotice;
import com.arsdigita.cms.contenttypes.util.LegalNoticeGlobalizationUtil; import com.arsdigita.cms.contenttypes.util.LegalNoticeGlobalizationUtil;
import com.arsdigita.domain.DomainObject;
import com.arsdigita.toolbox.ui.DomainObjectPropertySheet; import com.arsdigita.toolbox.ui.DomainObjectPropertySheet;
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard; import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
import com.arsdigita.cms.ui.authoring.BasicPageForm; import com.arsdigita.cms.ui.authoring.BasicPageForm;
@ -34,8 +32,6 @@ import com.arsdigita.cms.ui.authoring.SimpleEditStep;
import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess; import com.arsdigita.cms.ui.workflow.WorkflowLockedComponentAccess;
import com.arsdigita.cms.util.GlobalizationUtil; import com.arsdigita.cms.util.GlobalizationUtil;
import java.text.DateFormat;
/** /**
* Authoring step to edit the simple attributes of the LegalNotice content type * Authoring step to edit the simple attributes of the LegalNotice content type
* (and its subclasses). The attributes edited are 'name', 'title', 'item date' * (and its subclasses). The attributes edited are 'name', 'title', 'item date'
@ -56,7 +52,7 @@ public class LegalNoticePropertiesStep extends SimpleEditStep {
editSheet = new LegalNoticePropertyForm(itemModel,this); editSheet = new LegalNoticePropertyForm(itemModel,this);
add(EDIT_SHEET_NAME, add(EDIT_SHEET_NAME,
"Edit", GlobalizationUtil.globalize("cms.ui.edit"),
new WorkflowLockedComponentAccess(editSheet, itemModel), new WorkflowLockedComponentAccess(editSheet, itemModel),
editSheet.getSaveCancelSection().getCancelButton()); editSheet.getSaveCancelSection().getCancelButton());

View File

@ -56,7 +56,9 @@ public class MOTDItemPropertiesStep extends SimpleEditStep {
BasicPageForm editSheet; BasicPageForm editSheet;
editSheet = new MOTDItemPropertyForm(itemModel); editSheet = new MOTDItemPropertyForm(itemModel);
add(EDIT_SHEET_NAME, "Edit", editSheet, add(EDIT_SHEET_NAME,
GlobalizationUtil.globalize("cms.ui.edit"),
editSheet,
editSheet.getSaveCancelSection().getCancelButton()); editSheet.getSaveCancelSection().getCancelButton());
setDisplayComponent(getMOTDDomainObjectPropertySheet(itemModel)); setDisplayComponent(getMOTDDomainObjectPropertySheet(itemModel));

View File

@ -59,7 +59,7 @@ public class NewsItemPropertiesStep extends SimpleEditStep {
editSheet = new NewsItemPropertyForm(itemModel, this); editSheet = new NewsItemPropertyForm(itemModel, this);
add(EDIT_SHEET_NAME, add(EDIT_SHEET_NAME,
"Edit", GlobalizationUtil.globalize("cms.ui.edit"),
new WorkflowLockedComponentAccess(editSheet,itemModel), new WorkflowLockedComponentAccess(editSheet,itemModel),
editSheet.getSaveCancelSection().getCancelButton()); editSheet.getSaveCancelSection().getCancelButton());