From 6126fcfbf477daa2d2f03faf91bbabd30a6edd3a Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 26 Jul 2018 09:36:45 +0200 Subject: 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 --- examples/demos/photoviewer/i18n/qml_en.ts | 4 ++++ examples/demos/photoviewer/photoviewer.pro | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 examples/demos/photoviewer/i18n/qml_en.ts (limited to 'examples') 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 @@ + + + + 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 -- cgit v1.2.3