LTR i18n tooling
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user