Commit 87b95799 authored by Michal Čihař's avatar Michal Čihař

Merge remote-tracking branch 'origin/master'

parents d4d36dbb af7d5a7e
......@@ -301,6 +301,12 @@ class EndStopCheck(Check):
def check_single(self, source, target, flags, language, unit):
if len(source) == 1 and len(target) == 1:
return False
if self.is_language(language, ['ja']):
# Japanese sentence might need to end with full stop
# in case it's used before list.
if source[-1] == ':':
return self.check_chars(source, target, -1, [u':', u':', u'.', u'。'])
return False
return self.check_chars(source, target, -1, [u'.', u'。', u'।', u'۔'])
......
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