36 $userLang = $this->context->getLanguage()->getCode();
37 $params = parent::getMessageParameters();
40 $oldLang = $params[3];
41 $kOld = strrpos( $oldLang,
'[' );
43 $oldLang = substr( $oldLang, 0, $kOld );
46 $newLang = $params[4];
47 $kNew = strrpos( $newLang,
'[' );
49 $newLang = substr( $newLang, 0, $kNew );
53 $languageNameUtils = MediaWikiServices::getInstance()->getLanguageNameUtils();
54 $logOld = $languageNameUtils->getLanguageName( $oldLang, $userLang )
55 .
' (' . $oldLang .
')';
56 $logNew = $languageNameUtils->getLanguageName( $newLang, $userLang )
57 .
' (' . $newLang .
')';
60 $params[3] = !$kOld ? $logOld : $logOld .
' [' . $this->
msg(
'default' ) .
']';
61 $params[4] = !$kNew ? $logNew : $logNew .
' [' . $this->
msg(
'default' ) .
']';