Fix i18n paver command wrt cleanup

This commit is contained in:
Sarina Canelake
2015-06-28 18:23:34 -04:00
parent 65d68a888f
commit 13dc7ed485

View File

@@ -184,6 +184,7 @@ def i18n_ltr():
@task
@needs(
"pavelib.i18n.i18n_clean",
"pavelib.i18n.i18n_transifex_pull",
"pavelib.i18n.i18n_extract",
"pavelib.i18n.i18n_dummy",
@@ -193,9 +194,7 @@ def i18n_robot_pull():
"""
Pull source strings, generate po and mo files, and validate
"""
sh('git clean -fdX conf/locale')
# sh('paver test_i18n') # TODO tests were removed from repo, but there should still be tests that cover the translations...
# Validate the recently pulled translations, and give a bail option
cmd = "i18n_tool validate"
print("\n\nValidating translations with `i18n_tool validate`...")
@@ -212,6 +211,14 @@ def i18n_robot_pull():
)
@task
def i18n_clean():
"""
Clean the i18n directory of artifacts
"""
sh('git clean -fdX conf/locale')
@task
@needs(
"pavelib.i18n.i18n_extract",