r44050 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44049‎ | r44050 | r44051 >
Date:21:01, 29 November 2008
Author:siebrand
Status:deferred
Tags:
Comment:
Update comment, remove some newlines
Modified paths:
  • /trunk/extensions/Translate/scripts/groupStatistics.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/scripts/groupStatistics.php
@@ -22,14 +22,13 @@
2323 if ( !isset( $options['groups'] ) ) showUsage();
2424 if ( !isset( $options['output'] ) ) $options['output'] = 'default';
2525
26 -
2726 /** Print a usage message*/
2827 function showUsage() {
2928 $msg = <<<END
3029 --help : this help message
3130 --groups LIST: comma separated list of groups
3231 --skiplanguages LIST: comma separated list of languages that should be skipped
33 - --skipzero : skip languages that don't have any localisation at all
 32+ --skipzero : skip languages that do not have any localisation at all
3433 --fuzzy : add column for fuzzy counts
3534 --output TYPE: select an another output engine
3635 * 'csv' : Comma Separated Values.
@@ -42,7 +41,6 @@
4342 exit( 1 );
4443 }
4544
46 -
4745 # Select an output engine
4846 switch ( $options['output'] ) {
4947 case 'wiki':
@@ -64,13 +62,11 @@
6563 showUsage();
6664 }
6765
68 -
6966 $skipLanguages = array();
7067 if ( isset( $options['skiplanguages'] ) ) {
7168 $skipLanguages = array_map( 'trim', explode( ',', $options['skiplanguages'] ) );
7269 }
7370
74 -
7571 // Get groups from input
7672 $groups = array();
7773 $reqGroups = array_map( 'trim', explode( ',', $options['groups'] ) );
@@ -109,7 +105,6 @@
110106 }
111107 $out->blockend();
112108
113 -
114109 // Perform the statistic calculations on every language
115110 foreach ( $languages as $code => $name ) {
116111 // Skip list
@@ -145,7 +140,6 @@
146141 $columns[] = $out->formatPercent( $fuzzy, $total,
147142 /* Inverted color */ true, /* Decimals */ 2 );
148143 }
149 -
150144 }
151145
152146 // Skip dummy languages if requested

Status & tagging log