Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -71,7 +71,7 @@ |
72 | 72 | $threshold = false; |
73 | 73 | } |
74 | 74 | |
75 | | -$langs = Cli::parseLanguageCodes( $options['lang'] ); |
| 75 | +$reqLangs = Cli::parseLanguageCodes( $options['lang'] ); |
76 | 76 | |
77 | 77 | $groups = array(); |
78 | 78 | |
— | — | @@ -108,10 +108,12 @@ |
109 | 109 | if ( $threshold ) { |
110 | 110 | $langs = TranslationStats::getPercentageTranslated( |
111 | 111 | $groupId, |
112 | | - $langs, |
| 112 | + $reqLangs, |
113 | 113 | $threshold, |
114 | 114 | true |
115 | 115 | ); |
| 116 | + } else { |
| 117 | + $langs = $reqLangs; |
116 | 118 | } |
117 | 119 | |
118 | 120 | if ( $group instanceof FileBasedMessageGroup ) { |