From f1fded08ab8aaaeb0498ba0c9247e5f5073216fc Mon Sep 17 00:00:00 2001 From: Umair Khan Date: Mon, 3 Jul 2017 10:39:07 +0500 Subject: [PATCH] check-frontend-i18n: Generate only English translations. --- tools/check-frontend-i18n | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/check-frontend-i18n b/tools/check-frontend-i18n index 5b33f823d5..32ca48dc06 100755 --- a/tools/check-frontend-i18n +++ b/tools/check-frontend-i18n @@ -10,6 +10,7 @@ sanity_check.check_venv(__file__) import json import os import sys +import subprocess sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from scripts.lib.zulip_tools import WARNING, FAIL, ENDC @@ -23,6 +24,8 @@ def find_handlebars(translatable_strings): return errored if __name__ == '__main__': + subprocess.call(['./manage.py', 'makemessages', '--locale', 'en'], stderr=subprocess.STDOUT) + with open('static/locale/en/translations.json') as f: data = json.load(f)