From 13dc7ed485e2f32df9cc5f96423900f6e114825d Mon Sep 17 00:00:00 2001 From: Sarina Canelake Date: Sun, 28 Jun 2015 18:23:34 -0400 Subject: [PATCH] Fix i18n paver command wrt cleanup --- pavelib/i18n.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pavelib/i18n.py b/pavelib/i18n.py index 58a68fdfd5..b4a68359a5 100644 --- a/pavelib/i18n.py +++ b/pavelib/i18n.py @@ -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",