Translation updates from translatewiki.net
[mediawiki.git] / languages / classes / LanguageTr.php
blobb6acea4b625e3bcb7c722d25d5d83cf9eaea1cb6
1 <?php
3 /**
4 * Turkish (Türkçe)
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
10 * and @bug 28040
11 * @ingroup Language
13 class LanguageTr extends Language {
15 /**
16 * @param $string string
17 * @return string
19 function ucfirst ( $string ) {
20 if ( strlen( $string ) && $string[0] == 'i' ) {
21 return 'İ' . substr( $string, 1 );
22 } else {
23 return parent::ucfirst( $string );
27 /**
28 * @param $string string
29 * @return mixed|string
31 function lcfirst ( $string ) {
32 if ( strlen( $string ) && $string[0] == 'I' ) {
33 return 'ı' . substr( $string, 1 );
34 } else {
35 return parent::lcfirst( $string );