Labels/Texts on ImageSelectPage (which is used for example when inserting an image using the RichText editor) are now localised.

git-svn-id: https://svn.libreccm.org/ccm/trunk@2642 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-05-22 15:29:28 +00:00
parent 848125cbb5
commit 445cdef0dc
6 changed files with 16 additions and 5 deletions

View File

@ -1071,3 +1071,6 @@ cms.ui.authoring.error_conflicts_with_this_url=There are conflicts with this URL
cms.ui.search.help=To search for content items, please enter at least 3 letters into the search field. You can narrow the result by using additional parameters. cms.ui.search.help=To search for content items, please enter at least 3 letters into the search field. You can narrow the result by using additional parameters.
cms.ui.search.no_results=Sorry. Not content items found which match your search. cms.ui.search.no_results=Sorry. Not content items found which match your search.
cms.ui.change_password=Change password cms.ui.change_password=Change password
cms.ui.image_select.page_title=Select or upload image
cms.ui.image_library=Image library
cms.ui.image_upload=Upload image

View File

@ -1065,3 +1065,6 @@ cms.ui.authoring.error_conflicts_with_this_url=Es gibt Konflikte mit dieser URL.
cms.ui.search.help=Geben sie mindestens drei Buchstaben ein, um nach Content Items zu suchen. Sie k\u00f6nnen das Ergebnis mit weiteren Parametern einschr\u00e4nken. cms.ui.search.help=Geben sie mindestens drei Buchstaben ein, um nach Content Items zu suchen. Sie k\u00f6nnen das Ergebnis mit weiteren Parametern einschr\u00e4nken.
cms.ui.search.no_results=Es wurden keine Content Items gefunden, die Ihren Suchparametern entsprechen cms.ui.search.no_results=Es wurden keine Content Items gefunden, die Ihren Suchparametern entsprechen
cms.ui.change_password=Passwort \u00e4ndern cms.ui.change_password=Passwort \u00e4ndern
cms.ui.image_select.page_title=Bild ausw\u00e4hlen oder hochladen
cms.ui.image_library=Bildersammlung
cms.ui.image_upload=Bild hochladen

View File

@ -119,3 +119,6 @@ cms.ui.authoring.error_conflicts_with_this_url=There are conflicts with this URL
cms.ui.search.help= cms.ui.search.help=
cms.ui.search.no_results= cms.ui.search.no_results=
cms.ui.change_password= cms.ui.change_password=
cms.ui.image_select.page_title=
cms.ui.image_library=
cms.ui.image_upload=

View File

@ -593,3 +593,6 @@ cms.ui.authoring.error_conflicts_with_this_url=There are conflicts with this URL
cms.ui.search.help= cms.ui.search.help=
cms.ui.search.no_results= cms.ui.search.no_results=
cms.ui.change_password= cms.ui.change_password=
cms.ui.image_select.page_title=
cms.ui.image_library=
cms.ui.image_upload=

View File

@ -5,6 +5,7 @@
package com.arsdigita.cms.ui; package com.arsdigita.cms.ui;
import com.arsdigita.bebop.Component; import com.arsdigita.bebop.Component;
import com.arsdigita.bebop.Label;
import com.arsdigita.bebop.MapComponentSelectionModel; import com.arsdigita.bebop.MapComponentSelectionModel;
import com.arsdigita.bebop.PageState; import com.arsdigita.bebop.PageState;
import com.arsdigita.bebop.ParameterSingleSelectionModel; import com.arsdigita.bebop.ParameterSingleSelectionModel;
@ -46,9 +47,7 @@ public class ImageSelectPage extends CMSPage {
public static final String RESULT = "result"; public static final String RESULT = "result";
public ImageSelectPage() { public ImageSelectPage() {
super(GlobalizationUtil.globalize( super(new Label(GlobalizationUtil.globalize("cms.ui.image_select.page_title")),
"cms.ui.image_select.page_title")
.localize().toString(),
new SimpleContainer()); new SimpleContainer());
setClassAttr("cms-admin"); setClassAttr("cms-admin");

View File

@ -52,8 +52,6 @@ public class SciPublicationsPersonsPersonForm extends BasicItemForm {
private final static String ITEM_SEARCH = "publicationRelatedPersons"; private final static String ITEM_SEARCH = "publicationRelatedPersons";
private final static String RELATION = "relation"; private final static String RELATION = "relation";
private final ItemSelectionModel itemModel; private final ItemSelectionModel itemModel;
private final GlobalisationUtil globalisationUtil
= new SciPublicationsPersonsGlobalisationUtil();
public SciPublicationsPersonsPersonForm(final ItemSelectionModel itemModel) { public SciPublicationsPersonsPersonForm(final ItemSelectionModel itemModel) {
@ -65,6 +63,7 @@ public class SciPublicationsPersonsPersonForm extends BasicItemForm {
@Override @Override
public void addWidgets() { public void addWidgets() {
final GlobalisationUtil globalisationUtil = new SciPublicationsPersonsGlobalisationUtil();
add(new Label(globalisationUtil.globalise( add(new Label(globalisationUtil.globalise(
"com.arsdigita.cms.contentassets.publicationspersons.select_person"))); "com.arsdigita.cms.contentassets.publicationspersons.select_person")));
itemSearch = new ItemSearchWidget( itemSearch = new ItemSearchWidget(
@ -117,6 +116,7 @@ public class SciPublicationsPersonsPersonForm extends BasicItemForm {
final FormData data = event.getFormData(); final FormData data = event.getFormData();
final GlobalisationUtil globalisationUtil = new SciPublicationsPersonsGlobalisationUtil();
if (data.get(ITEM_SEARCH) == null) { if (data.get(ITEM_SEARCH) == null) {
data.addError(globalisationUtil.globalise( data.addError(globalisationUtil.globalise(
"com.arsdigita.cms.contentasset.publications_persons.none_selected")); "com.arsdigita.cms.contentasset.publications_persons.none_selected"));