Index: trunk/extensions/Translate/scripts/groupStatistics.php |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | ) |
84 | 84 | ); |
85 | 85 | |
86 | | -$optionsWithArgs = array( 'groups', 'output', 'skiplanguages', 'most' ); |
| 86 | +$optionsWithArgs = array( 'groups', 'output', 'skiplanguages' ); |
87 | 87 | require( dirname( __FILE__ ) . '/cli.inc' ); |
88 | 88 | |
89 | 89 | class TranslateStatsOutput extends WikiStatsOutput { |
— | — | @@ -110,8 +110,8 @@ |
111 | 111 | * 'text' : Text with tabs. |
112 | 112 | --most : [SCOPE]: report on the 50 most spoken languages. Skipzero is |
113 | 113 | ignored. If a valid scope is defined, the group list is |
114 | | - has been chosen, the localisation levels are weighted |
115 | | - and reported. |
| 114 | + ignored and the localisation levels are weighted and |
| 115 | + reported. |
116 | 116 | * mediawiki: |
117 | 117 | core-mostused (30%) |
118 | 118 | core (30%) |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | combined with --most. |
127 | 127 | --nol10n : do not add localised language name if I18ntags is installed. |
128 | 128 | --continent : add a continent column. Only available when output is |
129 | | - 'wiki'. |
| 129 | + 'wiki' or not specified. |
130 | 130 | |
131 | 131 | END; |
132 | 132 | STDERR( $msg ); |
— | — | @@ -191,7 +191,8 @@ |
192 | 192 | } |
193 | 193 | $out->element( 'Code', true ); |
194 | 194 | $out->element( 'Language', true ); |
195 | | -if( $options['output'] == 'wiki' && isset( $options['continent'] ) ) { |
| 195 | +if( ( $options['output'] == 'wiki' || $options['output'] == 'default' ) && |
| 196 | + isset( $options['continent'] ) ) { |
196 | 197 | $out->element( 'Continent', true ); |
197 | 198 | } |
198 | 199 | |
— | — | @@ -299,7 +300,7 @@ |
300 | 301 | $out->element( $code ); |
301 | 302 | |
302 | 303 | // Fill language name field |
303 | | - if( $options['output'] == 'wiki' && |
| 304 | + if( ( $options['output'] == 'wiki' || $options['output'] == 'default' ) && |
304 | 305 | !isset( $options['nol10n'] ) && |
305 | 306 | function_exists( 'efI18nTagsInit' ) ) { |
306 | 307 | $out->element( "{{#languagename:" . $code . "}}" ); |
— | — | @@ -308,11 +309,12 @@ |
309 | 310 | } |
310 | 311 | |
311 | 312 | // Fill continent field |
312 | | - if( $options['output'] == 'wiki' && isset( $options['continent'] ) ) { |
| 313 | + if( ( $options['output'] == 'wiki' || $options['output'] == 'default' ) && |
| 314 | + isset( $options['continent'] ) ) { |
313 | 315 | if( $mostSpokenLanguages[$code][4] == 'multiple' ) { |
314 | 316 | $continent = ''; |
315 | 317 | } else { |
316 | | - $content = "{{int:timezoneregion-" . $mostSpokenLanguages[$code][4] . "}}"; |
| 318 | + $continent = "{{int:timezoneregion-" . $mostSpokenLanguages[$code][4] . "}}"; |
317 | 319 | } |
318 | 320 | $out->element( $continent ); |
319 | 321 | } |