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', 'grouptrail', 'threshold', 'ppgettext' ); |
| 13 | +$optionsWithArgs = array( 'lang', 'skip', 'target', 'group', 'groups', 'groupprefix', 'threshold', 'ppgettext' ); |
14 | 14 | require( dirname( __FILE__ ) . '/cli.inc' ); |
15 | 15 | |
16 | 16 | function showUsage() { |
— | — | @@ -24,8 +24,8 @@ |
25 | 25 | --skip Languages to skip, comma separated list |
26 | 26 | --group Group ID (cannot use groups grouptrial) |
27 | 27 | --groups Group IDs, comma separated list (cannot use group or grouptrial) |
28 | | - --grouptrail Trial for IDs of to be exported message groups (cannot use |
29 | | - group or grouptrial) |
| 28 | + --groupprefix Prefix of group IDs to be exported message groups (cannot use |
| 29 | + group or groups) |
30 | 30 | --threshold Do not export under this percentage translated |
31 | 31 | --ppgettext Group root path for checkout of product. "msgmerge" will post |
32 | 32 | process on the export result based on the current definitionFile |
— | — | @@ -58,8 +58,8 @@ |
59 | 59 | $skip = array(); |
60 | 60 | } |
61 | 61 | |
62 | | -if ( !isset( $options['group'] ) && !isset( $options['groups'] ) && !isset( $options['grouptrail'] ) ) { |
63 | | - STDERR( "You need to specify one or more groups using any of the options 'group', 'groups' or 'grouptrail'" ); |
| 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'" ); |
64 | 64 | exit( 1 ); |
65 | 65 | } |
66 | 66 | |
— | — | @@ -101,12 +101,12 @@ |
102 | 102 | $groups[$groupId] = MessageGroups::getGroup( $groupId ); |
103 | 103 | } |
104 | 104 | } else { |
105 | | - // Apparently using option grouptrail. Find groups that match. |
| 105 | + // Apparently using option groupprefix. Find groups that match. |
106 | 106 | $allGroups = MessageGroups::singleton()->getGroups(); |
107 | 107 | |
108 | 108 | // Add matching groups to groups array. |
109 | 109 | foreach ( $allGroups as $groupId => $messageGroup ) { |
110 | | - if ( strpos( $groupId, $options['grouptrail'] ) === 0 && !$messageGroup->isMeta() ) { |
| 110 | + if ( strpos( $groupId, $options['groupprefix'] ) === 0 && !$messageGroup->isMeta() ) { |
111 | 111 | $groups[$groupId] = $messageGroup; |
112 | 112 | } |
113 | 113 | } |