Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | |
106 | 106 | foreach ( $langs as $lang ) { |
107 | 107 | // Do not export if language code is to be skipped. |
108 | | - if( in_array( $lang, $skip ) ) { |
| 108 | + if( in_array( $lang, $skip ) && !$group->isValidLanguage( $lang ) ) { |
109 | 109 | continue; |
110 | 110 | } |
111 | 111 | |
Index: trunk/extensions/Translate/Groups.php |
— | — | @@ -440,6 +440,16 @@ |
441 | 441 | return $code; |
442 | 442 | } |
443 | 443 | } |
| 444 | + |
| 445 | + /** |
| 446 | + * Checks whether a language code can be used in this group. |
| 447 | + * @param $code \string |
| 448 | + * @return \bool |
| 449 | + */ |
| 450 | + public function isValidLanguage( $code ) { |
| 451 | + return $this->mapCode( $code ) !== 'x-invalidLanguageCode'; |
| 452 | + } |
| 453 | + |
444 | 454 | } |
445 | 455 | |
446 | 456 | /** |