From 9541039b093f7f2cd88d51442eeb8701e624012c Mon Sep 17 00:00:00 2001 From: tosmers Date: Sun, 15 Feb 2015 17:03:02 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20ccm-docmgr/src/c?= =?UTF-8?q?om/arsdigita/cms/docmgr/ui/BrowseFileInfoPropertiesPane.java=20?= =?UTF-8?q?die=20FormProcessException=20in=20der=20Zeile=20530=20umgebaut?= =?UTF-8?q?=20und=20den=20key=20intended=5Faudience=5Fcannot=5Fbe=5Fnull?= =?UTF-8?q?=20den=20Properties=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.libreccm.org/ccm/trunk@3191 8810af33-2d31-482b-a856-94f89814c4df --- .../arsdigita/cms/docmgr/ui/BrowseFileInfoPropertiesPane.java | 4 +++- .../src/com/arsdigita/cms/docmgr/ui/DMResources.properties | 1 + .../src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/BrowseFileInfoPropertiesPane.java b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/BrowseFileInfoPropertiesPane.java index 729651b89..936a9bb83 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/BrowseFileInfoPropertiesPane.java +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/BrowseFileInfoPropertiesPane.java @@ -66,6 +66,7 @@ import com.arsdigita.cms.FileAsset; // import com.arsdigita.cms.docmgr.DocFolder; import com.arsdigita.cms.docmgr.DocMgr; import com.arsdigita.cms.docmgr.Document; +import com.arsdigita.cms.docmgr.util.GlobalizationUtil; import com.arsdigita.dispatcher.DispatcherHelper; import com.arsdigita.dispatcher.MultipartHttpServletRequest; import com.arsdigita.domain.DataObjectNotFoundException; @@ -526,7 +527,8 @@ public class BrowseFileInfoPropertiesPane extends ModalContainer implements DMCo private void setDocumentPermission(FormData data, Document doc) throws FormProcessException { final String intendedAudience = (String) data.get(FILE_EDIT_AUDIENCE); if (intendedAudience == null) { - throw new FormProcessException("Intended Audience cannot be null"); + throw new FormProcessException(GlobalizationUtil.globalize( + "ui.intended_audience_cannot_be_null")); } final PermissionDescriptor publicDescriptor = new PermissionDescriptor( PrivilegeDescriptor.READ, doc.getOID(), new OID( diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties index 8f2f09e13..0c533c21c 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties @@ -89,3 +89,4 @@ ui.fileinfo.upload.initialversion.description=Initial version ui.portlet.action.newresource=New Document ui.folderTableModelBuilder.folderItemCounts=subfolders:{0};subitems:{1} ui.portlet.action.new.doclink=New DocLink +ui.intended_audience_cannot_be_null=Intended Audience cannot be null diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties index 8f2f09e13..0c533c21c 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties @@ -89,3 +89,4 @@ ui.fileinfo.upload.initialversion.description=Initial version ui.portlet.action.newresource=New Document ui.folderTableModelBuilder.folderItemCounts=subfolders:{0};subitems:{1} ui.portlet.action.new.doclink=New DocLink +ui.intended_audience_cannot_be_null=Intended Audience cannot be null