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 6344c2783..8993fcc89 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties @@ -92,3 +92,4 @@ ui.portlet.action.new.doclink=New DocLink ui.intended_audience_cannot_be_null=Intended Audience cannot be null ui.error.sending_document=An error occurred while trying to send document ui.invalid_term=Invalid term +ui.folder.not_empty=Folders must be empty before they can be deleted 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 6344c2783..8993fcc89 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 @@ -92,3 +92,4 @@ ui.portlet.action.new.doclink=New DocLink ui.intended_audience_cannot_be_null=Intended Audience cannot be null ui.error.sending_document=An error occurred while trying to send document ui.invalid_term=Invalid term +ui.folder.not_empty=Folders must be empty before they can be deleted diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/FolderContentsTableForm.java b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/FolderContentsTableForm.java index 92346f1f2..d9b8c1aa6 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/FolderContentsTableForm.java +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/FolderContentsTableForm.java @@ -39,6 +39,7 @@ import com.arsdigita.cms.Folder; import com.arsdigita.cms.docmgr.DocMgr; import com.arsdigita.cms.docmgr.Resource; import com.arsdigita.cms.docmgr.ui.PagingControlContainer; +import com.arsdigita.cms.docmgr.util.GlobalizationUtil; import com.arsdigita.domain.DataObjectNotFoundException; import com.arsdigita.domain.DomainObjectFactory; import com.arsdigita.globalization.GlobalizedMessage; @@ -180,10 +181,8 @@ class FolderContentsTableForm extends Form (Resource) DomainObjectFactory.newInstance(oid); if (resource.isFolder()) { if (! ((Folder) resource).isEmpty()) { - throw new FormProcessException - ("Folders must be empty before they can be deleted. "+ - "Attempted to delete non-empty folder "+ - resource.getTitle()); + throw new FormProcessException(GlobalizationUtil.globalize( + "ui.folder.not_empty")); } } } catch (PersistenceException exc) {