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
363ef77e
Commit
363ef77e
authored
Jul 08, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LTR i18n tooling
parent
49d069dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
pavelib/i18n.py
+24
-0
No files found.
pavelib/i18n.py
View file @
363ef77e
...
...
@@ -131,12 +131,16 @@ def i18n_transifex_pull():
@task
def
i18n_rtl
():
"""
Pull all RTL translations (reviewed AND unreviewed) from Transifex
"""
cmd
=
"i18n_tool transifex"
sh
(
cmd
+
" rtl"
)
print
(
"Now generating langugage files..."
)
cmd
=
"i18n_tool generate"
sh
(
cmd
+
" --rtl"
)
print
(
"Committing translations..."
)
...
...
@@ -144,6 +148,26 @@ def i18n_rtl():
sh
(
'git add conf/locale'
)
sh
(
'git commit --amend'
)
@task
def
i18n_ltr
():
"""
Pull all LTR translations (reviewed AND unreviewed) from Transifex
"""
cmd
=
"i18n_tool transifex"
sh
(
cmd
+
" ltr"
)
print
(
"Now generating langugage files..."
)
cmd
=
"i18n_tool generate"
sh
(
cmd
+
" --ltr"
)
print
(
"Committing translations..."
)
sh
(
'git clean -fdX conf/locale'
)
sh
(
'git add conf/locale'
)
sh
(
'git commit --amend'
)
@task
@needs
(
"pavelib.i18n.i18n_transifex_pull"
,
...
...
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