r57330 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57329‎ | r57330 | r57331 >
Date:17:25, 3 October 2009
Author:siebrand
Status:deferred
Tags:
Comment:
All suppression of #languagename
Modified paths:
  • /trunk/extensions/Translate/scripts/groupStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/groupStatistics.php
@@ -10,6 +10,7 @@
1111 */
1212
1313 $mostSpokenLanguages = array(
 14+ // FIXME: Continent toevoegen (africa, america, asia, australia, europe (timezoneregion-), all ('searchall'))
1415 // 'language code' => array( position, ethnologue, encarta, average ), // Remark
1516 // Source: http://en.wikipedia.org/w/index.php?title=List_of_languages_by_number_of_native_speakers&oldid=317526109
1617 'zh-hans' => array( 1, 845000, 844700, 844850 ),
@@ -123,6 +124,7 @@
124125 ext-0-wikimedia (30%)
125126 --speakers : add column for number of speakers (est.). Only valid when
126127 combined with --most.
 128+ --nol10n : do not add localised language name if I18ntags is installed.
127129
128130 END;
129131 STDERR( $msg );
@@ -290,7 +292,7 @@
291293 // Fill language code field
292294 $out->element( $code );
293295 // Fill language name field
294 - if( function_exists( 'efI18nTagsInit' ) ) {
 296+ if( !isset( $options['nol10n'] ) && function_exists( 'efI18nTagsInit' ) ) {
295297 $out->element( "{{#languagename:" . $code . "}}" );
296298 } else {
297299 $out->element( $name );

Status & tagging log