From 0689fba0389e891da176f6b9fb2811523613770f Mon Sep 17 00:00:00 2001 From: bashmak Date: Mon, 27 Feb 2017 14:34:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=D1=83=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20gettext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taskapp/handle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/taskapp/handle.py b/taskapp/handle.py index d483941..247342a 100644 --- a/taskapp/handle.py +++ b/taskapp/handle.py @@ -26,10 +26,10 @@ def handle(task, author, recipient, abon_group): dst_account = author fulltext="%s: %s. " % (text, task.abon.get_full_name()) if task.abon: - fulltext += _('address %s. telephone %s. ') % ( + fulltext += _('address %(task.abon.address)s. telephone %(task.abon.telephone)s. ') % ( task.abon.address, task.abon.telephone ) - fulltext += _('locality %s. Task type - %s. ') % (abon_group.title, task.get_mode_display()) + fulltext += _('locality %(abon_group.title)s. Task type - %(task.get_mode_display)s. ') % (abon_group.title, task.get_mode_display()) fulltext += task.descr if task.descr else _('Not assigned') send_notify(fulltext, dst_account) except ChatException as e: