Fixes for r84057 LanguageTr uc/lc:
authorTim Starling <tstarling@users.mediawiki.org>
Thu, 6 Oct 2011 02:31:38 +0000 (02:31 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Thu, 6 Oct 2011 02:31:38 +0000 (02:31 +0000)
commit4b524499703763110847ebf2881b7e5b4a052119
tree6a6bed18d2befe015f1c13b91c69b88314876b6c
parentf9af93f5afe6d811563a67928c6ff37ac63d435d
Fixes for r84057 LanguageTr uc/lc:
* Fixed inappropriate use of empty(), see style guide
* Made uc() and lc() respect the $first parameter. Not doing this completely broke the Turkish wikipedia, sending links like [[İngilizce]] to [[İngİlİzce]].
* Use str_replace() instead of preg_replace(). It's not necessary to use a unicode-aware replacement algorithm to do UTF-8 string replacements, due to details of the UTF-8 encoding format. I'm not sure how Hashar concluded that strtr() will produce garbage.
languages/classes/LanguageTr.php