qt6-bb10/tests/auto/corelib/kernel/qtranslator
Kai Koehne 9146432dc6 Allow loading of empty translation files
Do not return false for loading an empty .qm file - that is, a valid
file without any translations. We're already shipping empty .qm
files for English translations of Qt since a while, mainly as a
stop for the QTranslator::load(const QLocale &, ...) logic.

Note that QCoreApplication::installTranslator() will still return
false for an empty translation file - which is ok, because it
arguably does not make much sense to install it.

[ChangeLog][QtCore][QTranslator] It is now possible to load qm files
without any translations. This is particularly useful for the
language the untranslated strings are written in; logic to
load translations can now handle the source language like all
other languages.

Task-number: QTBUG-31031
Change-Id: Ibcb84aa755538cb2fa21b14f8635295a58440bbb
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-07-12 08:54:33 +00:00
..
.gitignore Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
android_testdata.qrc Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
dependencies_la.qm Enable modularization of translation files. 2012-07-12 18:30:35 +02:00
dependencies_la.ts Enable modularization of translation files. 2012-07-12 18:30:35 +02:00
hellotr_empty.qm Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
hellotr_empty.ts Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
hellotr_la.qm Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
hellotr_la.ts Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
msgfmt_from_po.qm Moving relevant tests to corelib/kernel 2011-09-01 12:42:14 +02:00
qtranslator.pro Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
qtranslator.qrc Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
tst_qtranslator.cpp Allow loading of empty translation files 2018-07-12 08:54:33 +00:00