Run compilejsi18n when we make dummy strings

This commit is contained in:
Ned Batchelder
2016-03-30 16:32:37 -04:00
parent a368982c14
commit e2109b97db

View File

@@ -75,6 +75,10 @@ def i18n_dummy():
# Need to then compile the new dummy strings
sh("i18n_tool generate")
# Generate static i18n JS files.
for system in ['lms', 'cms']:
sh(django_cmd(system, DEFAULT_SETTINGS, 'compilejsi18n'))
@task
def i18n_validate_gettext():
@@ -193,10 +197,6 @@ def i18n_robot_pull():
print "\n\nValidating translations with `i18n_tool validate`..."
sh("i18n_tool validate")
# Generate static i18n JS files.
for system in ['lms', 'cms']:
sh(django_cmd(system, DEFAULT_SETTINGS, 'compilejsi18n'))
con = raw_input("Continue with committing these translations (y/n)? ")
if con.lower() == 'y':