mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 06:01:25 -03:30
django-i18n: small fix
This commit is contained in:
parent
3bf72f1dba
commit
be93cb488c
@ -3567,8 +3567,8 @@ class UnifiedJobStdout(RetrieveAPIView):
|
||||
unified_job = self.get_object()
|
||||
obj_size = unified_job.result_stdout_size
|
||||
if request.accepted_renderer.format != 'txt_download' and obj_size > settings.STDOUT_MAX_BYTES_DISPLAY:
|
||||
response_message = "Standard Output too large to display (%(text_size)d bytes), " \
|
||||
"only download supported for sizes over %(supported_size)d bytes" % \
|
||||
response_message = _("Standard Output too large to display (%(text_size)d bytes), "
|
||||
"only download supported for sizes over %(supported_size)d bytes") % \
|
||||
{'text_size': obj_size, 'supported_size': settings.STDOUT_MAX_BYTES_DISPLAY}
|
||||
if request.accepted_renderer.format == 'json':
|
||||
return Response({'range': {'start': 0, 'end': 1, 'absolute_end': 1}, 'content': response_message})
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<config xmlns="http://zanata.org/namespace/config/">
|
||||
<url>https://translate.stage.engineering.redhat.com/</url>
|
||||
<project>ansible-demo</project>
|
||||
<project-version>devel</project-version>
|
||||
<project>ansible-tower</project>
|
||||
<project-version>master</project-version>
|
||||
<project-type>gettext</project-type>
|
||||
<src-dir>awx/locale</src-dir>
|
||||
<trans-dir>awx/locale</trans-dir>
|
||||
|
||||
@ -72,7 +72,6 @@ def pull(lang=None, both=None):
|
||||
def push(lang=None, both=None):
|
||||
"""
|
||||
Push django.pot to Zanata
|
||||
project_type should be podir at Zanata
|
||||
"""
|
||||
p = Popen("zanata push --project-config %(config)s --disable-ssl-cert" %
|
||||
{'config': PROJECT_CONFIG}, stdout=PIPE, stderr=PIPE, shell=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user