Index: trunk/extensions/Translate/scripts/groupStatistics.php |
— | — | @@ -86,7 +86,9 @@ |
87 | 87 | * group in the sum of the values for all the groups in the array. |
88 | 88 | * |
89 | 89 | * Definitions in this variable can be used to report weighted meta localisation |
90 | | - * scores. |
| 90 | + * scores for the 50 most spoken languages. |
| 91 | + * |
| 92 | + * @todo Allow weighted reporting for all available languges. |
91 | 93 | */ |
92 | 94 | $localisedWeights = array( |
93 | 95 | 'wikimedia' => array( |
— | — | @@ -177,7 +179,9 @@ |
178 | 180 | require( dirname( __FILE__ ) . '/cli.inc' ); |
179 | 181 | |
180 | 182 | /** |
181 | | - * @todo Needs documentation. |
| 183 | + * Provides heading, summaryheading and free text addition for stats output in |
| 184 | + * wiki format. |
| 185 | + * |
182 | 186 | * @ingroup Stats |
183 | 187 | */ |
184 | 188 | class TranslateStatsOutput extends wikiStatsOutput { |
— | — | @@ -201,6 +205,8 @@ |
202 | 206 | // Show help and exit if '--most' does not have a valid value and no groups set |
203 | 207 | if ( isset( $options['most'] ) && !isset( $localisedWeights[$options['most']] ) && !isset( $options['groups'] ) ) { |
204 | 208 | showUsage(); |
| 209 | +} elseif ( !isset( $options['most'] ) && !isset( $options['groups'] ) ) { |
| 210 | + showUsage(); |
205 | 211 | } |
206 | 212 | |
207 | 213 | if ( !isset( $options['output'] ) ) { |