r46252 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46251‎ | r46252 | r46253 >
Date:11:18, 26 January 2009
Author:malafaya
Status:deferred
Tags:
Comment:
Base for RTL support on Wikidata
Modified paths:
  • /trunk/extensions/Wikidata/App.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/App.php
@@ -208,6 +208,11 @@
209209
210210 $wgRecordSetLanguage = 0;
211211
 212+ # malafaya: This is a hack to set page RTL according to user language prefs
 213+ global $wgLang, $wgContLang, $wgIsUserRtl;
 214+ $wgIsUserRtl = $wgLang->isRTL();
 215+ $wgContLang = $wgLang; // Set page contents language the same as user language (it will only affect RTL header)
 216+
212217 return true;
213218 }
214219

Status & tagging log