From 9fbbf05ee73028c81b4cd46edd205365a025efb5 Mon Sep 17 00:00:00 2001 From: tosmers Date: Sun, 15 Feb 2015 17:42:39 +0000 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20In=20der=20Klasse=20ccm-docmgr/src/c?= =?UTF-8?q?om/arsdigita/cms/docmgr/ui/SearchPane.java=20die=20FormProcessE?= =?UTF-8?q?xception=20in=20der=20Zeile=20223=20umgebaut=20und=20den=20key?= =?UTF-8?q?=20ui.unspecified=5Fsearch=5Fparameters=20den=20Properties=20hi?= =?UTF-8?q?nzugef=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@3200 8810af33-2d31-482b-a856-94f89814c4df --- .../src/com/arsdigita/cms/docmgr/ui/DMResources.properties | 1 + .../src/com/arsdigita/cms/docmgr/ui/DMResources_en.properties | 1 + ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/SearchPane.java | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) 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 9f4afc955..5405e9cfb 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/DMResources.properties @@ -95,3 +95,4 @@ 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 +ui.unspecified_search_parameters=At least one search parameter must be specified 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 9f4afc955..5405e9cfb 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 @@ -95,3 +95,4 @@ 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 +ui.unspecified_search_parameters=At least one search parameter must be specified diff --git a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/SearchPane.java b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/SearchPane.java index bf3bb941a..208a1139b 100755 --- a/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/SearchPane.java +++ b/ccm-docmgr/src/com/arsdigita/cms/docmgr/ui/SearchPane.java @@ -25,6 +25,7 @@ import com.arsdigita.cms.docmgr.Document; import com.arsdigita.cms.docmgr.search.LuceneSearcher; import com.arsdigita.cms.docmgr.search.SearchResults; import com.arsdigita.cms.docmgr.search.SearchUtils; +import com.arsdigita.cms.docmgr.util.GlobalizationUtil; import com.arsdigita.kernel.Kernel; import com.arsdigita.kernel.User; import com.arsdigita.kernel.permissions.PermissionDescriptor; @@ -219,7 +220,8 @@ class SearchPane extends SimpleContainer implements DMConstants { && workspaceID == null) { m_emptyLabel.setVisible(state, true); m_validated.set(state, new Boolean(false)); - throw new FormProcessException("At least one search parameter must be specified"); + throw new FormProcessException(GlobalizationUtil.globalize( + "ui.unspecified_search_parameters")); } m_validated.set(state, new Boolean(true)); }