http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94146
Revision: 94146
Author: devayon
Date: 2011-08-10 07:15:18 +0000 (Wed, 10 Aug 2011)
Log Message:
-----------
added some localization to the navigaton bar
Modified Paths:
--------------
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php
Modified:
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php
===================================================================
---
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php
2011-08-10 05:58:21 UTC (rev 94145)
+++
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_QueryUIHelper.php
2011-08-10 07:15:18 UTC (rev 94146)
@@ -248,6 +248,7 @@
* one may overload getUrlTail();
*
* @global int $smwgQMaxInlineLimit
+ * @global mixed $wgContLang
* @param int $limit
* @param int $offset
* @param boolean $hasFurtherResults
@@ -255,7 +256,7 @@
* @return string
*/
public function getNavigationBar( $limit, $offset, $hasFurtherResults )
{
- global $smwgQMaxInlineLimit;
+ global $smwgQMaxInlineLimit, $wgContLang;
$url_tail = $this->getUrlTail();
// Prepare navigation bar.
if ( $offset > 0 ) {
@@ -277,9 +278,9 @@
$navigation .=
'     <b>' .
- wfMsg( 'smw_result_results' ) . ' ' . ( $offset
+ 1 ) .
- '– ' .
- ( $offset + $this->uiCore->getResultCount() ) .
+ wfMsg( 'smw_result_results' ) . ' ' .
$wgContLang->formatNum( $offset + 1 ) .
+ ' - ' .
+ $wgContLang->formatNum( $offset +
$this->uiCore->getResultCount() ) .
'</b>    ';
if ( $hasFurtherResults ) {
@@ -320,10 +321,10 @@
),
'rel' => 'nofollow'
),
- $l
+ $wgContLang->formatNum( $l, false )
);
} else {
- $navigation .= '<b>' . $l . '</b>';
+ $navigation .= '<b>' . $wgContLang->formatNum(
$l ) . '</b>';
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs