Commit 595ba279 authored by Michal Čihař's avatar Michal Čihař

Checks should ignore not transalated units as well

Fixes #466
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 6228a034
......@@ -31,7 +31,7 @@ class Check(object):
description = ''
target = False
source = False
ignore_fuzzy = True
ignore_untranslated = True
def __init__(self):
id_dash = self.check_id.replace('_', '-')
......@@ -46,7 +46,7 @@ class Check(object):
if self.ignore_string in unit.all_flags:
return False
# No checking of fuzzy units
if self.ignore_fuzzy and unit.fuzzy:
if self.ignore_untranslated and not unit.translated:
return False
# Check singular
if self.check_single(sources[0], targets[0], unit, 0):
......
......@@ -50,7 +50,7 @@ class ConsistencyCheck(TargetCheck):
description = _(
'This message has more than one translation in this project'
)
ignore_fuzzy = False
ignore_untranslated = False
def check(self, sources, targets, unit):
from weblate.trans.models import Unit
......
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