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