Index: trunk/extensions/Translate/SpecialLanguageStats.php |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | * @return string HTML |
172 | 172 | */ |
173 | 173 | function getGroupStats( $code, $suppressComplete = false ) { |
174 | | - global $wgUser; |
| 174 | + global $wgUser, $wgLang; |
175 | 175 | |
176 | 176 | $out = ''; |
177 | 177 | |
— | — | @@ -221,8 +221,8 @@ |
222 | 222 | continue; |
223 | 223 | } |
224 | 224 | |
225 | | - $translatedPercentage = @sprintf( '%.2f%%', 100 * $translated / $total ); |
226 | | - $fuzzyPercentage = @sprintf( '%.2f%%', 100 * $fuzzy / $total ); |
| 225 | + $translatedPercentage = wfMsg( 'percent', $wgLang->formatNum( round( 100 * $translated / $total, 2 ) ) ); |
| 226 | + $fuzzyPercentage = wfMsg( 'percent', $wgLang->formatNum( round( 100 * $fuzzy / $total ) ) ); |
227 | 227 | |
228 | 228 | $translateTitle = SpecialPage::getTitleFor( 'Translate' ); |
229 | 229 | $pageParameters = "group=" . $g->getId() . "&language=" . $code; |