Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -777,9 +777,7 @@ |
778 | 778 | * @return \types{\string,\null} The translation or null if it doesn't exists. |
779 | 779 | */ |
780 | 780 | public function getMessage( $key, $code ) { |
781 | | - global $wgContLang; |
782 | | - |
783 | | - if ( $code && $wgContLang->getCode() !== $code ) { |
| 781 | + if ( $code && $this->getSourceLanguage() !== $code ) { |
784 | 782 | return TranslateUtils::getMessageContent( $key, $code ); |
785 | 783 | } else { |
786 | 784 | return TranslateUtils::getMessageContent( $key, false ); |