Commit 307269cd authored by Michal Čihař's avatar Michal Čihař

Do not check zero length strings

parent 484f7c1a
...@@ -131,12 +131,12 @@ class SameCheck(TargetCheck): ...@@ -131,12 +131,12 @@ class SameCheck(TargetCheck):
return stripped.strip(' ,./<>?;\'\\:"|[]{}`~!@#$%^&*()-=_+') == '' return stripped.strip(' ,./<>?;\'\\:"|[]{}`~!@#$%^&*()-=_+') == ''
def check_single(self, source, target, flags, language, unit, cache_slot): def check_single(self, source, target, flags, language, unit, cache_slot):
# Ignore strings which don't contain any string to translate # One letter things are usually labels or decimal/thousand separators
if self.is_format_only(source, flags): if len(source) <= 1 and len(target) <= 1:
return False return False
# One letter things are usually labels or decimal/thousand separators # Ignore strings which don't contain any string to translate
if len(source) == 1 and len(target) == 1: if self.is_format_only(source, flags):
return False return False
# English variants will have most things not translated # English variants will have most things not translated
......
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