follow up r60763
[lhc/web/wiklou.git] / languages / Language.php
index 6aa9c9b..72b694f 100644 (file)
@@ -34,11 +34,12 @@ if( function_exists( 'mb_strtoupper' ) ) {
  */
 class FakeConverter {
        var $mLang;
+       var $mConvRuleTitle;
        function FakeConverter($langobj) {$this->mLang = $langobj;}
        function autoConvertToAllVariants($text) {return $text;}
        function convert($t, $i) {return $t;}
        function getVariants() { return array( $this->mLang->getCode() ); }
-       function getPreferredVariant() {return $this->mLang->getCode(); }
+       function getPreferredVariant() { return $this->mLang->getCode(); }
        function findVariantLink(&$l, &$n, $ignoreOtherCond = false) {}
        function getExtraHashOptions() {return '';}
        function getParsedTitle() {return '';}
@@ -2664,4 +2665,11 @@ class Language {
                $text = $this->getMessageFromDB( $msg );
                return str_replace( '$1', $this->formatNum( $size ), $text );
        }
+
+       /**
+        * Get the conversion rule title, if any.
+        */
+       function getConvRuleTitle() {
+               return $this->mConverter->mConvRuleTitle;
+       }
 }