summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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