r57313 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57312‎ | r57313 | r57314 >
Date:00:10, 3 October 2009
Author:siebrand
Status:deferred
Tags:
Comment:
* allow localised language names if I18n tags is installed
* add documentation
Modified paths:
  • /trunk/extensions/Translate/scripts/groupStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/groupStatistics.php
@@ -283,14 +283,23 @@
284284
285285 // Output the the row
286286 $out->blockstart();
 287+ // Fill language position field
287288 if( isset( $options['most'] ) ) {
288289 $out->element( $mostSpokenLanguages[$code][0] );
289290 }
 291+ // Fill language code field
290292 $out->element( $code );
291 - $out->element( $name );
 293+ // Fill language name field
 294+ if( function_exists( 'efI18nTagsInit' ) ) {
 295+ $out->element( "{{#languagename|" . $code . "}}" );
 296+ } else {
 297+ $out->element( $name );
 298+ }
 299+ // Fill speakers field
292300 if( isset( $options['most'] ) && isset( $options['speakers'] ) ) {
293301 $out->element( number_format( $mostSpokenLanguages[$code][3] ) );
294302 }
 303+ // Fill fields for groups
295304 foreach ( $columns as $fields ) {
296305 list( $invert, $upper, $total ) = $fields;
297306 $c = $out->formatPercent( $upper, $total, $invert, /* Decimals */ 2 );

Status & tagging log