Minor changes

This commit is contained in:
Manuel Cortez 2016-04-10 20:30:41 -05:00
parent 3586aa932c
commit c7874759b1

View File

@ -32,7 +32,7 @@ def add_attachment(attachment):
tpe = _(u"Photo") tpe = _(u"Photo")
msg = attachment["photo"]["text"] msg = attachment["photo"]["text"]
if msg == "": if msg == "":
msg = "photo with no description available" msg = _(u"no description available")
elif attachment["type"] == "video": elif attachment["type"] == "video":
msg = u"{0}".format(attachment["video"]["title"],) msg = u"{0}".format(attachment["video"]["title"],)
tpe = _(u"Video") tpe = _(u"Video")
@ -41,7 +41,7 @@ def add_attachment(attachment):
tpe = _(u"Audio") tpe = _(u"Audio")
elif attachment["type"] == "doc": elif attachment["type"] == "doc":
msg = u"{0}".format(attachment["doc"]["title"]) msg = u"{0}".format(attachment["doc"]["title"])
tpe = _(u"{0} document").format(attachment["doc"]["ext"]) tpe = _(u"{0} file").format(attachment["doc"]["ext"])
return [tpe, msg] return [tpe, msg]
def get_message(status): def get_message(status):