diff --git a/docs/translating.md b/docs/translating.md index 2a6bdf4205..c7679a9e1f 100644 --- a/docs/translating.md +++ b/docs/translating.md @@ -103,8 +103,8 @@ translating, you should check out the 4. Translators translate the strings in Transifex. 5. The translations are downloaded back into the codebase by a - maintainer, using `tx pull -a -f --mode=developer` (since we don't - use the Transifex review flow). + maintainer, using `tools/sync-translations` (which invokes `tx + pull`, internally). ## Translators' workflow diff --git a/tools/sync-translations b/tools/sync-translations new file mode 100755 index 0000000000..2b4616bb8c --- /dev/null +++ b/tools/sync-translations @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +set -e +set -x + +./manage.py makemessages +tx pull -a -f --mode=onlytranslated --minimum-perc=5 +./manage.py compilemessages