Please update CVS with the file: http://meta.wikimedia.org/wiki/LanguageTt.php
It's my implementation of the ucfirst and lcfirst functions for tt:, tr:, and az:
Check please
function ucfirst( $string ) { if (function_exists('mb_strtoupper')) { $firstChar = mb_substr($string,0,1); return (($firstChar == 'i') ? 'İ' : mb_strtoupper($firstChar)).mb_substr($string,1); } else { global $wikiUpperChars; $upperChars = array('i'=>'İ') + $wikiUpperChars; return preg_replace ( "/^([a-z]|[\xc0-\xff][\x80-\xbf]*)/e", "strtr ( "$1" , $upperChars )", $string ); } }
function lcfirst( $string ) { if (function_exists('mb_strtolower')) { $firstChar = mb_substr($string,0,1); return (($firstChar == 'I') ? 'ı' : mb_strtolower($firstChar)).mb_substr($string,1); } else { global $wikiLowerChars; $lowerChars = array('I'=>'ı') + $wikiLowerChars; return preg_replace ( "/^([A-Z]|[\xc0-\xff][\x80-\xbf]*)/e", "strtr ( "$1" , $lowerChars )", $string ); } }
Thanks for help http://tt.wikipedia.org/wiki/User_talk:Al_Beri
wikitech-l@lists.wikimedia.org