From a9078d2f99979f76644dceb4ef3788ff7c9e56e8 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 1 Mar 2009 07:30:24 +0000 Subject: #369002 by toddy: Use format_plural() for search keyword length error. --- modules/search/search.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/search/search.module b/modules/search/search.module index 4f13ec030..d3f2bac05 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -952,7 +952,7 @@ function do_search($keywords, $type, $join1 = '', $where1 = '1 = 1', $arguments1 $query = search_parse_query($keywords); if ($query[2] == '') { - form_set_error('keys', t('You must include at least one positive keyword with @count characters or more.', array('@count' => variable_get('minimum_word_size', 3)))); + form_set_error('keys', format_plural(variable_get('minimum_word_size', 3), 'You must include at least one positive keyword with 1 character or more.', 'You must include at least one positive keyword with @count characters or more.')); } if ($query[6]) { if ($query[6] == 'or') { -- cgit v1.2.3