r70259 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70258‎ | r70259 | r70260 >
Date:08:23, 1 August 2010
Author:siebrand
Status:resolved (Comments)
Tags:
Comment:
Use localised language name.
Modified paths:
  • /trunk/extensions/Translate/SpecialTranslationChanges.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/SpecialTranslationChanges.php
@@ -120,6 +120,7 @@
121121 $index = -1;
122122 $output = '';
123123 $skin = $wgUser->getSkin();
 124+ $userLang = $wgUser->getCode;
124125
125126 $changes = $this->sort( $rows );
126127 foreach ( $changes as $class => $groups ) {
@@ -166,7 +167,7 @@
167168 )
168169 );
169170
170 - $languageName = TranslateUtils::getLanguageName( $language );
 171+ $languageName = TranslateUtils::getLanguageName( $language, false, $userLang );
171172 if ( !$languageName ) {
172173 $languageName = $language;
173174 }

Comments

#Comment by MaxSem (talk | contribs)   08:27, 1 August 2010
$userLang = $wgUser->getCode;

Are you sure that it's right?

#Comment by TheDJ (talk | contribs)   15:22, 1 August 2010

Fixed in r70263 apparently

Status & tagging log