use the new form of QTranslator::load() for more flexibility
authorShawn Rutledge <shawn.rutledge@digia.com>
Thu, 4 Sep 2014 12:29:21 +0000 (14:29 +0200)
committerShawn Rutledge <shawn.rutledge@digia.com>
Wed, 1 Oct 2014 13:14:23 +0000 (15:14 +0200)
commit427646b8d7c52e5b84240e07ffd391217ce3bfa8
treef02ed979b7f0c0b3620689bf921f040eb87c00b3
parentb9f143945982ae1775c69b9a09dc5e3912a17324
use the new form of QTranslator::load() for more flexibility

As the docs explain, the variant of QTranslator::load() taking a
const QLocale& is better because it "uses QLocale::uiLanguages()
and not simply the locale name, which refers to the formatting of
dates and numbers and not necessarily the UI language."  And, using
a default-constructed QLocale permits QLocale::setDefault() to
override the system locale, so for example an application's
main.cpp can do that before constructing a QQmlApplicationEngine.

Task-number: QTBUG-7329
Change-Id: Ia29a4c894087c92b071c0fe484728866f2660fe6
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
examples/quick/demos/photoviewer/main.cpp
src/qml/qml/qqmlapplicationengine.cpp
tools/qml/main.cpp
tools/qmlscene/main.cpp