Commit 548cc819 by TomLottermann

complete set of languages

parent 62b37b3f
...@@ -7,7 +7,7 @@ def get_title(article): ...@@ -7,7 +7,7 @@ def get_title(article):
def truncate_title(title): def truncate_title(title):
"""Truncate a title (of an article, file, image etc) to be displayed in notifications messages.""" """Truncate a title (of an article, file, image etc) to be displayed in notifications messages."""
if not title: if not title:
return _(u"(None)") return _(u"(none)")
if len(title) > 25: if len(title) > 25:
return "%s..." % title[:22] return "%s..." % title[:22]
return title return title
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment