Anpassung und Vervollständigung ResourceBundles sowie Sprachumschaltung abgeschlossen.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2193 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
94d457191b
commit
f43e33d5b6
|
|
@ -1,7 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ctd:content-types xmlns:ctd="http://xmlns.redhat.com/cms/content-types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd">
|
||||
<ctd:content-type label="LegalNotice" description="An legal notice type" objectType="com.arsdigita.cms.contenttypes.LegalNotice" classname="com.arsdigita.cms.contenttypes.LegalNotice">
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
<ctd:content-types xmlns:ctd="http://xmlns.redhat.com/cms/content-types"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.redhat.com/cms/content-types content-types.xsd">
|
||||
|
||||
<ctd:content-type label="LegalNotice"
|
||||
description="An legal notice type"
|
||||
objectType="com.arsdigita.cms.contenttypes.LegalNotice"
|
||||
classname="com.arsdigita.cms.contenttypes.LegalNotice">
|
||||
|
||||
<ctd:authoring-kit createComponent="com.arsdigita.cms.ui.authoring.PageCreate">
|
||||
|
||||
<ctd:authoring-step
|
||||
labelKey="cms.contenttypes.shared.basic_properties.title"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
legal_notice.authoring.basic_properties.description=Edit the title, name, and government UID
|
||||
cms.contenttypes.ui.legal_notice.government_uid=Government UID:
|
||||
|
|
@ -1 +1,2 @@
|
|||
legal_notice.authoring.basic_properties.description=Editieren vonTitel, Name und ID
|
||||
cms.contenttypes.ui.legal_notice.government_uid=Referenz:
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
legal_notice.authoring.basic_properties.description=Edit the title, name, and government UID
|
||||
cms.contenttypes.ui.legal_notice.government_uid=Government UID:
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
legal_notice.authoring.basic_properties.description=Edit the title, name, and government UID
|
||||
cms.contenttypes.ui.legal_notice.government_uid=Identifiant d\u00e9partement:
|
||||
|
|
@ -1 +0,0 @@
|
|||
legal_notice.authoring.basic_properties.description=Edit the title, name, and government UID
|
||||
|
|
@ -25,6 +25,7 @@ import com.arsdigita.cms.ContentPage;
|
|||
import com.arsdigita.cms.ContentSection;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.LegalNotice;
|
||||
import com.arsdigita.cms.contenttypes.util.LegalNoticeGlobalizationUtil;
|
||||
import com.arsdigita.domain.DomainObject;
|
||||
import com.arsdigita.toolbox.ui.DomainObjectPropertySheet;
|
||||
import com.arsdigita.cms.ui.authoring.AuthoringKitWizard;
|
||||
|
|
@ -54,7 +55,9 @@ public class LegalNoticePropertiesStep extends SimpleEditStep {
|
|||
BasicPageForm editSheet;
|
||||
|
||||
editSheet = new LegalNoticePropertyForm(itemModel,this);
|
||||
add(EDIT_SHEET_NAME, "Edit", new WorkflowLockedComponentAccess(editSheet, itemModel),
|
||||
add(EDIT_SHEET_NAME,
|
||||
"Edit",
|
||||
new WorkflowLockedComponentAccess(editSheet, itemModel),
|
||||
editSheet.getSaveCancelSection().getCancelButton());
|
||||
|
||||
setDisplayComponent(getLegalNoticePropertySheet(itemModel));
|
||||
|
|
@ -73,10 +76,15 @@ public class LegalNoticePropertiesStep extends SimpleEditStep {
|
|||
itemModel) {
|
||||
DomainObjectPropertySheet sheet = new DomainObjectPropertySheet(itemModel);
|
||||
|
||||
sheet.add( GlobalizationUtil.globalize("cms.contenttypes.ui.name"), LegalNotice.NAME);
|
||||
sheet.add( GlobalizationUtil.globalize("cms.contenttypes.ui.title"), LegalNotice.TITLE);
|
||||
sheet.add( GlobalizationUtil
|
||||
.globalize("cms.contenttypes.ui.title"),
|
||||
LegalNotice.TITLE);
|
||||
sheet.add( GlobalizationUtil
|
||||
.globalize("cms.contenttypes.ui.name"),
|
||||
LegalNotice.NAME);
|
||||
if (!ContentSection.getConfig().getHideLaunchDate()) {
|
||||
sheet.add(GlobalizationUtil.globalize("cms.contenttypes.ui.launch_date"),
|
||||
sheet.add(GlobalizationUtil
|
||||
.globalize("cms.contenttypes.ui.launch_date"),
|
||||
ContentPage.LAUNCH_DATE,
|
||||
new DomainObjectPropertySheet.AttributeFormatter() {
|
||||
public String format(DomainObject item,
|
||||
|
|
@ -87,12 +95,16 @@ public class LegalNoticePropertiesStep extends SimpleEditStep {
|
|||
return DateFormat.getDateInstance(DateFormat.LONG)
|
||||
.format(page.getLaunchDate());
|
||||
} else {
|
||||
return (String)GlobalizationUtil.globalize("cms.ui.unknown").localize();
|
||||
return (String)GlobalizationUtil
|
||||
.globalize("cms.ui.unknown")
|
||||
.localize();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
sheet.add( GlobalizationUtil.globalize("cms.contenttypes.ui.government_uid"), LegalNotice.GOVERNMENT_UID);
|
||||
sheet.add( LegalNoticeGlobalizationUtil
|
||||
.globalize("cms.contenttypes.ui.legal_notice.government_uid"),
|
||||
LegalNotice.GOVERNMENT_UID);
|
||||
|
||||
return sheet;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,8 +28,9 @@ import com.arsdigita.bebop.event.FormSubmissionListener;
|
|||
import com.arsdigita.bebop.form.TextField;
|
||||
import com.arsdigita.bebop.parameters.ParameterModel;
|
||||
import com.arsdigita.bebop.parameters.StringParameter;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.contenttypes.LegalNotice;
|
||||
import com.arsdigita.cms.contenttypes.util.LegalNoticeGlobalizationUtil;
|
||||
import com.arsdigita.cms.ItemSelectionModel;
|
||||
import com.arsdigita.cms.ui.authoring.BasicPageForm;
|
||||
import com.arsdigita.cms.util.GlobalizationUtil;
|
||||
|
||||
|
|
@ -39,7 +40,9 @@ import com.arsdigita.cms.util.GlobalizationUtil;
|
|||
* LegalNotice subclasses.
|
||||
**/
|
||||
public class LegalNoticePropertyForm extends BasicPageForm
|
||||
implements FormProcessListener, FormInitListener, FormSubmissionListener {
|
||||
implements FormProcessListener,
|
||||
FormInitListener,
|
||||
FormSubmissionListener {
|
||||
|
||||
private LegalNoticePropertiesStep m_step;
|
||||
|
||||
|
|
@ -65,7 +68,8 @@ public class LegalNoticePropertyForm extends BasicPageForm
|
|||
* LegalNotice to work on
|
||||
* @param step The LegalNoticePropertiesStep which controls this form.
|
||||
*/
|
||||
public LegalNoticePropertyForm( ItemSelectionModel itemModel, LegalNoticePropertiesStep step ) {
|
||||
public LegalNoticePropertyForm( ItemSelectionModel itemModel,
|
||||
LegalNoticePropertiesStep step ) {
|
||||
super( ID, itemModel );
|
||||
m_step = step;
|
||||
addSubmissionListener(this);
|
||||
|
|
@ -77,7 +81,8 @@ public class LegalNoticePropertyForm extends BasicPageForm
|
|||
protected void addWidgets() {
|
||||
super.addWidgets();
|
||||
|
||||
add(new Label(GlobalizationUtil.globalize("cms.contenttypes.ui.government_uid")));
|
||||
add(new Label(LegalNoticeGlobalizationUtil
|
||||
.globalize("cms.contenttypes.ui.legal_notice.government_uid")));
|
||||
ParameterModel governmentUIDParam = new StringParameter(GOVERNMENT_UID);
|
||||
TextField governmentUID = new TextField(governmentUIDParam);
|
||||
governmentUID.setSize(30);
|
||||
|
|
|
|||
Loading…
Reference in New Issue