bug 28040 Turkish: properly handle dotted and dotless i
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 15 Mar 2011 21:56:54 +0000 (21:56 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 15 Mar 2011 21:56:54 +0000 (21:56 +0000)
commit3e6e06a3bb2bd5ef8158f7eefb4f7c35040d1870
tree7a965d96de0f86edd7f7c7d4f71e21e63fb0af51
parentffb2694f920b8e12040c5bb293bb6f7ad1517a41
bug 28040 Turkish: properly handle dotted and dotless i

As mentioned by Bawolff on code review, r83970 only handled case change
of the first character lacking full strings support.

This patch override the uc and lc methods for the Turkish language (tr)
using preg_replace() which know about unicode. Other possible choices
would have been:
 - strtr() =>  outputs garbage
 - mbstring => can not know we handle turkish and transform i to I!

I have amended the RELEASE-NOTES to reflect this patch.

Some new tests are added as well to cover the regular functions as
well as the specific Turkish overriding. Result in testdox:

LanguageTr
[x] Change case of first char being dotted and dotless i
[x] Language tr lower casing override
[x] Language tr upper casing override
[x] Upper casing of a string with dotted and dot less i
[x] Lower casing of a string with dotted and dot less i
RELEASE-NOTES
languages/classes/LanguageTr.php
tests/phpunit/languages/LanguageTrTest.php