diff options
author | Kai Koehne <kai.koehne@qt.io> | 2018-07-26 09:36:45 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2018-07-28 19:45:24 +0000 |
commit | 6126fcfbf477daa2d2f03faf91bbabd30a6edd3a (patch) | |
tree | eaa8ae1fcbe7fd25ded1b554a5e2c6fad8861dc4 /examples | |
parent | 2f06030e8039abf0bef1316af6edc8e283a96329 (diff) |
photoviewer: Add en translation dummy
We endorse using QTranslator::install(const QLocale&...), because
it tries loading translations from all QLocale::uiLanguages() instead
of the commonly used QLocale::system().name() setup.
Anyhow, the first method requires an English translation - otherwise
a second favorite language might be used.
Pave the way to making the switch by adding (empty) English translations
to our examples. EXTRA_TRANSLATIONS, in contrast to TRANSLATIONS, makes
sure that lupdate is not executed for this file.
Task-number: QTBUG-69196
Change-Id: Ie5e64c3499cc38fe5db4ab7dee68f0616be353cb
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/demos/photoviewer/i18n/qml_en.ts | 4 | ||||
-rw-r--r-- | examples/demos/photoviewer/photoviewer.pro | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/examples/demos/photoviewer/i18n/qml_en.ts b/examples/demos/photoviewer/i18n/qml_en.ts new file mode 100644 index 000000000..5315a7552 --- /dev/null +++ b/examples/demos/photoviewer/i18n/qml_en.ts @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="en"> +</TS> diff --git a/examples/demos/photoviewer/photoviewer.pro b/examples/demos/photoviewer/photoviewer.pro index 52f10e73b..b578810bc 100644 --- a/examples/demos/photoviewer/photoviewer.pro +++ b/examples/demos/photoviewer/photoviewer.pro @@ -14,6 +14,8 @@ SOURCES = *.qml \ TRANSLATIONS += i18n/qml_fr.ts \ i18n/qml_de.ts +EXTRA_TRANSLATIONS += i18n/qml_en.ts + RESOURCES += qml.qrc target.path = $$[QT_INSTALL_EXAMPLES]/demos/photoviewer |