* (bug 6480) Updates to German localisation
[lhc/web/wiklou.git] / languages / Language.php
index 52631f5..c528066 100644 (file)
@@ -322,7 +322,7 @@ class fakeConverter {
 
 class Language {
        var $mConverter;
-       function Language() {
+       function __construct() {
                $this->mConverter = new fakeConverter($this);
        }
 
@@ -855,7 +855,13 @@ class Language {
         * @return bool
         */
        function isRTL() { return false; }
-       function getDirMark() { return $this->isRTL() ? '‏' : '‎'; }
+
+       /**
+        * A hidden direction mark (LRM or RLM), depending on the language direction
+        *
+        * @return string
+        */
+       function getDirMark() { return $this->isRTL() ? "\xE2\x80\x8F" : "\xE2\x80\x8E"; }
 
        /**
         * To allow "foo[[bar]]" to extend the link over the whole word "foobar"
@@ -864,7 +870,6 @@ class Language {
         */
        function linkPrefixExtension() { return false; }
 
-
        function &getMagicWords() {
                global $wgMagicWordsEn;
                return $wgMagicWordsEn;
@@ -874,7 +879,7 @@ class Language {
        function getMagic( &$mw ) {
                $raw = $this->getMagicWords();
 
-               wfRunHooks( 'LanguageGetMagic', array( &$raw ) );
+               wfRunHooks( 'LanguageGetMagic', array( &$raw, $this->getCode() ) );
 
                if( !isset( $raw[$mw->mId] ) ) {
                        # Fall back to English if local list is incomplete