Commit 655aa552 authored by Michal Čihař's avatar Michal Čihař

Use new wrapper to get all unit flags (issue #303).

parent 6be53d5a
......@@ -111,7 +111,7 @@ class BaseFormatCheck(TargetCheck):
Checks single unit, handling plurals.
'''
# Verify unit is properly flagged
if not self.flag in unit.flags.split(', '):
if not self.flag in unit.get_all_flags():
return False
# Special case languages with single plural form
......
......@@ -595,7 +595,7 @@ class SameCheck(TargetCheck):
result = True
else:
# Strip format strings
stripped = self.strip_string(lower_source, unit.flags.split(', '))
stripped = self.strip_string(lower_source, unit.get_all_flags())
# Ignore strings which don't contain any string to translate
# or just single letter (usually unit or something like that)
......
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