summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-05-12 19:06:29 +0200
committerKatja Marttila <katja.marttila@qt.io>2017-05-15 11:41:17 +0000
commitd272c89176f4de57212579b57190ea64b19add12 (patch)
tree97fc360f9691a698492aa25ca1ea149cafef2182
parent0b9a1d0556b29eebf2ea138aca8d8411a74958b2 (diff)
update instructions for adding and updating translations
this also obsoletes the file list in src.pro, so it is deleted. Change-Id: Ic3f7499e710e35bd785c8041c6c53e937c21092e Reviewed-by: Katja Marttila <katja.marttila@qt.io>
-rw-r--r--src/sdk/translations/README23
-rw-r--r--src/src.pro10
2 files changed, 12 insertions, 21 deletions
diff --git a/src/sdk/translations/README b/src/sdk/translations/README
index 35da60d6a..2bade2c54 100644
--- a/src/sdk/translations/README
+++ b/src/sdk/translations/README
@@ -2,16 +2,17 @@ You need to have a Qt translation for your new language,
otherwise your language won't be loaded at runtime.
To add a new language:
-1) Inside src/sdk/sdk.pro:
- add your language into IB_LANGUAGES and QT_LANGUAGES.
- QT_LANGUAGES contains base name of the Qt translation file.
-2) Add Installer Framework translation filename into:
- src/src.pro
-3) Add Installer Framework and Qt messages (.qm) filenames into:
- src/sdk/installerbase.qrc
+1) Run 'cd src/sdk' (change to the parent directory of this file)
+2) Run 'make ts-untranslated'
+3) Rename translations/untranslated.ts to translations/<lang>.ts
+4) Run 'make qmake'
+5) Do your translation. Just run 'make' whenever you want to test it.
+6) Run 'make commit-ts'
+7) Submit the translation for review
-In order to provide an update to translations, according to changes done in sources, run:
+To update an existing translation, just run 'make ts-<lang>' instead
+of steps 2) to 4).
-lupdate installerfw.pro
-
-in a root directory.
+More information is available at https://wiki.qt.io/Qt_Localization -
+these instructions apply here equally, except for the different
+directory names.
diff --git a/src/src.pro b/src/src.pro
index 98d9facc6..b963be275 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -1,13 +1,3 @@
TEMPLATE = subdirs
SUBDIRS += libs sdk
sdk.depends = libs
-
-TRANSLATIONS += sdk/translations/de.ts \
- sdk/translations/en.ts \
- sdk/translations/es.ts \
- sdk/translations/fr.ts \
- sdk/translations/ja.ts \
- sdk/translations/pl.ts \
- sdk/translations/ru.ts \
- sdk/translations/zh_cn.ts \
- sdk/translations/it.ts