From 3691410d1061aaa01faa083fb497480201e87efb Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Wed, 28 May 2008 19:35:02 +0000 Subject: [PATCH] (bug 14312) Update LanguageKaa.php for handling transform issues --- RELEASE-NOTES | 3 ++- languages/classes/LanguageKaa.php | 26 ++++++++++++++++++++++---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index fbb0b043ae..91b998caea 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/languages/classes/LanguageKaa.php b/languages/classes/LanguageKaa.php index b7e5cd90cb..f9f61dbd73 100644 --- a/languages/classes/LanguageKaa.php +++ b/languages/classes/LanguageKaa.php @@ -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 +} -- 2.20.1