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

Document elipsis check

parent abcdaa40
......@@ -305,7 +305,7 @@ Mismatched BBcode
BBcode in translation does not match source. The method for detecting BBcode is
currently quite simple.
.. _optional_plural:
.. _check-optional_plural:
Optional plural
+++++++++++++++
......@@ -321,3 +321,11 @@ For example with Gettext in Python it could be:
from gettext import ngettext
print ngettext('Selected %d file', 'Selected %d files', files) % files
.. _check-elipsis:
Elipsis
+++++++
The string uses three commans (...) instead of elipsis character (…). Using
unicode character is in most cases better approach and looks better.
......@@ -623,7 +623,7 @@ class ElipsisCheck(SourceCheck):
'''
check_id = 'elipsis'
name = _('Elipsis')
description = _('The string uses three commans (...) instead of elipsis character (…)')
description = _(u'The string uses three commans (...) instead of elipsis character (…)')
def check_source(self, source, flags, unit):
return '...' in source[0]
......
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