From 4e17b11c49a4d6c7331c08acd126683324097cf6 Mon Sep 17 00:00:00 2001 From: erinn Date: Mon, 18 Mar 2019 13:14:23 -0700 Subject: [PATCH 1/2] Update 'README.md' --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 From b0027c9e0e9bb24b87eb3cc065d93cbe46d4b4c4 Mon Sep 17 00:00:00 2001 From: erinn Date: Mon, 18 Mar 2019 13:17:47 -0700 Subject: [PATCH 2/2] Update 'README.md' --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index f0e7c91b..c24e5df7 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,8 @@ Currently you will need to manually run tor first before running cwtch.im/ui. Us ### Add new translation +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 \