Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * @file |
11 | 11 | */ |
12 | 12 | |
13 | | -$optionsWithArgs = array( 'lang', 'skip', 'target', 'group', 'groups', 'groupprefix', 'threshold', 'ppgettext' ); |
| 13 | +$optionsWithArgs = array( 'lang', 'skip', 'target', 'group', 'groupprefix', 'threshold', 'ppgettext' ); |
14 | 14 | require( dirname( __FILE__ ) . '/cli.inc' ); |
15 | 15 | |
16 | 16 | function showUsage() { |
— | — | @@ -22,10 +22,9 @@ |
23 | 23 | --target Target directory for exported files |
24 | 24 | --lang Comma separated list of language codes or * |
25 | 25 | --skip Languages to skip, comma separated list |
26 | | - --group Group ID (cannot use groups grouptrial) |
27 | | - --groups Group IDs, comma separated list (cannot use group or grouptrial) |
| 26 | + --group Comma separated list of group IDs (cannot use groupprefix) |
28 | 27 | --groupprefix Prefix of group IDs to be exported message groups (cannot use |
29 | | - group or groups) |
| 28 | + group) |
30 | 29 | --threshold Do not export under this percentage translated |
31 | 30 | --ppgettext Group root path for checkout of product. "msgmerge" will post |
32 | 31 | process on the export result based on the current definitionFile |
— | — | @@ -58,8 +57,8 @@ |
59 | 58 | $skip = array(); |
60 | 59 | } |
61 | 60 | |
62 | | -if ( !isset( $options['group'] ) && !isset( $options['groups'] ) && !isset( $options['groupprefix'] ) ) { |
63 | | - STDERR( "You need to specify one or more groups using any of the options 'group', 'groups' or 'groupprefix'" ); |
| 61 | +if ( !isset( $options['group'] ) && !isset( $options['groupprefix'] ) ) { |
| 62 | + STDERR( "You need to specify one or more groups using any of the options 'group' or 'groupprefix'" ); |
64 | 63 | exit( 1 ); |
65 | 64 | } |
66 | 65 | |
— | — | @@ -91,10 +90,8 @@ |
92 | 91 | $groups = array(); |
93 | 92 | |
94 | 93 | if ( isset( $options['group'] ) ) { |
95 | | - $groups[$options['group']] = MessageGroups::getGroup( $options['group'] ); |
96 | | -} elseif ( isset( $options['groups'] ) ) { |
97 | 94 | // Explode parameter |
98 | | - $groupIds = explode( ',', trim( $options['groups'] ) ); |
| 95 | + $groupIds = explode( ',', trim( $options['group'] ) ); |
99 | 96 | |
100 | 97 | // Get groups and add groups to array |
101 | 98 | foreach ( $groupIds as $groupId ) { |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | /** |
17 | 17 | * Version number used in extension credits and in other placed where needed. |
18 | 18 | */ |
19 | | -define( 'TRANSLATE_VERSION', '2012-01-28' ); |
| 19 | +define( 'TRANSLATE_VERSION', '2012-01-31' ); |
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Extension credits properties. |
Index: trunk/extensions/Translate/README |
— | — | @@ -29,6 +29,11 @@ |
30 | 30 | http://translatewiki.net/docs/Translate/html/ |
31 | 31 | |
32 | 32 | == Change log == |
| 33 | +* 2012-01-31 |
| 34 | +- export.php changes: |
| 35 | + - switch "grouptrail" renamed to "groupprefix" |
| 36 | + - switch "groups" dropped. "group" now takes a comma separated list of group |
| 37 | + IDs, too. |
33 | 38 | * 2012-01-13 |
34 | 39 | - export.php has a switch "--no-fuzzy" that will filter out fuzzy messages |
35 | 40 | for file based message groups. |