Merge "Create mediawiki.widgets and mw.widgets.TitleInputWidget in it"
[lhc/web/wiklou.git] / languages / classes / LanguageEo.php
index 39bdfb5..15fc8c0 100644 (file)
@@ -54,9 +54,9 @@ class LanguageEo extends Language {
         * editor behavior; the original server-side translation system dates to 2002-2003
         * when many browsers with really bad Unicode support were still in use.
         *
-        * @param string $in input character set
-        * @param string $out output character set
-        * @param string $string text to be converted
+        * @param string $in Input character set
+        * @param string $out Output character set
+        * @param string $string Text to be converted
         * @return string
         */
        function iconv( $in, $out, $string ) {
@@ -74,7 +74,7 @@ class LanguageEo extends Language {
        }
 
        /**
-        * @param $matches array
+        * @param array $matches
         * @return string
         */
        function strrtuxCallback( $matches ) {
@@ -91,7 +91,7 @@ class LanguageEo extends Language {
        }
 
        /**
-        * @param $matches array
+        * @param array $matches
         * @return string
         */
        function strrtxuCallback( $matches ) {
@@ -114,30 +114,6 @@ class LanguageEo extends Language {
                return strtr( $matches[1], $xu ) . strtr( $matches[2], $xu );
        }
 
-       /**
-        * @param $s string
-        * @return string
-        */
-       function checkTitleEncoding( $s ) {
-               # Check for X-system backwards-compatibility URLs
-               $ishigh = preg_match( '/[\x80-\xff]/', $s );
-               $isutf = preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
-                       '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s );
-
-               if ( $ishigh and !$isutf ) {
-                       # Assume Latin1
-                       $s = utf8_encode( $s );
-               } elseif ( preg_match( '/(\xc4[\x88\x89\x9c\x9d\xa4\xa5\xb4\xb5]' .
-                               '|\xc5[\x9c\x9d\xac\xad])/', $s )
-               ) {
-                       return $s;
-               }
-
-               // if( preg_match( '/[cghjsu]x/i', $s ) )
-               //      return $this->iconv( 'x', 'utf-8', $s );
-               return $s;
-       }
-
        function initEncoding() {
                global $wgEditEncoding;
                $wgEditEncoding = 'x';