(bug 14312) Update LanguageKaa.php for handling transform issues
authorRaimond Spekking <raymond@users.mediawiki.org>
Wed, 28 May 2008 19:35:02 +0000 (19:35 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Wed, 28 May 2008 19:35:02 +0000 (19:35 +0000)
RELEASE-NOTES
languages/classes/LanguageKaa.php

index fbb0b04..91b998c 100644 (file)
@@ -307,7 +307,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   for better compatibility and keeping the links shorter. Avoids problem
   with corrupt links in Gmail on IE 6.
 * (bug 14273) Fix for HTTP Accept header parsing with spaces as from Konqueror
-
+* (bug 14312) Update LanguageKaa.php for handling transform issues with i to İ
+  and I to ı
 
 === API changes in 1.13 ===
 
index b7e5cd9..f9f61db 100644 (file)
@@ -19,13 +19,31 @@ class LanguageKaa extends Language {
                /* Full code of function convertGrammar() is in development. Updates coming soon. */
                return $word;
        }
-
+       /*
+        * It fixes issue with ucfirst for transforming 'i' to 'İ'
+        *
+        */
        function ucfirst ( $string ) {
                if ( $string[0] == 'i' ) {
-                       return 'İ' . substr( $string, 1 );
+                       $string = 'İ' . substr( $string, 1 );
+               } else {
+                       $string = parent::ucfirst( $string );
+               }
+               return $string;
+
+       }
+
+       /*
+        * It fixes issue with  lcfirst for transforming 'I' to 'ı'
+        *
+        */
+       function lcfirst ( $string ) {
+               if ( $string[0] == 'I' ) {
+                       $string = 'ı' . substr( $string, 1 );
                } else {
-                       return parent::ucfirst( $string );
+                       $string = parent::lcfirst( $string );
                }
+               return $string;
        }
 
        /**
@@ -39,4 +57,4 @@ class LanguageKaa extends Language {
                }
        }
 
-}
\ No newline at end of file
+}