http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70412

Revision: 70412
Author:   nikerabbit
Date:     2010-08-03 20:39:35 +0000 (Tue, 03 Aug 2010)

Log Message:
-----------
Follow up to r69185: add documentation for wfUILang()

Modified Paths:
--------------
    trunk/phase3/includes/GlobalFunctions.php

Modified: trunk/phase3/includes/GlobalFunctions.php
===================================================================
--- trunk/phase3/includes/GlobalFunctions.php   2010-08-03 20:33:41 UTC (rev 
70411)
+++ trunk/phase3/includes/GlobalFunctions.php   2010-08-03 20:39:35 UTC (rev 
70412)
@@ -563,6 +563,13 @@
        return $wgContLang;
 }
 
+/**
+ * Use this instead of $wgContLang, when working with user interface.
+ * User interface is currently hard coded according to wiki content language
+ * in many ways, especially regarding to text direction. There is lots stuff
+ * to fix, hence this function to keep the old behaviour unless the global
+ * $wgBetterDirectionality is enabled (or removed when everything works).
+ */
 function wfUILang() {
        global $wgBetterDirectionality;
        return wfGetLangObj( $wgBetterDirectionality ? false: true );



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to