summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwhatsthis.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2018-07-05 17:12:18 +0200
committerKai Koehne <kai.koehne@qt.io>2018-07-12 08:54:33 +0000
commit9146432dc66d41f22548bbb425b61458d241d28e (patch)
treeea864d9e75532ae56906a0fa874d1ccc56519a7e /src/widgets/kernel/qwhatsthis.h
parent4e0404a6d2952ccb2c70d8dac95cd1b978779e4f (diff)
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>
Diffstat (limited to 'src/widgets/kernel/qwhatsthis.h')
0 files changed, 0 insertions, 0 deletions