Commit 466accdf authored by Michal Čihař's avatar Michal Čihař

Add check for trailing stop

parent 1990990e
# -*- coding: UTF-8 -*-
from django.utils.translation import ugettext_lazy as _
import re
......@@ -92,6 +93,12 @@ def check_end_space(source, target, flags, language):
CHECKS['end_space'] = (_('Trailing space'), check_end_newline, _('Source and translated do not both end with space'))
@plural_check
def check_end_stop(source, target, flags, language):
return check_chars(source, target, -1, ['.', '。', '।', '۔'])
CHECKS['end_stop'] = (_('Trailing stop'), check_end_newline, _('Source and translated do not both end with full stop'))
# For now all format string checks use generic implementation, but
# it should be switched to language specific
def check_format_strings(source, target, regex):
......
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