r70412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70411‎ | r70412 | r70413 >
Date:20:39, 3 August 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Follow up to r69185: add documentation for wfUILang()
Modified paths:
  • /trunk/phase3/includes/GlobalFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/GlobalFunctions.php
@@ -563,6 +563,13 @@
564564 return $wgContLang;
565565 }
566566
 567+/**
 568+ * Use this instead of $wgContLang, when working with user interface.
 569+ * User interface is currently hard coded according to wiki content language
 570+ * in many ways, especially regarding to text direction. There is lots stuff
 571+ * to fix, hence this function to keep the old behaviour unless the global
 572+ * $wgBetterDirectionality is enabled (or removed when everything works).
 573+ */
567574 function wfUILang() {
568575 global $wgBetterDirectionality;
569576 return wfGetLangObj( $wgBetterDirectionality ? false: true );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69185Introduce $wgBetterDirectionality that lets us work on support for rtl ui in ...nikerabbit13:34, 8 July 2010

Status & tagging log