Language::isValidBuiltInCode() should not accept uppercase input
authorChad Horohoe <chadh@wikimedia.org>
Wed, 16 Jul 2014 18:13:56 +0000 (11:13 -0700)
committerChad <chadh@wikimedia.org>
Wed, 16 Jul 2014 18:20:22 +0000 (18:20 +0000)
commitfca0d37a2c9822f7edaaae86570b2811b7026377
tree16d94bb29e9868f6c69f06ce8ea2b9415991a7e1
parentd9385014fe383d5e2382b3def4479cf583336ae0
Language::isValidBuiltInCode() should not accept uppercase input

The results of this function are used to decide whether a code is
valid for loading an i18n file without any further normalization.

Partially reverts 93348f3 which made the regular expression case-
insensitive. Per IRC discussion, language codes should always be
lowercase and it's up to callers to deal with that.

Change-Id: I8975c3374a37935080d9f7eca6a602e32f67a87b
languages/Language.php
tests/phpunit/languages/LanguageTest.php