diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-04-30 09:46:04 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-01 10:16:06 +0200 |
commit | 9dd5d7924408c5126f4da08c717bf0e3fb29240c (patch) | |
tree | 92e44f9af04b4a7e5012c06488eb8b5bcb7cea2e /doc | |
parent | 58c01a376db3d7088d5c49921cea2c99cffd4118 (diff) |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/translation_process.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/translation_process.md b/doc/translation_process.md index 5d298dc485..2f0845a877 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/<file alias="\2">locale\/\1.qm<\/file>/'` 3. update `src/qt/Makefile.am` manually or via |