Index: trunk/phase3/maintenance/language/messages.inc |
— | — | @@ -2709,6 +2709,7 @@ |
2710 | 2710 | 'autocomment-prefix', |
2711 | 2711 | 'pipe-separator', |
2712 | 2712 | 'word-separator', |
| 2713 | + 'ellipsis-separator', |
2713 | 2714 | ), |
2714 | 2715 | 'imgmulti' => array( |
2715 | 2716 | 'imgmultipageprev', |
Index: trunk/phase3/maintenance/language/messageTypes.inc |
— | — | @@ -328,6 +328,7 @@ |
329 | 329 | 'colon-separator', |
330 | 330 | 'pipe-separator', |
331 | 331 | 'word-separator', |
| 332 | + 'ellipsis-separator', |
332 | 333 | 'autocomment-prefix', |
333 | 334 | 'listgrouprights-right-display', |
334 | 335 | 'timezone-utc', |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -3575,6 +3575,7 @@ |
3576 | 3576 | 'autocomment-prefix' => '- ', # only translate this message to other languages if you have to change it |
3577 | 3577 | 'pipe-separator' => '|', # only translate this message to other languages if you have to change it |
3578 | 3578 | 'word-separator' => ' ', # only translate this message to other languages if you have to change it |
| 3579 | +'ellipsis-separator' => '…', # only translate this message to other languages if you have to change it |
3579 | 3580 | |
3580 | 3581 | # Multipage image navigation |
3581 | 3582 | 'imgmultipageprev' => '← previous page', |
Index: trunk/extensions/MWSearch/MWSearch_body.php |
— | — | @@ -313,7 +313,8 @@ |
314 | 314 | $start = 0; |
315 | 315 | $snippet = ""; |
316 | 316 | $hi = 0; |
317 | | - |
| 317 | + $ellipsis = wfMsg( 'ellipsis-separator' ); |
| 318 | + |
318 | 319 | foreach($splits as $sp){ |
319 | 320 | $sp = intval($sp); |
320 | 321 | // highlight words! |
— | — | @@ -329,8 +330,8 @@ |
330 | 331 | if($sp == strlen($text) && $suffix != '') |
331 | 332 | $snippet .= $suffix; |
332 | 333 | else if($useFinalSeparator) |
333 | | - $snippet .= " <b>...</b> "; |
334 | | - |
| 334 | + $snippet .= " <b>" . $ellipsis . "</b> "; |
| 335 | + |
335 | 336 | $start = $sp; |
336 | 337 | } |
337 | 338 | return array($snippet,$original); |