r53767 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53766‎ | r53767 | r53768 >
Date:21:12, 25 July 2009
Author:shinjiman
Status:deferred
Tags:
Comment:
Babel:
* Minor tweak for displaying the language code where comply with BCP 47 recommendations.
Modified paths:
  • /trunk/extensions/Babel/Babel.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Babel/Babel.class.php
@@ -259,7 +259,7 @@
260260
261261 // Generate the text displayed on the left hand side of the
262262 // box.
263 - $header = "[[{$this->_addFixes( $code,'portal' )}|$code]]<span class=\"mw-babel-box-level-$level\">-$level</span>";
 263+ $header = "[[{$this->_addFixes( $code,'portal' )}|" . wfBCP47( $code ) . "]]<span class=\"mw-babel-box-level-$level\">-$level</span>";
264264
265265 // Get MediaWiki supported language codes\names.
266266 $nativeNames = Language::getLanguageNames();

Status & tagging log