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