6 * Turkish has two different i, one with a dot and another without a dot. They
7 * are totally different letters in this language, so we have to override the
8 * ucfirst and lcfirst methods.
9 * See http://en.wikipedia.org/wiki/Dotted_and_dotless_I
13 class LanguageTr
extends Language
{
15 function ucfirst ( $string ) {
16 if ( !empty( $string ) && $string[0] == 'i' ) {
17 return 'İ' . substr( $string, 1 );
19 return parent
::ucfirst( $string );
23 function lcfirst ( $string ) {
24 if ( !empty( $string ) && $string[0] == 'I' ) {
25 return 'ı' . substr( $string, 1 );
27 return parent
::lcfirst( $string );
32 function uc( $string ) {
33 $string = preg_replace( '/i/', 'İ', $string );
34 return parent
::uc( $string );
38 function lc( $string ) {
39 $string = preg_replace( '/I/', 'ı', $string );
40 return parent
::lc( $string );