Index: trunk/extensions/Translate/scripts/groupStatistics.php |
— | — | @@ -10,6 +10,7 @@ |
11 | 11 | */ |
12 | 12 | |
13 | 13 | $mostSpokenLanguages = array( |
| 14 | + // FIXME: Continent toevoegen (africa, america, asia, australia, europe (timezoneregion-), all ('searchall')) |
14 | 15 | // 'language code' => array( position, ethnologue, encarta, average ), // Remark |
15 | 16 | // Source: http://en.wikipedia.org/w/index.php?title=List_of_languages_by_number_of_native_speakers&oldid=317526109 |
16 | 17 | 'zh-hans' => array( 1, 845000, 844700, 844850 ), |
— | — | @@ -123,6 +124,7 @@ |
124 | 125 | ext-0-wikimedia (30%) |
125 | 126 | --speakers : add column for number of speakers (est.). Only valid when |
126 | 127 | combined with --most. |
| 128 | + --nol10n : do not add localised language name if I18ntags is installed. |
127 | 129 | |
128 | 130 | END; |
129 | 131 | STDERR( $msg ); |
— | — | @@ -290,7 +292,7 @@ |
291 | 293 | // Fill language code field |
292 | 294 | $out->element( $code ); |
293 | 295 | // Fill language name field |
294 | | - if( function_exists( 'efI18nTagsInit' ) ) { |
| 296 | + if( !isset( $options['nol10n'] ) && function_exists( 'efI18nTagsInit' ) ) { |
295 | 297 | $out->element( "{{#languagename:" . $code . "}}" ); |
296 | 298 | } else { |
297 | 299 | $out->element( $name ); |