From 33a9fb9f4b577f8417a51379ead9008763325107 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 28 Jun 2018 15:37:00 +0200 Subject: i18n examples: Update .ts files Change-Id: I3c1987bac8251b087fab98d6caaaba267dcc4be8 Reviewed-by: Oswald Buddenhagen --- examples/quick/demos/photoviewer/i18n/qml_de.ts | 10 +++++----- examples/quick/demos/photoviewer/i18n/qml_fr.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'examples/quick') diff --git a/examples/quick/demos/photoviewer/i18n/qml_de.ts b/examples/quick/demos/photoviewer/i18n/qml_de.ts index 92ab50a136..c36f169c6a 100644 --- a/examples/quick/demos/photoviewer/i18n/qml_de.ts +++ b/examples/quick/demos/photoviewer/i18n/qml_de.ts @@ -4,7 +4,7 @@ AlbumDelegate - + Remove Entfernen @@ -12,22 +12,22 @@ main - + Add Zufügen - + Edit Bearbeiten - + Quit Verlassen - + Back Zurück diff --git a/examples/quick/demos/photoviewer/i18n/qml_fr.ts b/examples/quick/demos/photoviewer/i18n/qml_fr.ts index 1edb5e0fe4..353082569a 100644 --- a/examples/quick/demos/photoviewer/i18n/qml_fr.ts +++ b/examples/quick/demos/photoviewer/i18n/qml_fr.ts @@ -4,7 +4,7 @@ AlbumDelegate - + Remove Supprimer @@ -12,22 +12,22 @@ main - + Add Ajouter - + Edit Éditer - + Quit - + Back Retour -- cgit v1.2.3 From 369998639b37b5de46ab1b19b3dd6ca6c2b77d34 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Thu, 28 Jun 2018 15:38:01 +0200 Subject: 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 Reviewed-by: Kai Koehne --- examples/quick/demos/photoviewer/i18n/qml_en.qm | Bin 0 -> 23 bytes examples/quick/demos/photoviewer/i18n/qml_en.ts | 4 ++++ examples/quick/demos/photoviewer/photoviewer.pro | 3 ++- examples/quick/demos/photoviewer/qml.qrc | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 examples/quick/demos/photoviewer/i18n/qml_en.qm create mode 100644 examples/quick/demos/photoviewer/i18n/qml_en.ts (limited to 'examples/quick') diff --git a/examples/quick/demos/photoviewer/i18n/qml_en.qm b/examples/quick/demos/photoviewer/i18n/qml_en.qm new file mode 100644 index 0000000000..9dad8dffce Binary files /dev/null and b/examples/quick/demos/photoviewer/i18n/qml_en.qm differ diff --git a/examples/quick/demos/photoviewer/i18n/qml_en.ts b/examples/quick/demos/photoviewer/i18n/qml_en.ts new file mode 100644 index 0000000000..5315a75526 --- /dev/null +++ b/examples/quick/demos/photoviewer/i18n/qml_en.ts @@ -0,0 +1,4 @@ + + + + diff --git a/examples/quick/demos/photoviewer/photoviewer.pro b/examples/quick/demos/photoviewer/photoviewer.pro index 68e43e13f9..885b81b4ad 100644 --- a/examples/quick/demos/photoviewer/photoviewer.pro +++ b/examples/quick/demos/photoviewer/photoviewer.pro @@ -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 diff --git a/examples/quick/demos/photoviewer/qml.qrc b/examples/quick/demos/photoviewer/qml.qrc index 8abefc6212..49f0b27e50 100644 --- a/examples/quick/demos/photoviewer/qml.qrc +++ b/examples/quick/demos/photoviewer/qml.qrc @@ -15,5 +15,6 @@ PhotoViewerCore/script/script.js i18n/qml_fr.qm i18n/qml_de.qm + i18n/qml_en.qm -- cgit v1.2.3