mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Merge pull request #4845 from sundeep-co-in/release_3.1.0
update zanata config for 3.1.0 release
This commit is contained in:
commit
8f804b9da8
1
.gitignore
vendored
1
.gitignore
vendored
@ -106,6 +106,7 @@ reports
|
||||
*.log.[0-9]
|
||||
*.results
|
||||
local/
|
||||
*.mo
|
||||
|
||||
# AWX python libs populated by requirements.txt
|
||||
awx/lib/.deps_built
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -101,7 +101,8 @@ def pull(lang=None, both=None):
|
||||
Pull translations .po from Zanata
|
||||
"""
|
||||
|
||||
command = "zanata pull --project-config %(config)s --disable-ssl-cert"
|
||||
command = "zanata pull --project-config %(config)s --lang %(lang)s --disable-ssl-cert"
|
||||
lang = lang[0] if lang and len(lang) > 0 else 'en-us'
|
||||
|
||||
if MIN_TRANS_PERCENT_SETTING:
|
||||
command += " --min-doc-percent " + MIN_TRANS_PERCENT
|
||||
@ -109,12 +110,12 @@ def pull(lang=None, both=None):
|
||||
command += " --lang %s" % lang[0]
|
||||
|
||||
if both:
|
||||
p = Popen(command % {'config': ZNTA_CONFIG_FRONTEND_TRANS},
|
||||
p = Popen(command % {'config': ZNTA_CONFIG_FRONTEND_TRANS, 'lang': lang},
|
||||
stdout=PIPE, stderr=PIPE, shell=True)
|
||||
output, errors = p.communicate()
|
||||
_handle_response(output, errors)
|
||||
|
||||
p = Popen(command % {'config': ZNTA_CONFIG_BACKEND_TRANS},
|
||||
p = Popen(command % {'config': ZNTA_CONFIG_BACKEND_TRANS, 'lang': lang},
|
||||
stdout=PIPE, stderr=PIPE, shell=True)
|
||||
output, errors = p.communicate()
|
||||
_handle_response(output, errors)
|
||||
@ -129,7 +130,7 @@ def push(lang=None, both=None):
|
||||
(3) only required languages should be kept enabled
|
||||
"""
|
||||
|
||||
command = "zanata push --project-config %(config)s --force --disable-ssl-cert"
|
||||
command = "zanata push --project-config %(config)s --push-type both --force --disable-ssl-cert"
|
||||
|
||||
if both:
|
||||
p = Popen(command % {'config': ZNTA_CONFIG_FRONTEND_TRANS}, stdout=PIPE, stderr=PIPE, shell=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user