}
}
- /**
- * @see bug 28040
- *
- * @param $string string
- * @param $first string|bool
- *
- * @return string
- */
- function uc( $string, $first = false ) {
- if ( strlen( $string ) ) {
- if ( $first ) {
- if ( $string[0] === 'i' ) {
- $string = 'İ' . substr( $string, 1 );
- }
- } else {
- $string = str_replace( 'i', 'İ', $string );
- }
- }
- return parent::uc( $string, $first );
- }
-
- /**
- * @see bug 28040
- *
- * @param $string string
- * @param $first string|bool
- *
- * @return string
- */
- function lc( $string, $first = false ) {
- if ( strlen( $string ) ) {
- if ( $first ) {
- if ( $string[0] == 'I' ) {
- $string = 'ı' . substr( $string, 1 );
- }
- } else {
- $string = str_replace( 'I', 'ı', $string );
- }
- }
- return parent::lc( $string, $first );
- }
-
}
+++ /dev/null
-!! test
-Bug31490 Turkish: ucfirst 'blah'
-!! options
-language=tr
-!! input
-{{ucfirst:blah}}
-!! result
-<p>Blah
-</p>
-!! end
-
-!! test
-Bug31490 Turkish: ucfirst 'ix'
-!! options
-language=tr
-!! input
-{{ucfirst:ix}}
-!! result
-<p>İx
-</p>
-!! end
-
-!! test
-Bug31490 Turkish: lcfirst 'BLAH'
-!! options
-language=tr
-!! input
-{{lcfirst:BLAH}}
-!! result
-<p>bLAH
-</p>
-!! end
-
-!! test
-Bug31490 Turkish: ucfırst (with a dotless i)
-!! options
-language=tr
-!! input
-{{ucfırst:blah}}
-!! result
-<p><a href="/index.php?title=%C5%9Eablon:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Şablon:Ucfırst:blah (sayfa mevcut değil)">Şablon:Ucfırst:blah</a>
-</p>
-!! end
-
-!! test
-Bug31490 ucfırst (with a dotless i) with English language
-!! options
-language=en
-!! input
-{{ucfırst:blah}}
-!! result
-<p><a href="/index.php?title=Template:Ucf%C4%B1rst:blah&action=edit&redlink=1" class="new" title="Template:Ucfırst:blah (page does not exist)">Template:Ucfırst:blah</a>
-</p>
-!! end
-