diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2017-05-12 19:06:29 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2017-05-15 11:41:17 +0000 |
commit | d272c89176f4de57212579b57190ea64b19add12 (patch) | |
tree | 97fc360f9691a698492aa25ca1ea149cafef2182 /src/sdk | |
parent | 0b9a1d0556b29eebf2ea138aca8d8411a74958b2 (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>
Diffstat (limited to 'src/sdk')
-rw-r--r-- | src/sdk/translations/README | 23 |
1 files changed, 12 insertions, 11 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. |