From 58c01a376db3d7088d5c49921cea2c99cffd4118 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 30 Apr 2014 09:30:04 +0200 Subject: qt: add transifex configuration file This is a project-wide configuration file and should be the same for everyone. Also remove mention of creating it yourself from the translation process. --- doc/translation_process.md | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'doc') diff --git a/doc/translation_process.md b/doc/translation_process.md index 4b7b19f82..5d298dc48 100644 --- a/doc/translation_process.md +++ b/doc/translation_process.md @@ -71,28 +71,8 @@ We are using https://transifex.com as a frontend for translating the client. https://www.transifex.com/projects/p/bitcoin/resource/tx/ The "Transifex client" (see: http://support.transifex.com/customer/portal/topics/440187-transifex-client/articles) -will help with fetching new translations from Transifex. Use the following -config to be able to connect with the client: - -### .tx/config - - [main] - host = https://www.transifex.com - - [bitcoin.tx] - file_filter = src/qt/locale/bitcoin_.ts - source_file = src/qt/locale/bitcoin_en.ts - source_lang = en - -### .tx/config (for Windows) - - [main] - host = https://www.transifex.com - - [bitcoin.tx] - file_filter = src\qt\locale\bitcoin_.ts - source_file = src\qt\locale\bitcoin_en.ts - source_lang = en +will help with fetching new translations from Transifex. The Transifex configuration (`.tx/config`) +is part of the repository. It is also possible to directly download new translations one by one from the Transifex website. -- cgit v1.2.3 From 9dd5d7924408c5126f4da08c717bf0e3fb29240c Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 30 Apr 2014 09:46:04 +0200 Subject: devtools: add a script to fetch and postprocess translations Run this script from the root of the repository to update all translations from transifex. It will do the following automatically: - create a transifex configuration file - fetch all translations - post-process them into valid and committable format --- doc/translation_process.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/translation_process.md b/doc/translation_process.md index 5d298dc48..2f0845a87 100644 --- a/doc/translation_process.md +++ b/doc/translation_process.md @@ -71,14 +71,15 @@ We are using https://transifex.com as a frontend for translating the client. https://www.transifex.com/projects/p/bitcoin/resource/tx/ The "Transifex client" (see: http://support.transifex.com/customer/portal/topics/440187-transifex-client/articles) -will help with fetching new translations from Transifex. The Transifex configuration (`.tx/config`) +is used to fetch new translations from Transifex. The configuration for this client (`.tx/config`) is part of the repository. -It is also possible to directly download new translations one by one from the Transifex website. +Do not directly download translations one by one from the Transifex website, as we do a few +postprocessing steps before committing the translations. ### Fetching new translations -1. `tx pull -a` +1. `python contrib/devtools/update-translations.py` 2. update `src/qt/bitcoin.qrc` manually or via `ls src/qt/locale/*ts|xargs -n1 basename|sed 's/\(bitcoin_\(.*\)\).ts/locale\/\1.qm<\/file>/'` 3. update `src/qt/Makefile.am` manually or via -- cgit v1.2.3