Commit 08ca2135 authored by Michal Čihař's avatar Michal Čihař

Always pass list of languages as a tuple

parent 05de3bc3
......@@ -38,6 +38,6 @@ class PluralCzechCheck(TargetCheck):
# Real check code
def check(self, sources, targets, unit):
if self.is_language(unit, ['cs']):
if self.is_language(unit, ('cs', )):
return targets[1] == targets[2]
return False
......@@ -90,7 +90,7 @@ class EndSpaceCheck(TargetCheck):
return False
if not source or not target:
return False
if self.is_language(unit, ['fr', 'br']):
if self.is_language(unit, ('fr', 'br')):
if source[-1] in [':', '!', '?'] and target[-1] == ' ':
return False
......@@ -135,7 +135,7 @@ class EndStopCheck(TargetCheck):
return self.check_chars(
source, target, -1, (u';', u':', u':', u'.', u'。')
)
if self.is_language(unit, ['hi', 'bn']):
if self.is_language(unit, ('hi', 'bn')):
# Using | instead of । is not typographically correct, but
# seems to be quite usual
return self.check_chars(
......
......@@ -916,7 +916,7 @@ class SameCheck(TargetCheck):
def check_single(self, source, target, unit, cache_slot):
# English variants will have most things not translated
if self.is_language(unit, ['en']):
if self.is_language(unit, ('en', )):
return False
# One letter things are usually labels or decimal/thousand separators
......
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