i18n: Retrieve mobile translations.

This commit also adds a tool to push translation sources to Transifex.
This tool makes sure that we don't push mobile source file. Mobile
source file is supposed to be handled from Zulip-Mobile repo.
This commit is contained in:
Umair Khan 2017-12-22 13:10:31 +05:00 committed by Tim Abbott
parent 53e4dc1a46
commit 8700e8aeaf
3 changed files with 13 additions and 1 deletions

View File

@ -13,3 +13,9 @@ source_file = static/locale/en/translations.json
source_lang = en source_lang = en
type = KEYVALUEJSON type = KEYVALUEJSON
file_filter = static/locale/<lang>/translations.json file_filter = static/locale/<lang>/translations.json
[zulip.messages]
source_file = static/locale/en/mobile.json
source_lang = en
type = KEYVALUEJSON
file_filter = static/locale/<lang>/mobile.json

View File

@ -98,7 +98,7 @@ translating, you should check out the
contains a translated text. contains a translated text.
3. Those resource files are uploaded to Transifex by a maintainer using the 3. Those resource files are uploaded to Transifex by a maintainer using the
`tx push -s -a` command. `./tools/push-translations` command.
4. Translators translate the strings in Transifex. 4. Translators translate the strings in Transifex.

6
tools/push-translations Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -e
set -x
tx push -s -r zulip.djangopo,zulip.translationsjson