i18n examples: Add en translation dummies
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. Task-number: QTBUG-69196 Change-Id: Ie85be875e34e29e80c1693bbf477b962e35a7d87 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This commit is contained in:
parent
33a9fb9f4b
commit
369998639b
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en" sourcelanguage="en">
|
||||
</TS>
|
Binary file not shown.
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS>
|
||||
<TS version="2.1" language="en">
|
||||
</TS>
|
|
@ -10,7 +10,8 @@ SOURCES = *.qml \
|
|||
PhotoViewerCore/script/*.js
|
||||
}
|
||||
|
||||
TRANSLATIONS += i18n/qml_fr.ts \
|
||||
TRANSLATIONS += i18n/qml_en.ts \
|
||||
i18n/qml_fr.ts \
|
||||
i18n/qml_de.ts
|
||||
|
||||
RESOURCES += qml.qrc
|
||||
|
|
|
@ -15,5 +15,6 @@
|
|||
<file>PhotoViewerCore/script/script.js</file>
|
||||
<file>i18n/qml_fr.qm</file>
|
||||
<file>i18n/qml_de.qm</file>
|
||||
<file>i18n/qml_en.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
Loading…
Reference in New Issue