Index: trunk/extensions/LuceneSearch/LuceneSearch_body.php |
— | — | @@ -44,10 +44,14 @@ |
45 | 45 | SpecialPage::SpecialPage('Search'); |
46 | 46 | } |
47 | 47 | |
48 | | - function makelink($term, $offset, $limit) { |
| 48 | + function makelink($term, $offset, $limit, $case='ignore') { |
49 | 49 | global $wgRequest, $wgScript; |
| 50 | + if( $case == 'exact') |
| 51 | + $fulltext = htmlspecialchars(wfMsg('searchexactcase')); |
| 52 | + else |
| 53 | + $fulltext = htmlspecialchars(wfMsg('powersearch')); |
50 | 54 | $link = $wgScript.'?title=Special:Search&search='. |
51 | | - urlencode($term).'&fulltext=Search'; |
| 55 | + urlencode($term).'&fulltext='.$fulltext; |
52 | 56 | foreach(SearchEngine::searchableNamespaces() as $ns => $name) |
53 | 57 | if ($wgRequest->getCheck('ns' . $ns)) |
54 | 58 | $link .= '&ns'.$ns.'=1'; |
— | — | @@ -160,16 +164,19 @@ |
161 | 165 | $wgOut->addWikiText( wfMsg( 'noexactmatch', $t->getPrefixedText() ) ); |
162 | 166 | } |
163 | 167 | |
| 168 | + $case = 'ignore'; |
164 | 169 | # Replace localized namespace prefixes (from lucene-search 2.0) |
165 | 170 | global $wgLuceneSearchVersion; |
166 | | - if($wgLuceneSearchVersion >= 2) |
| 171 | + if($wgLuceneSearchVersion >= 2){ |
167 | 172 | $searchq = $this->replacePrefixes($q); |
168 | | - else |
| 173 | + if($wgRequest->getText('fulltext') == wfMsg('searchexactcase')) |
| 174 | + $case = 'exact'; |
| 175 | + } else |
169 | 176 | $searchq = $q; |
170 | 177 | |
171 | 178 | global $wgDisableTextSearch; |
172 | 179 | if( !$wgDisableTextSearch ) { |
173 | | - $results = LuceneSearchSet::newFromQuery( 'search', $searchq, $this->namespaces, $limit, $offset ); |
| 180 | + $results = LuceneSearchSet::newFromQuery( 'search', $searchq, $this->namespaces, $limit, $offset, $case ); |
174 | 181 | } |
175 | 182 | |
176 | 183 | if( $wgDisableTextSearch || $results === false ) { |
— | — | @@ -195,14 +202,14 @@ |
196 | 203 | if( $results->hasSuggestion() ) { |
197 | 204 | $suggestion = $results->getSuggestion(); |
198 | 205 | $o = ' ' . wfMsg('searchdidyoumean', |
199 | | - $this->makeLink( $suggestion, $offset, $limit ), |
| 206 | + $this->makeLink( $suggestion, $offset, $limit, $case ), |
200 | 207 | htmlspecialchars( $suggestion ) ); |
201 | 208 | $wgOut->addHTML( '<div style="text-align: center;">'.$o.'</div>' ); |
202 | 209 | } |
203 | 210 | |
204 | 211 | $nmtext = ''; |
205 | 212 | if ($offset == 0 && !$wgLuceneDisableTitleMatches) { |
206 | | - $titles = LuceneSearchSet::newFromQuery( 'titlematch', $q, $this->namespaces, 5 ); |
| 213 | + $titles = LuceneSearchSet::newFromQuery( 'titlematch', $q, $this->namespaces, 5, $case ); |
207 | 214 | if( $titles && $titles->hasResults() ) { |
208 | 215 | $nmtext = '<p>'.wfMsg('searchnearmatches').'</p>'; |
209 | 216 | $nmtext .= '<ul>'; |
— | — | @@ -238,7 +245,7 @@ |
239 | 246 | $prevnext = ""; |
240 | 247 | if ($whichchunk > 0) |
241 | 248 | $prevnext .= '<a href="'. |
242 | | - $this->makelink($q, $offset-$limit, $limit).'">'. |
| 249 | + $this->makelink($q, $offset-$limit, $limit, $case).'">'. |
243 | 250 | wfMsg('searchprev').'</a> '; |
244 | 251 | $first = max($whichchunk - 11, 0); |
245 | 252 | $last = min($numchunks, $whichchunk + 11); |
— | — | @@ -250,12 +257,12 @@ |
251 | 258 | else |
252 | 259 | $prevnext .= '<a href="'. |
253 | 260 | $this->makelink($q, $limit*$i, |
254 | | - $limit).'">'.($i+1).'</a> '; |
| 261 | + $limit, $case).'">'.($i+1).'</a> '; |
255 | 262 | } |
256 | 263 | } |
257 | 264 | if ($whichchunk < $last-1) |
258 | 265 | $prevnext .= '<a href="'. |
259 | | - $this->makelink($q, $offset + $limit, $limit).'">'. |
| 266 | + $this->makelink($q, $offset + $limit, $limit, $case).'">'. |
260 | 267 | wfMsg('searchnext').'</a> '; |
261 | 268 | $prevnext = '<div style="text-align: center;">'.$prevnext.'</div>'; |
262 | 269 | $top .= $prevnext; |
— | — | @@ -531,18 +538,28 @@ |
532 | 539 | |
533 | 540 | function showShortDialog($term) { |
534 | 541 | global $wgScript, $wgLuceneDisableSuggestions; |
| 542 | + global $wgLuceneSearchExactCase; |
535 | 543 | |
536 | 544 | $action = "$wgScript"; |
537 | 545 | $searchButton = '<input type="submit" name="fulltext" value="' . |
538 | 546 | htmlspecialchars(wfMsg('powersearch')) . "\" />\n"; |
| 547 | + if($wgLuceneSearchExactCase){ |
| 548 | + $exactSearch = '<input type="submit" name="fulltext" value="' . |
| 549 | + htmlspecialchars(wfMsg('searchexactcase')) . "\" />\n"; |
| 550 | + $leftMargin = "10%"; |
| 551 | + } else{ |
| 552 | + $exactSearch = ""; |
| 553 | + $leftMargin = "25%"; |
| 554 | + } |
539 | 555 | $onkeyup = $wgLuceneDisableSuggestions ? '' : |
540 | 556 | ' onkeyup="resultType()" autocomplete="off" '; |
541 | 557 | $searchField = "<div><input type='text' id='lsearchbox' $onkeyup " |
542 | | - . "style='margin-left: 25%; width: 50%; ' value=\"" |
| 558 | + . "style='margin-left: $leftMargin; width: 50%; ' value=\"" |
543 | 559 | . htmlspecialchars($term) . '"' |
544 | 560 | . " name=\"search\" />\n" |
545 | 561 | . "<span id='loadStatus'></span>" |
546 | 562 | . $searchButton |
| 563 | + . $exactSearch |
547 | 564 | . "<div id='results'></div></div>"; |
548 | 565 | |
549 | 566 | $ret = $searchField /*. $searchButton*/; |
— | — | @@ -552,7 +569,7 @@ |
553 | 570 | } |
554 | 571 | |
555 | 572 | function showFullDialog($term) { |
556 | | - global $wgContLang; |
| 573 | + global $wgContLang, $wgLuceneSearchExactCase; |
557 | 574 | $namespaces = ''; |
558 | 575 | foreach(SearchEngine::searchableNamespaces() as $ns => $name) { |
559 | 576 | $checked = in_array($ns, $this->namespaces) |
— | — | @@ -571,11 +588,17 @@ |
572 | 589 | $searchButton = '<input type="submit" name="fulltext" value="' . |
573 | 590 | htmlspecialchars(wfMsg('powersearch')) . "\" />\n"; |
574 | 591 | |
| 592 | + if($wgLuceneSearchExactCase){ |
| 593 | + $exactSearch = '<input type="submit" name="fulltext" value="' . |
| 594 | + htmlspecialchars(wfMsg('searchexactcase')) . "\" />\n"; |
| 595 | + } else |
| 596 | + $exactSearch = ""; |
| 597 | + |
575 | 598 | $redirect = ''; # What's this for? |
576 | 599 | $ret = wfMsg('lucenepowersearchtext', |
577 | 600 | $namespaces, $redirect, $searchField, |
578 | 601 | '', '', '', '', '', # Dummy placeholders |
579 | | - $searchButton); |
| 602 | + $searchButton, $exactSearch); |
580 | 603 | |
581 | 604 | $title = Title::makeTitle(NS_SPECIAL, 'Search'); |
582 | 605 | $action = $title->escapeLocalURL(); |
— | — | @@ -720,7 +743,7 @@ |
721 | 744 | * @access public |
722 | 745 | * @static |
723 | 746 | */ |
724 | | - function newFromQuery( $method, $query, $namespaces = array(), $limit = 10, $offset = 0 ) { |
| 747 | + function newFromQuery( $method, $query, $namespaces = array(), $limit = 10, $offset = 0, $case = 'ignore' ) { |
725 | 748 | $fname = 'LuceneSearchSet::newFromQuery'; |
726 | 749 | wfProfileIn( $fname ); |
727 | 750 | |
— | — | @@ -735,6 +758,7 @@ |
736 | 759 | 'namespaces' => implode( ',', $namespaces ), |
737 | 760 | 'offset' => $offset, |
738 | 761 | 'limit' => $limit, |
| 762 | + 'case' => $case, |
739 | 763 | ) ); |
740 | 764 | |
741 | 765 | global $wgOut; |
Index: trunk/extensions/LuceneSearch/LuceneSearch.i18n.php |
— | — | @@ -20,10 +20,11 @@ |
21 | 21 | 'lucenepowersearchtext' => " |
22 | 22 | Search in namespaces:\n |
23 | 23 | $1\n |
24 | | -Search for $3 $9", |
| 24 | +Search for $3 $9 $10", |
25 | 25 | 'lucenefallback' => "There was a problem with the wiki search. |
26 | 26 | This is probably temporary; try again in a few moments, |
27 | 27 | or you can search the wiki through an external search service:\n", |
| 28 | + 'searchexactcase' => 'Exact-case search', |
28 | 29 | 'searchall' => 'all', |
29 | 30 | 'searchincategory' => 'incategory', |
30 | 31 | 'searchaliases' => |
— | — | @@ -58,7 +59,7 @@ |
59 | 60 | 'lucenepowersearchtext' => " |
60 | 61 | Hledat ve jmenných prostorech:\n |
61 | 62 | $1\n |
62 | | -Hledat $3 $9", |
| 63 | +Hledat $3 $9 $10", |
63 | 64 | 'lucenefallback' => 'Při hledání došlo k chybě. Problém je pravděpodobně dočasný, zkuste hledání později, případně můžete vyzkoušet externí vyhledávač:\n' |
64 | 65 | ); |
65 | 66 | $wgLuceneSearchMessages['de'] = array( |
— | — | @@ -71,7 +72,7 @@ |
72 | 73 | 'searchnoresults' => "Es wurden keine passenden Seiten für Ihre Suchanfrage gefunden.", |
73 | 74 | 'searchnearmatches' => "<b>Diese Seiten haben zu der Suchanfrage ähnliche Titel:</b>\n", |
74 | 75 | 'searchnearmatch' => "<li>$1</li>\n", |
75 | | - 'lucenepowersearchtext' => "Suche in den Namensräumen $1<br />Suchbegriff: $3 $9", |
| 76 | + 'lucenepowersearchtext' => "Suche in den Namensräumen $1<br />Suchbegriff: $3 $9 $10", |
76 | 77 | 'lucenefallback' => "Bei der {{SITENAME}}-internen Suche ist ein Problem aufgetreten. |
77 | 78 | Dies ist normalerweise ein vorübergehendes Problem. Bitte versuchen Sie es nochmal. |
78 | 79 | Alternativ können Sie auch die externen Suchmöglichkeiten nutzen:\n", |
— | — | @@ -91,7 +92,7 @@ |
92 | 93 | 'lucenepowersearchtext' => " |
93 | 94 | Serĉo en nomspacoj:\n |
94 | 95 | $1\n |
95 | | -Serĉo de $3 $9", |
| 96 | +Serĉo de $3 $9 $10", |
96 | 97 | 'lucenefallback' => "Estis problemo kun la serĉilo de ĉi vikio. |
97 | 98 | Estas verŝajne nur portempa; bonvolu provi denove post iom da tempo |
98 | 99 | aŭ vi povas esplori la vikion per eksteraj serĉservoj.\n" |
— | — | @@ -126,7 +127,7 @@ |
127 | 128 | 'searchnearmatch' => "<li>$1</li>\n", |
128 | 129 | 'lucenepowersearchtext' => " |
129 | 130 | Rechercher dans les espaces : $1 <br/> |
130 | | -Texte à rechercher : $3 $9", |
| 131 | +Texte à rechercher : $3 $9 $10", |
131 | 132 | 'lucenefallback' => " |
132 | 133 | Un problème est survenu avec la recherche wiki. |
133 | 134 | Ce souci est probablement temporaire ; merci de réessayer dans un instant ou d’utiliser un service de recherche externe." |
— | — | @@ -144,7 +145,7 @@ |
145 | 146 | 'lucenepowersearchtext' => " |
146 | 147 | חיפוש במרחבי השם:\n |
147 | 148 | $1\n |
148 | | -חיפוש של $3 $9", |
| 149 | +חיפוש של $3 $9 $10", |
149 | 150 | 'lucenefallback' => "יש בעיה עם מנוע הוויקי. |
150 | 151 | סביר להניח שהיא זמנית; אנא נסו שנית בעוד מספר דקות. |
151 | 152 | באפשרותכם גם לחפש בוויקי באמצעות שירותי חיפוש חיצוניים:\n" |
— | — | @@ -162,7 +163,7 @@ |
163 | 164 | |
164 | 165 | $1 |
165 | 166 | |
166 | | -$3 $9", |
| 167 | +$3 $9 $10", |
167 | 168 | 'lucenefallback' => "Hiba adódott a wiki keresés során. |
168 | 169 | A hiba átmeneti; próbáld újra néhány másodperc múlva vagy kereshetsz a wikin egy külső keresőszolgáltatáson keresztül is:" |
169 | 170 | ); |
— | — | @@ -178,7 +179,7 @@ |
179 | 180 | 'lucenepowersearchtext' => " |
180 | 181 | Pencarian di namespace:\n |
181 | 182 | $1\n |
182 | | -Pencarian terhadap $3 $9", |
| 183 | +Pencarian terhadap $3 $9 $10", |
183 | 184 | 'lucenefallback' => "Ada masalah pada pencarian wiki. |
184 | 185 | Masalah ini mungkin hanya sementara; silakan coba lagi dalam beberapa saat, |
185 | 186 | atau gunakan layanan pencari eksternal:\n" |
— | — | @@ -196,7 +197,7 @@ |
197 | 198 | 'lucenepowersearchtext' => " |
198 | 199 | Cerca nei namespace selezionati:\n |
199 | 200 | $1\n |
200 | | -Testo da ricercare $3 $9", |
| 201 | +Testo da ricercare $3 $9 $10", |
201 | 202 | 'lucenefallback' => "Il motore di ricerca interno ha un problema. |
202 | 203 | Probabilmente si tratta di un errore temporaneo, destinato a risolversi in breve tempo. |
203 | 204 | Nel frattempo, si consiglia di riprovare tra qualche istante o di utilizzare un motore di ricerca esterno:\n" |
— | — | @@ -218,7 +219,7 @@ |
219 | 220 | |
220 | 221 | $1 |
221 | 222 | |
222 | | -検索語: $3 $9', |
| 223 | +検索語: $3 $9 $10', |
223 | 224 | 'lucenefallback' => '検索中に一時的な問題が発生しました。しばらく経ってから再度検索するか、外部の検索サービスを使用してください: |
224 | 225 | ', |
225 | 226 | ); |
— | — | @@ -233,7 +234,7 @@ |
234 | 235 | 'searchnearmatches' => "<b>Мына бет атауларында сұранысыңызға ұқсастығы бар:</b>\n", |
235 | 236 | 'lucenepowersearchtext' => "Мына есім аяларда іздеу:<br /> |
236 | 237 | $1<br /> |
237 | | -Іздестіру сұранысы: $3 $9", |
| 238 | +Іздестіру сұранысы: $3 $9 $10", |
238 | 239 | 'lucenefallback' => "Іздеу кезінде мына уикиде шатақ шықты. |
239 | 240 | Бәлкім, бұл уақытша кедергі; біршама сәттен соң қайталаңыз, |
240 | 241 | немесе осы уикиден іздеу үшін сыртқы қызметтерін қолданыңыз:<br />" |
— | — | @@ -249,7 +250,7 @@ |
250 | 251 | 'searchnearmatches' => "<b>Mına bet atawlarında suranısıñızğa uqsastığı bar:</b>\n", |
251 | 252 | 'lucenepowersearchtext' => "Mına esim ayalarda izdew:<br /> |
252 | 253 | $1<br /> |
253 | | -İzdestirw suranısı: $3 $9", |
| 254 | +İzdestirw suranısı: $3 $9 $10", |
254 | 255 | 'lucenefallback' => "İzdew kezinde mına wïkïde şataq şıqtı. |
255 | 256 | Bälkim, bul waqıtşa kedergi; birşama sätten soñ qaýtalañız, |
256 | 257 | nemese osı wïkïden izdew üşin sırtqı qızmetterin qoldanıñız:<br />" |
— | — | @@ -265,7 +266,7 @@ |
266 | 267 | 'searchnearmatches' => "<b>مىنا بەت اتاۋلارىندا سۇرانىسىڭىزعا ۇقساستىعى بار:</b>\n", |
267 | 268 | 'lucenepowersearchtext' => "مىنا ەسٸم ايالاردا ٸزدەۋ:<br /> |
268 | 269 | $1<br /> |
269 | | -ٸزدەستٸرۋ سۇرانىسى: $3 $9", |
| 270 | +ٸزدەستٸرۋ سۇرانىسى: $3 $9 $10", |
270 | 271 | 'lucenefallback' => "ٸزدەۋ كەزٸندە مىنا ۋيكيدە شاتاق شىقتى. |
271 | 272 | بٵلكٸم, بۇل ۋاقىتشا كەدەرگٸ; بٸرشاما سٵتتەن سوڭ قايتالاڭىز, |
272 | 273 | نەمەسە وسى ۋيكيدەن ٸزدەۋ ٷشٸن سىرتقى قىزمەتتەرٸن قولدانىڭىز:<br />" |
— | — | @@ -284,7 +285,7 @@ |
285 | 286 | 'lucenepowersearchtext' => " |
286 | 287 | Ieškoti vardų srityse:\n |
287 | 288 | $1\n |
288 | | -Ieškoma $3 $9", |
| 289 | +Ieškoma $3 $9 $10", |
289 | 290 | 'lucenefallback' => "Buvo problemų su projekto paieška. |
290 | 291 | Tai turbūt laikina; pamėginkite šiek tiek vėliau, |
291 | 292 | arba galite mėginti ieškoti projekte per išorines paieškos paslaugas:\n" |
— | — | @@ -301,7 +302,7 @@ |
302 | 303 | 'lucenepowersearchtext' => " |
303 | 304 | Zoek in de volgende naamruimten:\n |
304 | 305 | $1\n |
305 | | -Zoek naar $3 $9", |
| 306 | +Zoek naar $3 $9 $10", |
306 | 307 | 'lucenefallback' => "Er is een storing in de wikizoekmachine. |
307 | 308 | Deze is waarschijnlijk tijdelijk van aard; probeer het over enige tijd opnieuw |
308 | 309 | of doorzoek de wiki via een externe zoekmachine:\n" |
— | — | @@ -331,7 +332,7 @@ |
332 | 333 | 'searchdidyoumean' => 'Pensavetz a : « <a href="$1">$2</a> » ?', |
333 | 334 | 'searchnoresults' => 'O planhem, existís pas cap de correspondéncia exacta a vòstra requèsta.', |
334 | 335 | 'searchnearmatches' => '<strong>Aquestas paginas an un títol similar a vòstra requèsta.</strong>', |
335 | | - 'lucenepowersearchtext' => 'Recercar dins los espacis : $1<br />Tèxt de recercar : $3 $9', |
| 336 | + 'lucenepowersearchtext' => 'Recercar dins los espacis : $1<br />Tèxt de recercar : $3 $9 $10', |
336 | 337 | 'lucenefallback' => 'Un problèma es subrevengut amb la recèrca wiki. Aqueste problèma es probablament temporari ; mercé de tornar ensajar dins un moment o d’utilizar un servici de recèrca extèrna.', |
337 | 338 | ); |
338 | 339 | $wgLuceneSearchMessages['pl'] = array( |
— | — | @@ -346,7 +347,7 @@ |
347 | 348 | 'lucenepowersearchtext' => " |
348 | 349 | Szukaj w przestrzeniach nazw:\n |
349 | 350 | $1\n |
350 | | -Szukana fraza $3 $9", |
| 351 | +Szukana fraza $3 $9 $10", |
351 | 352 | 'lucenefallback' => "Wystąpił błąd z wyszukiwaniem w wiki. |
352 | 353 | Jest to tymczasowe; spróbuj ponownie za parę chwil |
353 | 354 | lub przeszukaj wiki za pomocą zewnętrznych wyszukiwarek:\n" |
— | — | @@ -364,7 +365,7 @@ |
365 | 366 | 'lucenepowersearchtext' => " |
366 | 367 | Pesquisar nos espaços nominais:\n |
367 | 368 | $1\n |
368 | | -Pesquisar por $3 $9", |
| 369 | +Pesquisar por $3 $9 $10", |
369 | 370 | 'lucenefallback' => "Há um problema com a busca neste wiki. |
370 | 371 | Provavelmente seja apenas uma falha temporária; tente novamente mais tarde, |
371 | 372 | ou procure por conteúdos neste wiki através de um mecanismo externo:\n", |
— | — | @@ -383,7 +384,7 @@ |
384 | 385 | 'lucenepowersearchtext' => " |
385 | 386 | Поиск в пространствах имён:\n |
386 | 387 | $1\n |
387 | | -Поисковый запрос $3 $9", |
| 388 | +Поисковый запрос $3 $9 $10", |
388 | 389 | 'lucenefallback' => "Возникла проблема с поиском по вики. |
389 | 390 | Вероятно, эта временная проблема, попробуйте ещё раз чуть позже, |
390 | 391 | либо воспользуйтесь поиском во внешних поисковых системах.\n" |
— | — | @@ -397,7 +398,7 @@ |
398 | 399 | 'searchdidyoumean' => 'Mali ste na mysli: "<a href="$1">$2</a>"?', |
399 | 400 | 'searchnoresults' => 'Ľutujeme, vyhľadávanie nevrátilo na Vašu požiadavku žiadne presné výsledky.', |
400 | 401 | 'searchnearmatches' => '<b>Tieto stránky majú názvy podobné Vášej požiadavke:</b>', |
401 | | - 'lucenepowersearchtext' => 'Vyhľadávanie v menných priestoroch: $1 Hľadanie $3 $9', |
| 402 | + 'lucenepowersearchtext' => 'Vyhľadávanie v menných priestoroch: $1 Hľadanie $3 $9 $10', |
402 | 403 | 'lucenefallback' => 'S vyhľadávaním na wiki nastal problém. Je možné, že je to dočasné; o chvíľu to skúste znova alebo vyhľadávajte na wiki pomocou externej indexovacej služby:', |
403 | 404 | 'searchall' => 'všetko', |
404 | 405 | 'searchincategory' => 'vkategórii', |
— | — | @@ -440,10 +441,11 @@ |
441 | 442 | 'lucenepowersearchtext' => " |
442 | 443 | Претрага у именским просторима:\n |
443 | 444 | $1\n |
444 | | -Претрага за $3 $9", |
| 445 | +Претрага за $3 $9 $10", |
445 | 446 | 'lucenefallback' => "Дошло је до проблема у вики претрази... |
446 | 447 | Ово је вероватно привремено; покушајте поново након неколико момената, |
447 | 448 | или претражите вики преко неког од спољних претраживачких сервиса:\n", |
| 449 | + 'searchexactcase' => 'Тражи са капитализацијом', |
448 | 450 | 'searchall' => "све\nsve", |
449 | 451 | 'searchincategory' => "укатегорији\nukategoriji" |
450 | 452 | ); |
— | — | @@ -460,10 +462,11 @@ |
461 | 463 | 'lucenepowersearchtext' => " |
462 | 464 | Pretraga u imenskim prostorima:\n |
463 | 465 | $1\n |
464 | | -Pretraga za $3 $9", |
| 466 | +Pretraga za $3 $9 $10", |
465 | 467 | 'lucenefallback' => "Došlo je do problema u viki pretrazi... |
466 | 468 | Ovo je verovatno privremeno; pokušajte ponovo nakon nekoliko momenata, |
467 | 469 | ili pretražite viki preko nekog od spoljnih pretraživačkih servisa:\n", |
| 470 | + 'searchexactcase' => 'Traži sa kapitalizacijom', |
468 | 471 | 'searchall' => "све\nsve", |
469 | 472 | 'searchincategory' => "укатегорији\nukategoriji" |
470 | 473 | ); |
— | — | @@ -480,7 +483,7 @@ |
481 | 484 | 'searchnearmatch' => "<li>$1</li>\n", |
482 | 485 | 'lucenepowersearchtext' => "Sök i följande namnrymder:\n |
483 | 486 | $1\n |
484 | | -Sök efter $3 $9", |
| 487 | +Sök efter $3 $9 $10", |
485 | 488 | 'lucenefallback' => "På grund av ett problem kunde inte sökningen utföras. |
486 | 489 | Det var troligen bara något tillfälligt; försök igen om en liten stund, |
487 | 490 | eller sök på wikin med någon extern söktjänst:\n" |
— | — | @@ -492,7 +495,7 @@ |
493 | 496 | 'searchscore' => 'مشابہت: $1', |
494 | 497 | 'searchsize' => '$1کلوبائٹ ($2 الفاظ)', |
495 | 498 | 'searchnoresults' => 'بہ تاسف، کوئی ایسا صفحہ نہیں مـلا جو آپکی مطلوبہ تلاش کے عین مطابق ہو۔', |
496 | | - 'lucenepowersearchtext' => 'تلاش کریں، فضاۓ نام : $1 میں براۓ $3 $9', |
| 499 | + 'lucenepowersearchtext' => 'تلاش کریں، فضاۓ نام : $1 میں براۓ $3 $9 $10', |
497 | 500 | ); |
498 | 501 | $wgLuceneSearchMessages['wa'] = array( |
499 | 502 | 'searchnumber' => '<strong>Rizultats: $1-$2 di $3</strong>', |
— | — | @@ -501,7 +504,7 @@ |
502 | 505 | 'searchnoresults' => 'Mande escuzes, mins i gn a rén ki corespond.', |
503 | 506 | 'searchnearmatches' => '<b>Les pådjes shuvantes ont des tites ki ravizèt çou k\' vos avoz cwerou:</b>', |
504 | 507 | 'lucenepowersearchtext' => 'Cweraedje dins les espåces di lomaedje: $1 <br /> |
505 | | -Cweraedje di: $3 $9', |
| 508 | +Cweraedje di: $3 $9 $10', |
506 | 509 | ); |
507 | 510 | $wgLuceneSearchMessages['zh-cn'] = array( |
508 | 511 | 'searchnumber' => "<strong>共有$3项搜索结果,以下是第$1-$2项结果</strong>", |
— | — | @@ -516,7 +519,7 @@ |
517 | 520 | 'lucenepowersearchtext' => " |
518 | 521 | 在名字空间中搜索:\n |
519 | 522 | $1\n |
520 | | -搜索:$3 $9", |
| 523 | +搜索:$3 $9 $10", |
521 | 524 | 'lucenefallback' => "系统搜索发生错误。这可能是暂时性的,请稍后重试。你也可以通过使用外部搜索服务搜索本站:\n" |
522 | 525 | ); |
523 | 526 | $wgLuceneSearchMessages['zh-tw'] = array( |
— | — | @@ -532,7 +535,7 @@ |
533 | 536 | 'lucenepowersearchtext' => " |
534 | 537 | 在名字空間中搜尋:\n |
535 | 538 | $1\n |
536 | | -搜尋:$3 $9", |
| 539 | +搜尋:$3 $9 $10", |
537 | 540 | 'lucenefallback' => "系統搜尋發生錯誤。這可能是暫時性的,請稍後重試。你也可以通過使用外部搜尋服務搜尋本站:\n" |
538 | 541 | ); |
539 | 542 | $wgLuceneSearchMessages['zh-yue'] = array( |
— | — | @@ -548,7 +551,7 @@ |
549 | 552 | 'lucenepowersearchtext' => " |
550 | 553 | 響空間名度搵:\n |
551 | 554 | $1\n |
552 | | -搜尋:$3 $9", |
| 555 | +搜尋:$3 $9 $10", |
553 | 556 | 'lucenefallback' => "Wiki搜尋出咗問題。呢個可能係暫時性嘅,請稍後再試。你亦都可以通過利用外部搜尋服務來去搵呢個wiki:\n" |
554 | 557 | ); |
555 | 558 | $wgLuceneSearchMessages['zh-hk'] = $wgLuceneSearchMessages['zh-tw']; |
Index: trunk/extensions/LuceneSearch/LuceneSearch.php |
— | — | @@ -60,6 +60,11 @@ |
61 | 61 | /** Lucene-search (mwsearch) version. from 2.0 we support search prefixes */ |
62 | 62 | $wgLuceneSearchVersion = 1.0; |
63 | 63 | |
| 64 | +/** Show additional "exact case" search button, |
| 65 | + index needs to be built with exact case option */ |
| 66 | +$wgLuceneSearchExactCase = false; |
| 67 | + |
| 68 | + |
64 | 69 | # Internationalisation file |
65 | 70 | require_once( 'LuceneSearch.i18n.php' ); |
66 | 71 | |