Merge branch 'master' of git.openprivacy.ca:cwtch.im/ui into ebf201903181652

This commit is contained in:
erinn 2019-03-18 16:52:51 -07:00
commit 1e72a59829
1 changed files with 10 additions and 2 deletions

View File

@ -46,14 +46,22 @@ Currently you will need to manually run tor first before running cwtch.im/ui. Us
## Translations
(If you'd like to add a new translation, feel free to open an issue and we can generate the .ts file for you to edit by hand, or in QT Linguist!)
### Add new translation
Edit `ui.pro` and add a new line in the variable definition for `TRANSLATIONS` like:
0. Install the language tools if you have not already (on linux: `sudo apt-get install qttools5-dev qttools-dev-tools`)
1. Edit `ui.pro` and add a new line in the variable definition for `TRANSLATIONS` like:
TRANSLATIONS = i18n/translation_en.ts \
i18n/translation_de.ts
Then to update and generate your new translation file, run `lupdate ui.pro` and you will find your new file in the `i18n/` directory.
2. Edit `qml.qrc` and add a new line near the other translation files like:
\<file>i18n/translation_de.qm\</file>
3. To update and generate your new translation file, run `lupdate ui.pro` and you will find your new file in the `i18n/` directory.
### Updating translations