bugfix for wfBCP47 and code coverage
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 6 Feb 2011 14:47:35 +0000 (14:47 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 6 Feb 2011 14:47:35 +0000 (14:47 +0000)
commit8f45c9e03a568fcd7bf0478c438d6c60a943f70c
tree73f5df93c7f1bb7fd239724fd616ff68fa6d517b
parentda4f37facd1ba06a7329aeae683ab555dcb067d6
bugfix for wfBCP47 and code coverage

Language code are case insensitive. The BCP 47 recommands nice
formatting nonetheless. This patch enhance our formatting:
- tags preceded by the private tag 'x' are now lower case
- 4 letters tags are now lower case with first letter uper cased

Please note the RFC seems to have a bug for az-Arab-x-AZE-derbend
which should be az-Arab-x-aze-derbend .  I have changed our test
to reflect this and added a comment for later reference.
includes/GlobalFunctions.php
tests/phpunit/includes/GlobalTest.php