Revision: 46252
Author: malafaya
Date: 2009-01-26 11:18:11 +0000 (Mon, 26 Jan 2009)
Log Message:
-----------
Base for RTL support on Wikidata
Modified Paths:
--------------
trunk/extensions/Wikidata/App.php
Modified: trunk/extensions/Wikidata/App.php
===================================================================
--- trunk/extensions/Wikidata/App.php 2009-01-26 11:07:43 UTC (rev 46251)
+++ trunk/extensions/Wikidata/App.php 2009-01-26 11:18:11 UTC (rev 46252)
@@ -208,6 +208,11 @@
$wgRecordSetLanguage = 0;
+ # malafaya: This is a hack to set page RTL according to user language
prefs
+ global $wgLang, $wgContLang, $wgIsUserRtl;
+ $wgIsUserRtl = $wgLang->isRTL();
+ $wgContLang = $wgLang; // Set page contents language the same as user
language (it will only affect RTL header)
+
return true;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs