Commit 36e19230 authored by Michal Čihař's avatar Michal Čihař

Ignore one char strings, used for decimal/thousands separator

parent ed38cb24
......@@ -143,6 +143,8 @@ CHECKS['end_newline'] = (_('Trailing newline'), check_end_newline, _('Source and
@plural_check
def check_end_space(source, target, flags, language, unit):
if len(source) == 1 and len(target) == 1:
return False
if language.code.split('_')[0] in ['fr', 'br']:
if len(target) == 0:
return False
......@@ -156,6 +158,8 @@ CHECKS['end_space'] = (_('Trailing space'), check_end_space, _('Source and trans
@plural_check
def check_end_stop(source, target, flags, language, unit):
if len(source) == 1 and len(target) == 1:
return False
return check_chars(source, target, -1, [u'.', u'。', u'।', u'۔'])
CHECKS['end_stop'] = (_('Trailing stop'), check_end_stop, _('Source and translated do not both end with a full stop'))
......
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