• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂0181bd0e724e248704f890cc4134e77008a13908 (tree)
時間2017-10-19 01:05:07
作者umorigu <umorigu@gmai...>
Commiterumorigu

Log Message

BugTrack/2435 Improve search result messages

Change Summary

差異

--- a/en.lng.php
+++ b/en.lng.php
@@ -44,9 +44,9 @@ $_msg_notfound = 'The page was not found.';
4444 $_msg_addline = 'The added line is <span class="diff_added">THIS COLOR</span>.';
4545 $_msg_delline = 'The deleted line is <span class="diff_removed">THIS COLOR</span>.';
4646 $_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.';
5050 $_msg_prev_results = '&lt;&lt; Previous $1 pages';
5151 $_msg_more_results = 'Next $1 pages &gt;&gt;';
5252 $_msg_symbol = 'Symbols';
--- a/ja.lng.php
+++ b/ja.lng.php
@@ -46,9 +46,9 @@ $_msg_notfound = '指定されたページは見つかりませんでし
4646 $_msg_addline = '追加された行は<span class="diff_added">この色</span>です。';
4747 $_msg_delline = '削除された行は<span class="diff_removed">この色</span>です。';
4848 $_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 を含むページは見つかりませんでした。';
5252 $_msg_prev_results = '&lt;&lt; 前の $1 ページ';
5353 $_msg_more_results = '次の $1 ページ &gt;&gt;';
5454 $_msg_symbol = '記号';
--- a/lib/func.php
+++ b/lib/func.php
@@ -359,7 +359,7 @@ function do_search($word, $type = 'AND', $non_format = FALSE, $base = '')
359359 $r_word = rawurlencode($word);
360360 $s_word = htmlsc($word);
361361 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));
363363
364364 ksort($pages, SORT_STRING);
365365
--- a/plugin/search2.inc.php
+++ b/plugin/search2.inc.php
@@ -96,7 +96,7 @@ function plugin_search2_do_search($query_text, $base, $start_index,
9696 $search_start_time, $modified_since)
9797 {
9898 global $whatsnew, $non_list, $search_non_list;
99- global $_msg_andresult, $_msg_orresult, $_msg_notfoundresult;
99+ global $_msg_andresult, $_msg_orresult;
100100 global $search_auth, $auth_user;
101101
102102 $result_record_limit = $start_index === 0 ?