From 0a7ccc1b4570e066d5d70ee8b71979d2268d2050 Mon Sep 17 00:00:00 2001 From: Igor Kuzmenko Date: Wed, 19 Jul 2017 15:25:18 +0200 Subject: [PATCH] Updates instructions of setting up Transifex It took me a while to understand those commands. After I successfully did, I thought it makes sense to update these instructions with comments. --- docs/assisting-with-translations.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/docs/assisting-with-translations.md b/docs/assisting-with-translations.md index 3425a121..6a166ffa 100644 --- a/docs/assisting-with-translations.md +++ b/docs/assisting-with-translations.md @@ -49,10 +49,22 @@ you don't want translators to redo all their work again, you can use the Transifex client to pull translations, update en.yml and push back all translations at once: + + # Init Transifex project tx init - tx set --auto-remote https://www.transifex.com/projects/p/bitcoinorg/ + + # Setup Transifex local client to use a project created on Transifex + tx set --auto-remote https://www.transifex.com/bitcoinorg/bitcoinorg/ + + # Download all translations tx pull -a -s --skip - tx set --source -r bitcoinorg.bitcoinorg -l en -translations/bitcoinorg.bitcoinorg/en.yml - (update en.yml) + + # Set the translations/bitcoinorg.bitcoinorg/en.yml file + # as a source that will be pushed back to the server after + # updating the translation + tx set --source -r bitcoinorg.bitcoinorg -l en translations/bitcoinorg.bitcoinorg/en.yml + + # (update en.yml) + + # Push changes back to Transifex tx push -s -t -f --skip --no-interactive