Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
13dc7ed4
Commit
13dc7ed4
authored
Jun 28, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix i18n paver command wrt cleanup
parent
65d68a88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
pavelib/i18n.py
+9
-2
No files found.
pavelib/i18n.py
View file @
13dc7ed4
...
@@ -184,6 +184,7 @@ def i18n_ltr():
...
@@ -184,6 +184,7 @@ def i18n_ltr():
@task
@task
@needs
(
@needs
(
"pavelib.i18n.i18n_clean"
,
"pavelib.i18n.i18n_transifex_pull"
,
"pavelib.i18n.i18n_transifex_pull"
,
"pavelib.i18n.i18n_extract"
,
"pavelib.i18n.i18n_extract"
,
"pavelib.i18n.i18n_dummy"
,
"pavelib.i18n.i18n_dummy"
,
...
@@ -193,9 +194,7 @@ def i18n_robot_pull():
...
@@ -193,9 +194,7 @@ def i18n_robot_pull():
"""
"""
Pull source strings, generate po and mo files, and validate
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...
# 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
# Validate the recently pulled translations, and give a bail option
cmd
=
"i18n_tool validate"
cmd
=
"i18n_tool validate"
print
(
"
\n\n
Validating translations with `i18n_tool validate`..."
)
print
(
"
\n\n
Validating translations with `i18n_tool validate`..."
)
...
@@ -213,6 +212,14 @@ def i18n_robot_pull():
...
@@ -213,6 +212,14 @@ def i18n_robot_pull():
@task
@task
def
i18n_clean
():
"""
Clean the i18n directory of artifacts
"""
sh
(
'git clean -fdX conf/locale'
)
@task
@needs
(
@needs
(
"pavelib.i18n.i18n_extract"
,
"pavelib.i18n.i18n_extract"
,
"pavelib.i18n.i18n_transifex_push"
,
"pavelib.i18n.i18n_transifex_push"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment