Commit 6ebd13a7 authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 74224b87 5ec3fcb3
......@@ -329,7 +329,8 @@ class SameCheck(TargetCheck):
stripped = self.strip_string(lower_source, unit.flags)
# Ignore strings which don't contain any string to translate
if stripped == '':
# or just single letter (usually unit or something like that)
if len(stripped) <= 1:
result = True
# Ignore words which are often same in foreigh language
elif stripped in SAME_BLACKLIST:
......
......@@ -112,6 +112,15 @@ class SameCheckTest(CheckTestCase):
)
)
self.do_test(
False,
(
'%i C',
'%i C',
'c-format',
)
)
def test_same_email(self):
self.do_test(
False,
......
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