修訂 | 0181bd0e724e248704f890cc4134e77008a13908 (tree) |
---|---|
時間 | 2017-10-19 01:05:07 |
作者 | umorigu <umorigu@gmai...> |
Commiter | umorigu |
BugTrack/2435 Improve search result messages
@@ -44,9 +44,9 @@ $_msg_notfound = 'The page was not found.'; | ||
44 | 44 | $_msg_addline = 'The added line is <span class="diff_added">THIS COLOR</span>.'; |
45 | 45 | $_msg_delline = 'The deleted line is <span class="diff_removed">THIS COLOR</span>.'; |
46 | 46 | $_msg_goto = 'Go to $1.'; |
47 | -$_msg_andresult = 'In the page <strong> $2</strong>, <strong> $3</strong> pages that contain all the terms $1 were found.'; | |
48 | -$_msg_orresult = 'In the page <strong> $2</strong>, <strong> $3</strong> pages that contain at least one of the terms $1 were found.'; | |
49 | -$_msg_notfoundresult = 'No page which contains $1 has been found.'; | |
47 | +$_msg_andresult = '$1 was found on <strong>$2</strong> pages out of <strong>$3</strong> pages.'; | |
48 | +$_msg_orresult = 'At least one of the terms $1 was found on <strong>$2</strong> pages out of <strong>$3</strong> pages.'; | |
49 | +$_msg_notfoundresult = 'There are no pages containing $1 in <strong>$3</strong> pages.'; | |
50 | 50 | $_msg_prev_results = '<< Previous $1 pages'; |
51 | 51 | $_msg_more_results = 'Next $1 pages >>'; |
52 | 52 | $_msg_symbol = 'Symbols'; |
@@ -46,9 +46,9 @@ $_msg_notfound = '指定されたページは見つかりませんでし | ||
46 | 46 | $_msg_addline = '追加された行は<span class="diff_added">この色</span>です。'; |
47 | 47 | $_msg_delline = '削除された行は<span class="diff_removed">この色</span>です。'; |
48 | 48 | $_msg_goto = '$1 へ行く。'; |
49 | -$_msg_andresult = '$1 のすべてを含むページは <strong>$3</strong> ページ中、 <strong>$2</strong> ページ見つかりました。'; | |
50 | -$_msg_orresult = '$1 のいずれかを含むページは <strong>$3</strong> ページ中、 <strong>$2</strong> ページ見つかりました。'; | |
51 | -$_msg_notfoundresult = '$1 を含むページは見つかりませんでした。'; | |
49 | +$_msg_andresult = '$1 を含むページは <strong>$3</strong> ページ中、<strong>$2</strong> ページ見つかりました。'; | |
50 | +$_msg_orresult = '$1 のいずれかを含むページは <strong>$3</strong> ページ中、<strong>$2</strong> ページ見つかりました。'; | |
51 | +$_msg_notfoundresult = '<strong>$3</strong> ページ中、$1 を含むページは見つかりませんでした。'; | |
52 | 52 | $_msg_prev_results = '<< 前の $1 ページ'; |
53 | 53 | $_msg_more_results = '次の $1 ページ >>'; |
54 | 54 | $_msg_symbol = '記号'; |
@@ -359,7 +359,7 @@ function do_search($word, $type = 'AND', $non_format = FALSE, $base = '') | ||
359 | 359 | $r_word = rawurlencode($word); |
360 | 360 | $s_word = htmlsc($word); |
361 | 361 | if (empty($pages)) |
362 | - return str_replace('$1', $s_word, $_msg_notfoundresult); | |
362 | + return str_replace('$1', $s_word, str_replace('$3', $count, $_msg_notfoundresult)); | |
363 | 363 | |
364 | 364 | ksort($pages, SORT_STRING); |
365 | 365 |
@@ -96,7 +96,7 @@ function plugin_search2_do_search($query_text, $base, $start_index, | ||
96 | 96 | $search_start_time, $modified_since) |
97 | 97 | { |
98 | 98 | global $whatsnew, $non_list, $search_non_list; |
99 | - global $_msg_andresult, $_msg_orresult, $_msg_notfoundresult; | |
99 | + global $_msg_andresult, $_msg_orresult; | |
100 | 100 | global $search_auth, $auth_user; |
101 | 101 | |
102 | 102 | $result_record_limit = $start_index === 0 ? |