zulip/tools/i18n/sync-translations
Tim Abbott a49e685d97 i18n: Adjust Transifex sync-translations download mode.
It appears that some server-side change to Transifex resulted in the
"onlytranslated" mode deleting some (all?) strings from django.po files that
were not translated.

Testing determined that the "translator" mode appears to now be the
only mode that works with both our django.po and translations.json
files (We want to avoid both copying the English strings and deleting
strings), so we're switching to that.

Background is available here:
https://chat.zulip.org/#narrow/stream/3-backend/topic/4.2Ex.20branch.20translations.20sync/near/1187324
2021-06-02 09:48:58 -07:00

13 lines
302 B
Bash
Executable File

#!/usr/bin/env bash
# See https://zulip.readthedocs.io/en/latest/translating/internationalization.html
# for background on this subsystem.
set -e
set -x
./manage.py makemessages --all
tx pull -a -f --mode=translator --minimum-perc=5 "$@"
./manage.py compilemessages
./tools/i18n/process-mobile-i18n