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