Fixed various globalization issues (parts of ticket #1994).
git-svn-id: https://svn.libreccm.org/ccm/trunk@2538 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
6cf2047f76
commit
5ea3d3a733
|
|
@ -170,3 +170,5 @@ cms.contenttypes.ui.contact.contactEntry.description=Descriptions
|
||||||
cms.ui.select_one=Please choose
|
cms.ui.select_one=Please choose
|
||||||
cms.contenttypes.ui.genericorgaunit.persons.status=Status
|
cms.contenttypes.ui.genericorgaunit.persons.status=Status
|
||||||
cms.ui.edit_assoc=Edit
|
cms.ui.edit_assoc=Edit
|
||||||
|
cms.contenttypes.ui.person.contact.type=Contact Type
|
||||||
|
cms.contenttypes.ui.person.contact.title=Title
|
||||||
|
|
|
||||||
|
|
@ -180,3 +180,5 @@ cms.contenttypes.ui.contact.contactEntry.description=Beschreibung
|
||||||
cms.ui.select_one=Bitte ausw\u00e4hlen
|
cms.ui.select_one=Bitte ausw\u00e4hlen
|
||||||
cms.contenttypes.ui.genericorgaunit.persons.status=Status
|
cms.contenttypes.ui.genericorgaunit.persons.status=Status
|
||||||
cms.ui.edit_assoc=Bearbeiten
|
cms.ui.edit_assoc=Bearbeiten
|
||||||
|
cms.contenttypes.ui.person.contact.type=Art des Kontaktes
|
||||||
|
cms.contenttypes.ui.person.contact.title=Titel
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,22 @@
|
||||||
/*
|
/*
|
||||||
* GenericContactEditPersonPropertyForm.java
|
* Copyright (c) 2012 Soeren Bernstein
|
||||||
*
|
*
|
||||||
* Created on 8. Juli 2009, 10:27
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public License
|
||||||
|
* as published by the Free Software Foundation; either version 2.1 of
|
||||||
|
* the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* To change this template, choose Tools | Template Manager
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.cms.contenttypes.ui;
|
package com.arsdigita.cms.contenttypes.ui;
|
||||||
|
|
||||||
import com.arsdigita.bebop.FormData;
|
import com.arsdigita.bebop.FormData;
|
||||||
|
|
@ -82,6 +93,9 @@ public class GenericContactEditPersonPropertyForm extends BasicPageForm
|
||||||
addSubmissionListener(this);
|
addSubmissionListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void addWidgets() {
|
public void addWidgets() {
|
||||||
add(new Label(ContenttypesGlobalizationUtil
|
add(new Label(ContenttypesGlobalizationUtil
|
||||||
|
|
|
||||||
|
|
@ -70,18 +70,21 @@ public class GenericContactEntriesTable extends Table implements TableActionList
|
||||||
// define columns
|
// define columns
|
||||||
tab_model.add(new TableColumn(
|
tab_model.add(new TableColumn(
|
||||||
0,
|
0,
|
||||||
new Label(ContenttypesGlobalizationUtil.globalize("cms.contenttypes.ui.contact.contactEntry.key")),
|
new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
|
"cms.contenttypes.ui.contact.contactEntry.key")),
|
||||||
TABLE_COL_EDIT));
|
TABLE_COL_EDIT));
|
||||||
tab_model.add(new TableColumn(
|
tab_model.add(new TableColumn(
|
||||||
1,
|
1,
|
||||||
new Label(ContenttypesGlobalizationUtil.globalize("cms.contenttypes.ui.contact.contactEntry.value"))));
|
new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
|
"cms.contenttypes.ui.contact.contactEntry.value"))));
|
||||||
tab_model.add(new TableColumn(
|
tab_model.add(new TableColumn(
|
||||||
2,
|
2,
|
||||||
new Label(ContenttypesGlobalizationUtil.
|
new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
globalize("cms.contenttypes.ui.contact.contactEntry.description"))));
|
"cms.contenttypes.ui.contact.contactEntry.description"))));
|
||||||
tab_model.add(new TableColumn(
|
tab_model.add(new TableColumn(
|
||||||
3,
|
3,
|
||||||
new Label(ContenttypesGlobalizationUtil.globalize("cms.contenttypes.ui.contact.contactEntry.action")),
|
new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
|
"cms.contenttypes.ui.contact.contactEntry.action")),
|
||||||
TABLE_COL_DEL));
|
TABLE_COL_DEL));
|
||||||
|
|
||||||
setModelBuilder(new ContactTableModelBuilder(itemModel));
|
setModelBuilder(new ContactTableModelBuilder(itemModel));
|
||||||
|
|
@ -184,7 +187,7 @@ public class GenericContactEntriesTable extends Table implements TableActionList
|
||||||
0, MAX_DESC_LENGTH)
|
0, MAX_DESC_LENGTH)
|
||||||
: m_contactEntry.getDescription();
|
: m_contactEntry.getDescription();
|
||||||
case 3:
|
case 3:
|
||||||
return GlobalizationUtil.globalize("cms.ui.delete").localize();
|
return new Label(GlobalizationUtil.globalize("cms.ui.delete"));
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
@ -246,7 +249,8 @@ public class GenericContactEntriesTable extends Table implements TableActionList
|
||||||
if (canDelete) {
|
if (canDelete) {
|
||||||
ControlLink link = new ControlLink(value.toString());
|
ControlLink link = new ControlLink(value.toString());
|
||||||
link.setConfirmation(
|
link.setConfirmation(
|
||||||
ContenttypesGlobalizationUtil.globalize("cms.contenttypes.ui.contact.confirm_delete"));
|
ContenttypesGlobalizationUtil.globalize(
|
||||||
|
"cms.contenttypes.ui.contact.confirm_delete"));
|
||||||
return link;
|
return link;
|
||||||
} else {
|
} else {
|
||||||
return new Label(value.toString());
|
return new Label(value.toString());
|
||||||
|
|
|
||||||
|
|
@ -60,29 +60,25 @@ public class GenericContactTypeTable extends Table implements TableActionListene
|
||||||
this.m_itemModel = itemModel;
|
this.m_itemModel = itemModel;
|
||||||
|
|
||||||
// if table is empty:
|
// if table is empty:
|
||||||
setEmptyView(new Label(ContenttypesGlobalizationUtil.globalize("cms.contenttypes.ui.contacttypes.none")));
|
setEmptyView(new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
|
"cms.contenttypes.ui.contacttypes.none")));
|
||||||
TableColumnModel tab_model = getColumnModel();
|
TableColumnModel tab_model = getColumnModel();
|
||||||
|
|
||||||
// define columns
|
// define columns
|
||||||
tab_model.add(new TableColumn(
|
tab_model.add(new TableColumn(
|
||||||
0,
|
0,
|
||||||
ContenttypesGlobalizationUtil
|
ContenttypesGlobalizationUtil
|
||||||
.globalize("cms.contenttypes.ui.contacttypes.key")
|
.globalize("cms.contenttypes.ui.contacttypes.key"),
|
||||||
// .localize()
|
|
||||||
,
|
|
||||||
TABLE_COL_EDIT));
|
TABLE_COL_EDIT));
|
||||||
tab_model.add(new TableColumn(
|
tab_model.add(new TableColumn(
|
||||||
1,
|
1,
|
||||||
ContenttypesGlobalizationUtil
|
ContenttypesGlobalizationUtil
|
||||||
.globalize("cms.contenttypes.ui.contacttypes.title")
|
.globalize("cms.contenttypes.ui.contacttypes.title")
|
||||||
//.localize()
|
|
||||||
));
|
));
|
||||||
tab_model.add(new TableColumn(
|
tab_model.add(new TableColumn(
|
||||||
2,
|
2,
|
||||||
ContenttypesGlobalizationUtil
|
ContenttypesGlobalizationUtil
|
||||||
.globalize("cms.contenttypes.ui.contacttypes.action")
|
.globalize("cms.contenttypes.ui.contacttypes.action"),
|
||||||
.localize()
|
|
||||||
,
|
|
||||||
TABLE_COL_DEL));
|
TABLE_COL_DEL));
|
||||||
|
|
||||||
setModelBuilder(new GenericContactTypeTableModelBuilder(itemModel));
|
setModelBuilder(new GenericContactTypeTableModelBuilder(itemModel));
|
||||||
|
|
@ -109,7 +105,8 @@ public class GenericContactTypeTable extends Table implements TableActionListene
|
||||||
|
|
||||||
public TableModel makeModel(Table table, PageState state) {
|
public TableModel makeModel(Table table, PageState state) {
|
||||||
table.getRowSelectionModel().clearSelection(state);
|
table.getRowSelectionModel().clearSelection(state);
|
||||||
RelationAttribute contacttype = (RelationAttribute) m_itemModel.getSelectedObject(state);
|
RelationAttribute contacttype = (RelationAttribute) m_itemModel
|
||||||
|
.getSelectedObject(state);
|
||||||
return new GenericContactTypeTableModel(table, state, contacttype);
|
return new GenericContactTypeTableModel(table, state, contacttype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -169,9 +166,8 @@ public class GenericContactTypeTable extends Table implements TableActionListene
|
||||||
case 1:
|
case 1:
|
||||||
return m_contacttypeCollection.getName();
|
return m_contacttypeCollection.getName();
|
||||||
case 2:
|
case 2:
|
||||||
return GlobalizationUtil.globalize("cms.ui.delete")
|
return new Label(GlobalizationUtil.globalize("cms.ui.delete")
|
||||||
//.localize()
|
);
|
||||||
;
|
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,22 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2011 Jens Pelzetter
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public License
|
||||||
|
* as published by the Free Software Foundation; either version 2.1 of
|
||||||
|
* the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
package com.arsdigita.cms.contenttypes.ui;
|
package com.arsdigita.cms.contenttypes.ui;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -222,10 +222,9 @@ public class GenericOrganizationalUnitContactTable extends Table implements
|
||||||
case 1:
|
case 1:
|
||||||
return m_contact.getTitle();
|
return m_contact.getTitle();
|
||||||
case 2:
|
case 2:
|
||||||
return GlobalizationUtil.globalize("cms.ui.edit_assoc").
|
return new Label(GlobalizationUtil.globalize("cms.ui.edit_assoc"));
|
||||||
localize();
|
|
||||||
case 3:
|
case 3:
|
||||||
return GlobalizationUtil.globalize("cms.ui.delete").localize();
|
return new Label(GlobalizationUtil.globalize("cms.ui.delete"));
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -181,8 +181,8 @@ public class GenericOrganizationalUnitPersonsTable extends Table implements
|
||||||
role.close();
|
role.close();
|
||||||
return roleName;
|
return roleName;
|
||||||
} else {
|
} else {
|
||||||
return ContenttypesGlobalizationUtil.globalize(
|
return new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
"cms.ui.unknownRole").localize();
|
"cms.ui.unknownRole"));
|
||||||
}
|
}
|
||||||
case 2:
|
case 2:
|
||||||
RelationAttributeCollection status = new RelationAttributeCollection(
|
RelationAttributeCollection status = new RelationAttributeCollection(
|
||||||
|
|
@ -194,15 +194,15 @@ public class GenericOrganizationalUnitPersonsTable extends Table implements
|
||||||
status.close();
|
status.close();
|
||||||
return statusName;
|
return statusName;
|
||||||
} else {
|
} else {
|
||||||
return ContenttypesGlobalizationUtil.globalize(
|
return new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
"cms.ui.unknownStatus").localize();
|
"cms.ui.unknownStatus"));
|
||||||
}
|
}
|
||||||
case 3:
|
case 3:
|
||||||
return ContenttypesGlobalizationUtil.globalize(
|
return new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
"cms.ui.edit_assoc").localize();
|
"cms.ui.edit_assoc"));
|
||||||
case 4:
|
case 4:
|
||||||
return ContenttypesGlobalizationUtil.globalize(
|
return new Label(ContenttypesGlobalizationUtil.globalize(
|
||||||
"cms.ui.delete").localize();
|
"cms.ui.delete"));
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,6 @@ import com.arsdigita.cms.contenttypes.GenericPersonContactCollection;
|
||||||
import com.arsdigita.cms.contenttypes.GenericPerson;
|
import com.arsdigita.cms.contenttypes.GenericPerson;
|
||||||
import com.arsdigita.cms.contenttypes.util.ContenttypesGlobalizationUtil;
|
import com.arsdigita.cms.contenttypes.util.ContenttypesGlobalizationUtil;
|
||||||
import com.arsdigita.cms.dispatcher.ItemResolver;
|
import com.arsdigita.cms.dispatcher.ItemResolver;
|
||||||
// import com.arsdigita.cms.dispatcher.Utilities;
|
|
||||||
import com.arsdigita.cms.util.GlobalizationUtil;
|
import com.arsdigita.cms.util.GlobalizationUtil;
|
||||||
import com.arsdigita.domain.DataObjectNotFoundException;
|
import com.arsdigita.domain.DataObjectNotFoundException;
|
||||||
import com.arsdigita.globalization.GlobalizationHelper;
|
import com.arsdigita.globalization.GlobalizationHelper;
|
||||||
|
|
@ -227,7 +226,7 @@ public class GenericPersonContactTable extends Table implements
|
||||||
case 1:
|
case 1:
|
||||||
return m_contact.getTitle();
|
return m_contact.getTitle();
|
||||||
case 2:
|
case 2:
|
||||||
return GlobalizationUtil.globalize("cms.ui.delete");
|
return new Label(GlobalizationUtil.globalize("cms.ui.delete"));
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue