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 255d7076c..9f4afc955 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties @@ -94,3 +94,4 @@ ui.error.sending_document=An error occurred while trying to send document ui.invalid_term=Invalid term ui.folder.deletion_while_not_empty=Folders must be empty before they can be deleted ui.error.unexpected=An unexpected error occurred +ui.authoring.file_option_null=File option was 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 255d7076c..9f4afc955 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 @@ -94,3 +94,4 @@ ui.error.sending_document=An error occurred while trying to send document ui.invalid_term=Invalid term ui.folder.deletion_while_not_empty=Folders must be empty before they can be deleted ui.error.unexpected=An unexpected error occurred +ui.authoring.file_option_null=File option was null diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java index d814edc10..c060ebb96 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/authoring/DocumentPropertyForm.java @@ -23,6 +23,7 @@ import com.arsdigita.bebop.parameters.StringParameter; import com.arsdigita.cms.FileAsset; import com.arsdigita.cms.ItemSelectionModel; import com.arsdigita.cms.docmgr.Document; +import com.arsdigita.cms.docmgr.util.GlobalizationUtil; import com.arsdigita.cms.ui.authoring.BasicPageForm; import com.arsdigita.dispatcher.MultipartHttpServletRequest; @@ -196,7 +197,8 @@ class FileFormSection extends FormSection implements FormValidationListener { throw new FormProcessException(ex); } } else { - throw new FormProcessException("File Option was null"); + throw new FormProcessException(GlobalizationUtil.globalize( + "ui.authoring.file_option_null")); } } else if (fileOption != null && fileOption.equals(DELETE_OPTION)) { //