qt5base-lts/tests/auto
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
..
android Updated license headers 2016-01-21 18:55:18 +00:00
bic/data Add binary compatibility files for 5.11 for QtBase 2018-06-05 06:00:28 +00:00
cmake CMake: Restore qt5_use_modules() function 2018-06-15 07:29:09 +00:00
concurrent Merge remote-tracking branch 'origin/5.11' into dev 2018-02-16 08:54:58 +01:00
corelib Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
dbus Support interactive authorization flag in DBusMessage 2018-07-10 19:46:40 +00:00
gui Merge remote-tracking branch 'origin/5.11' into dev 2018-07-02 11:23:45 +02:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake
network QDtls - handle server-side timeouts 2018-07-05 13:39:46 +00:00
opengl tst_QGL: Use qWaitForWindowExposed() 2018-04-11 06:05:46 +00:00
other Merge remote-tracking branch 'origin/5.11' into dev 2018-07-02 11:23:45 +02:00
printsupport Merge remote-tracking branch 'origin/5.11' into dev 2018-05-03 14:50:22 +02:00
shared Remove workaround for potentially unavailable pasteboard in macOS 2017-03-07 01:04:46 +00:00
sql tst_QSqlThread: match #if-ery on declaration to use 2018-07-05 13:39:02 +00:00
testlib Merge remote-tracking branch 'origin/5.11' into dev 2018-07-02 11:23:45 +02:00
tools qmake: make argument validation of built-ins data driven 2018-06-27 17:23:57 +00:00
widgets tests: port tst_QGraphicsProxyWidget to QTEST_QPA_MOUSE_HANDLING 2018-07-07 13:23:17 +00:00
xml Don't indefinitely wait for data if it was able to read some data 2018-01-24 05:54:31 +00:00
auto.pro winrt: Skip network auto tests for now 2018-06-22 05:02:39 +00:00
network-settings.h Docker-based test servers for network-related Qt autotests 2018-07-05 14:13:36 +00:00
testserver.pri Enable mDNS service discovery in Docker-based test servers 2018-07-10 15:25:14 +00:00