Index: trunk/extensions/Translate/scripts/groupStatistics.php |
— | — | @@ -22,14 +22,13 @@ |
23 | 23 | if ( !isset( $options['groups'] ) ) showUsage(); |
24 | 24 | if ( !isset( $options['output'] ) ) $options['output'] = 'default'; |
25 | 25 | |
26 | | - |
27 | 26 | /** Print a usage message*/ |
28 | 27 | function showUsage() { |
29 | 28 | $msg = <<<END |
30 | 29 | --help : this help message |
31 | 30 | --groups LIST: comma separated list of groups |
32 | 31 | --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 |
34 | 33 | --fuzzy : add column for fuzzy counts |
35 | 34 | --output TYPE: select an another output engine |
36 | 35 | * 'csv' : Comma Separated Values. |
— | — | @@ -42,7 +41,6 @@ |
43 | 42 | exit( 1 ); |
44 | 43 | } |
45 | 44 | |
46 | | - |
47 | 45 | # Select an output engine |
48 | 46 | switch ( $options['output'] ) { |
49 | 47 | case 'wiki': |
— | — | @@ -64,13 +62,11 @@ |
65 | 63 | showUsage(); |
66 | 64 | } |
67 | 65 | |
68 | | - |
69 | 66 | $skipLanguages = array(); |
70 | 67 | if ( isset( $options['skiplanguages'] ) ) { |
71 | 68 | $skipLanguages = array_map( 'trim', explode( ',', $options['skiplanguages'] ) ); |
72 | 69 | } |
73 | 70 | |
74 | | - |
75 | 71 | // Get groups from input |
76 | 72 | $groups = array(); |
77 | 73 | $reqGroups = array_map( 'trim', explode( ',', $options['groups'] ) ); |
— | — | @@ -109,7 +105,6 @@ |
110 | 106 | } |
111 | 107 | $out->blockend(); |
112 | 108 | |
113 | | - |
114 | 109 | // Perform the statistic calculations on every language |
115 | 110 | foreach ( $languages as $code => $name ) { |
116 | 111 | // Skip list |
— | — | @@ -145,7 +140,6 @@ |
146 | 141 | $columns[] = $out->formatPercent( $fuzzy, $total, |
147 | 142 | /* Inverted color */ true, /* Decimals */ 2 ); |
148 | 143 | } |
149 | | - |
150 | 144 | } |
151 | 145 | |
152 | 146 | // Skip dummy languages if requested |