http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73274
Revision: 73274
Author: nikerabbit
Date: 2010-09-18 08:48:20 +0000 (Sat, 18 Sep 2010)
Log Message:
-----------
While making percentages to sort properly, I broke the plain numbers.
Fortunately the fix is easy.
Modified Paths:
--------------
trunk/extensions/Translate/SpecialLanguageStats.php
Modified: trunk/extensions/Translate/SpecialLanguageStats.php
===================================================================
--- trunk/extensions/Translate/SpecialLanguageStats.php 2010-09-18 08:39:36 UTC
(rev 73273)
+++ trunk/extensions/Translate/SpecialLanguageStats.php 2010-09-18 08:48:20 UTC
(rev 73274)
@@ -261,14 +261,23 @@
$out .= Xml::openElement( 'tr' );
$out .= '<td>' . $this->makeGroupLink( $g, $code,
$extra ) . '</td>';
- $out .= Xml::element( 'td', null, $wgLang->formatNum(
$total ) );
- $out .= Xml::element( 'td', null, $wgLang->formatNum(
$total - $translated ) );
+
+ $out .= Xml::element( 'td',
+ array( 'data-sort-value' => $total ),
+ $wgLang->formatNum( $total ) );
+
+ $out .= Xml::element( 'td',
+ array( 'data-sort-value' => $total -
$translated ),
+ $wgLang->formatNum( $total - $translated ) );
+
$out .= $this->element( $this->formatPercentage(
$translated / $total ),
$this->getBackgroundColour( $translated, $total
),
sprintf( '%1.5f', $translated / $total ) );
+
$out .= $this->element( $this->formatPercentage( $fuzzy
/ $total ),
$this->getBackgroundColour( $fuzzy, $total,
true ),
sprintf( '%1.5f', $fuzzy / $total ) );
+
$out .= Xml::closeElement( 'tr' );
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs