django-i18n: small fix

This commit is contained in:
sundeep-co-in 2016-10-26 23:31:12 +05:30
parent 3bf72f1dba
commit be93cb488c
3 changed files with 4 additions and 5 deletions

View File

@ -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})

View File

@ -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>

View File

@ -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)