Check LANGUAGE as well in QSystemLocale::fallbackLocale
authorMike FABIAN <maiku.fabian@gmail.com>
Mon, 4 Jun 2012 15:53:34 +0000 (17:53 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jun 2012 13:29:34 +0000 (15:29 +0200)
commit897e19f95ee91ec21bb9dd9f3157ee7333c9018f
tree66f35a8c87bc698c17562ab2beba4a22e1bb775e
parent7dfee3ffc5129307217eb949698c5088a4561642
Check LANGUAGE as well in QSystemLocale::fallbackLocale

Because QSystemLocale::fallbackLocale() is about UI languages,
it makes sense to check LANGUAGE as well if appropriate.
Adapt tst_qlocale.cpp accordingly.

Suggested by Oswald Buddenhagen.

Change-Id: Ib2c9674081809e3251be4e34456b05210eebc010
Reviewed-by: Oswald Buddenhagen
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qlocale_unix.cpp
tests/auto/corelib/tools/qlocale/tst_qlocale.cpp