Permalink
Browse files

Drop case when comparing found words to the stoplist

  • Loading branch information...
1 parent e797590 commit acc1e0105b609623fd9b7cc171ead133fe35861f @dwaynebailey dwaynebailey committed with vagrant Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 translate/filters/checks.py
View
2 translate/filters/checks.py
@@ -1030,7 +1030,7 @@ def musttranslatewords(self, str1, str2):
str2 = str2.replace(seperator, u" ")
words1 = self.filteraccelerators(str1).split()
words2 = self.filteraccelerators(str2).split()
- stopwords = [word for word in words1 if word in self.config.musttranslatewords and word in words2]
+ stopwords = [word for word in words1 if word.lower() in self.config.musttranslatewords and word in words2]
if stopwords:
raise FilterFailure(u"Please translate: %s" % (u", ".join(stopwords)))
return True

0 comments on commit acc1e01

Please sign in to comment.