Update 'README.md'

This commit is contained in:
erinn 2019-03-18 13:14:23 -07:00
parent 28c19d7e4b
commit 4e17b11c49
1 changed files with 8 additions and 2 deletions

View File

@ -46,14 +46,20 @@ 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:
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