diff --git a/README.md b/README.md index 85c5b49f..f0e7c91b 100644 --- a/README.md +++ b/README.md @@ -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: + + \i18n/translation_de.qm\ + +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