Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -475,9 +475,10 @@ |
476 | 476 | } |
477 | 477 | |
478 | 478 | public static function disablePreSaveTransform( $article, $popts ) { |
479 | | - global $wgTranslateMessageNamespaces, $wgTranslateDocumentationLanguageCode; |
480 | | - if( in_array( $article->getTitle()->getNamespace(), $wgTranslateMessageNamespaces ) |
481 | | - && $article->getTitle()->getSubpageText() !== $wgTranslateDocumentationLanguageCode ) { |
| 479 | + global $wgTranslateDocumentationLanguageCode; |
| 480 | + $keycodegroup = self::getKeyCodeGroup( $article->getTitle() ); |
| 481 | + if( self::isMessageNamespace( $article->getTitle() ) |
| 482 | + && $keycodegroup[1] !== $wgTranslateDocumentationLanguageCode ) { |
482 | 483 | $popts->setPreSaveTransform( false ); |
483 | 484 | } |
484 | 485 | return true; |