From 918229369ca11c4450e2af4ed61fa48f2f8c0be3 Mon Sep 17 00:00:00 2001 From: tosmers Date: Sun, 15 Feb 2015 17:30:16 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20ccm-docmgr/src/c?= =?UTF-8?q?om/arsdigita/cms/docmgr/ui/FolderContentsTableForm.java=20die?= =?UTF-8?q?=20FormProcessException=20in=20den=20Zeilen=20190=20und=20194?= =?UTF-8?q?=20umgebaut=20und=20den=20key=20ui.error.unexpected=20den=20Pro?= =?UTF-8?q?perties=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@3197 8810af33-2d31-482b-a856-94f89814c4df --- .../src/com/arsdigita/cms/docmgr/ui/DMResources.properties | 1 + .../com/arsdigita/cms/docmgr/ui/DMResources_en.properties | 1 + .../arsdigita/cms/docmgr/ui/FolderContentsTableForm.java | 6 ++++-- 3 files changed, 6 insertions(+), 2 deletions(-) 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 8993fcc89..c2ffa8928 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties @@ -93,3 +93,4 @@ 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 +ui.error.unexpected=An unexpected error occurred 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 8993fcc89..c2ffa8928 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 @@ -93,3 +93,4 @@ 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 +ui.error.unexpected=An unexpected error occurred 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 d9b8c1aa6..d30138600 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/FolderContentsTableForm.java +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/FolderContentsTableForm.java @@ -187,10 +187,12 @@ class FolderContentsTableForm extends Form } } catch (PersistenceException exc) { exc.printStackTrace(); - throw new FormProcessException("An unexpected error occurred"); + throw new FormProcessException(GlobalizationUtil.globalize( + "ui.error.unexpected")); } catch (DataObjectNotFoundException exc) { exc.printStackTrace(); - throw new FormProcessException("An unexpected error occurred"); + throw new FormProcessException(GlobalizationUtil.globalize( + "ui.error.unexpected")); } } }