(bug 14312) Update LanguageKaa.php for handling transform issues
This commit is contained in:
parent
dde0e353ee
commit
3691410d10
2 changed files with 24 additions and 5 deletions
|
|
@ -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 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
return parent::ucfirst( $string );
|
||||
$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 {
|
||||
$string = parent::lcfirst( $string );
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -39,4 +57,4 @@ class LanguageKaa extends Language {
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue