Follow up to r69185: add documentation for wfUILang()
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 3 Aug 2010 20:39:35 +0000 (20:39 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 3 Aug 2010 20:39:35 +0000 (20:39 +0000)
includes/GlobalFunctions.php

index 8341be4..c1ed33f 100644 (file)
@@ -563,6 +563,13 @@ function wfGetLangObj( $langcode = false ) {
        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 );