Fix i18n paver command wrt cleanup
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user