Commit 8393b9be authored by Michal Čihař's avatar Michal Čihař

Show links to failing checks

parent b05cc8c7
...@@ -399,6 +399,11 @@ class Translation(models.Model): ...@@ -399,6 +399,11 @@ class Translation(models.Model):
result.append(('fuzzy', _('Fuzzy strings (%d)') % fuzzy)) result.append(('fuzzy', _('Fuzzy strings (%d)') % fuzzy))
if suggestions > 0: if suggestions > 0:
result.append(('suggestions', _('Strings with suggestions (%d)') % suggestions)) result.append(('suggestions', _('Strings with suggestions (%d)') % suggestions))
for check in trans.checks.CHECKS:
cnt = self.unit_set.filter_type(check).count()
if cnt > 0:
desc = trans.checks.CHECKS[check][2] + (' (%d)' % cnt)
result.append((check, desc))
return result return result
def merge_store(self, author, store2, overwrite, mergefuzzy = False): def merge_store(self, author, store2, overwrite, mergefuzzy = 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