mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-07 16:15:22 +02:00
[ticket/12096] Use plurals for MAX_NUM_SEARCH_KEYWORDS_REFINE.
PHPBB3-12096
This commit is contained in:
parent
670a9a1aea
commit
b3a25c52e5
@ -60,7 +60,10 @@ $lang = array_merge($lang, array(
|
|||||||
'LOGIN_EXPLAIN_UNREADSEARCH'=> 'The board requires you to be registered and logged in to view your unread posts.',
|
'LOGIN_EXPLAIN_UNREADSEARCH'=> 'The board requires you to be registered and logged in to view your unread posts.',
|
||||||
'LOGIN_EXPLAIN_NEWPOSTS' => 'The board requires you to be registered and logged in to view new posts since your last visit.',
|
'LOGIN_EXPLAIN_NEWPOSTS' => 'The board requires you to be registered and logged in to view new posts since your last visit.',
|
||||||
|
|
||||||
'MAX_NUM_SEARCH_KEYWORDS_REFINE' => 'You specified too many words to search for. Please do not enter more than %1$d words.',
|
'MAX_NUM_SEARCH_KEYWORDS_REFINE' => array(
|
||||||
|
1 => 'You specified too many words to search for. Please do not enter more than %1$d word.',
|
||||||
|
2 => 'You specified too many words to search for. Please do not enter more than %1$d words.',
|
||||||
|
),
|
||||||
|
|
||||||
'NO_KEYWORDS' => 'You must specify at least one word to search for. Each word must consist of at least %s and must not contain more than %s excluding wildcards.',
|
'NO_KEYWORDS' => 'You must specify at least one word to search for. Each word must consist of at least %s and must not contain more than %s excluding wildcards.',
|
||||||
'NO_RECENT_SEARCHES' => 'No searches have been carried out recently.',
|
'NO_RECENT_SEARCHES' => 'No searches have been carried out recently.',
|
||||||
|
@ -216,7 +216,7 @@ class fulltext_mysql extends \phpbb\search\base
|
|||||||
// We limit the number of allowed keywords to minimize load on the database
|
// We limit the number of allowed keywords to minimize load on the database
|
||||||
if ($this->config['max_num_search_keywords'] && sizeof($this->split_words) > $this->config['max_num_search_keywords'])
|
if ($this->config['max_num_search_keywords'] && sizeof($this->split_words) > $this->config['max_num_search_keywords'])
|
||||||
{
|
{
|
||||||
trigger_error($this->user->lang('MAX_NUM_SEARCH_KEYWORDS_REFINE', $this->config['max_num_search_keywords'], sizeof($this->split_words)));
|
trigger_error($this->user->lang('MAX_NUM_SEARCH_KEYWORDS_REFINE', (int) $this->config['max_num_search_keywords'], sizeof($this->split_words)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// to allow phrase search, we need to concatenate quoted words
|
// to allow phrase search, we need to concatenate quoted words
|
||||||
|
@ -277,7 +277,7 @@ class fulltext_native extends \phpbb\search\base
|
|||||||
// We limit the number of allowed keywords to minimize load on the database
|
// We limit the number of allowed keywords to minimize load on the database
|
||||||
if ($this->config['max_num_search_keywords'] && $num_keywords > $this->config['max_num_search_keywords'])
|
if ($this->config['max_num_search_keywords'] && $num_keywords > $this->config['max_num_search_keywords'])
|
||||||
{
|
{
|
||||||
trigger_error($this->user->lang('MAX_NUM_SEARCH_KEYWORDS_REFINE', $this->config['max_num_search_keywords'], $num_keywords));
|
trigger_error($this->user->lang('MAX_NUM_SEARCH_KEYWORDS_REFINE', (int) $this->config['max_num_search_keywords'], $num_keywords));
|
||||||
}
|
}
|
||||||
|
|
||||||
// $keywords input format: each word separated by a space, words in a bracket are not separated
|
// $keywords input format: each word separated by a space, words in a bracket are not separated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user