languages: Backtick "<em>" since it's meant as code instead of mark up
[lhc/web/wiklou.git] / languages / classes / LanguageKu.php
index 1c867d9..1fdebc2 100644 (file)
@@ -127,7 +127,8 @@ class KuConverter extends LanguageConverter {
                ' O' => 'ئۆ ',
                ' U' => 'ئو ',
                ' Û' => 'ئوو ',
-               # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu häufig, um sie als eyn zu interpretieren
+               # eyn erstmal deaktivieren, einfache Anführungsstriche sind einfach zu
+               # häufig, um sie als eyn zu interpretieren.
                # '\'' => 'ع',
 
 /*             # deactivated for now, breaks links i.e. in header of Special:Recentchanges :-(
@@ -159,8 +160,8 @@ class KuConverter extends LanguageConverter {
         *     names as they were
         *   - do not try to find variants for usernames
         *
-        * @param string $link
-        * @param Title $nt
+        * @param string &$link
+        * @param Title &$nt
         * @param bool $ignoreOtherCond
         */
        function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
@@ -179,26 +180,6 @@ class KuConverter extends LanguageConverter {
                }
        }
 
-       /**
-        * An ugly function wrapper for parsing Image titles
-        * (to prevent image name conversion)
-        *
-        * @param string $text
-        * @param bool $toVariant
-        *
-        * @return string
-        */
-       function autoConvert( $text, $toVariant = false ) {
-               global $wgTitle;
-               if ( is_object( $wgTitle ) && $wgTitle->getNamespace() == NS_FILE ) {
-                       $imagename = $wgTitle->getNsText();
-                       if ( preg_match( "/^$imagename:/", $text ) ) {
-                               return $text;
-                       }
-               }
-               return parent::autoConvert( $text, $toVariant );
-       }
-
        /**
         *  It translates text into variant, specials:
         *    - ommiting roman numbers