Revision: 46256
Author:   malafaya
Date:     2009-01-26 12:49:56 +0000 (Mon, 26 Jan 2009)

Log Message:
-----------
Wikidata RTL whoes resolved

Modified Paths:
--------------
    trunk/extensions/Wikidata/App.php

Modified: trunk/extensions/Wikidata/App.php
===================================================================
--- trunk/extensions/Wikidata/App.php   2009-01-26 12:32:24 UTC (rev 46255)
+++ trunk/extensions/Wikidata/App.php   2009-01-26 12:49:56 UTC (rev 46256)
@@ -208,10 +208,12 @@
                
        $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)
+       # malafaya: Set RTL according to user language
+       global $wgLang, $wgOut;
+       if ($wgLang->isRTL())
+       {
+               $wgOut->addHTML('<style type="text/css">/*<![CDATA[*/ @import 
"/index.php?title=MediaWiki:Gadget-rtl.css&action=raw&ctype=text/css"; 
/*]]>*/</style>');
+       }
 
        return true;
 }



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to