From be93cb488c5e0a6c5549f35306bfff9ffae1355c Mon Sep 17 00:00:00 2001 From: sundeep-co-in Date: Wed, 26 Oct 2016 23:31:12 +0530 Subject: [PATCH] django-i18n: small fix --- awx/api/views.py | 4 ++-- config/zanata.xml | 4 ++-- tools/scripts/manage_translations.py | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/awx/api/views.py b/awx/api/views.py index 09ae63333e..06a598c32f 100644 --- a/awx/api/views.py +++ b/awx/api/views.py @@ -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}) diff --git a/config/zanata.xml b/config/zanata.xml index 788769651d..385022e1d2 100644 --- a/config/zanata.xml +++ b/config/zanata.xml @@ -1,8 +1,8 @@ https://translate.stage.engineering.redhat.com/ - ansible-demo - devel + ansible-tower + master gettext awx/locale awx/locale diff --git a/tools/scripts/manage_translations.py b/tools/scripts/manage_translations.py index 45d070eb3c..16432fa354 100644 --- a/tools/scripts/manage_translations.py +++ b/tools/scripts/manage_translations.py @@ -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)