From 677f92af68e95fb0c958e0be0d5a7bbe2d0cf2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Fri, 8 Jul 2016 16:40:34 -0500 Subject: [PATCH] Added a few translatable strings --- src/sessionmanager/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sessionmanager/session.py b/src/sessionmanager/session.py index 84df409..717dd27 100644 --- a/src/sessionmanager/session.py +++ b/src/sessionmanager/session.py @@ -45,9 +45,9 @@ def add_attachment(attachment): elif attachment["type"] == "photo": msg = attachment["photo"]["text"] if msg == "": - return "photo with no description available" + return _(u"photo with no description available") elif attachment["type"] == "video": - msg = u"video: {0}".format(attachment["video"]["title"],) + msg = _(u"video: {0}").format(attachment["video"]["title"],) return msg def add_text(status):