r91811 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91810‎ | r91811 | r91812 >
Date:22:30, 9 July 2011
Author:robin
Status:deferred
Tags:
Comment:
add lang & dir attributes for translations
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialTranslations.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialTranslations.php
@@ -235,7 +235,8 @@
236236 $leftColumn = $tools['history'] . $tools['edit'];
237237 $out .= Xml::tags( 'tr', array( 'class' => $class ),
238238 Xml::tags( 'td', null, $leftColumn ) .
239 - Xml::tags( 'td', null, TranslateUtils::convertWhiteSpaceToHTML( $pageInfo[$key][0] ) )
 239+ Xml::tags( 'td', array( 'lang' => $code, 'dir' => Language::factory( $code )->getDir() ),
 240+ TranslateUtils::convertWhiteSpaceToHTML( $pageInfo[$key][0] ) )
240241 );
241242 }
242243

Status & tagging log