mirror of https://github.com/zulip/zulip.git
19 lines
515 B
Bash
Executable File
19 lines
515 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 "$@"
|
|
# For readability, we prefer UTF-8, not ascii, in these JSON files.
|
|
find ./locale \
|
|
-regextype sed \
|
|
-regex '^\./locale/.*/\(mobile\|translations\).json$' \
|
|
-exec ./tools/i18n/unescape-contents {} \;
|
|
|
|
./manage.py compilemessages
|
|
./tools/i18n/process-mobile-i18n
|