qt6-bb10/tests/auto/corelib/kernel/qtranslator
Kai Koehne e541a3f099 QTranslator: Expose language of translation file
This allows for instance to show the current UI language in the UI,
or to load additional translations that match the .qm file by other
means.

This is especially useful in the case of QTranslator::load(QLocale(),
...), in which case different language and country combinations might
be tried.

Another option is to inspect the file name via QTranslator::filePath();
however, this is more error-prone, and might also miss information
(if the .qm file name doesn't have a country suffix, or no suffix at
all).

Change-Id: I6f565d53d8f50e21241ccae6c4de264747ac8f81
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2020-02-10 15:14:55 +00:00
..
.gitignore
android_testdata.qrc Allow loading of empty translation files 2018-07-12 08:54:33 +00:00
dependencies_la.qm
dependencies_la.ts
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 QTranslator: Expose language of translation file 2020-02-10 15:14:55 +00:00
hellotr_la.ts
msgfmt_from_po.qm
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 QTranslator: Expose language of translation file 2020-02-10 15:14:55 +00:00