Commit c1dcd6b2 authored by Michal Čihař's avatar Michal Čihař

Add missing documentation to method

parent 5c0ec5f7
...@@ -403,6 +403,10 @@ class Language(models.Model): ...@@ -403,6 +403,10 @@ class Language(models.Model):
return round(translated * 100.0 / total, 1) return round(translated * 100.0 / total, 1)
def get_html(self): def get_html(self):
'''
Returns html attributes for markup in this language, includes
language and direction.
'''
return 'lang="%s" dir="%s"' % (self.code, self.direction) return 'lang="%s" dir="%s"' % (self.code, self.direction)
def fixup_name(self): def fixup_name(self):
......
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