#2700 #2490 do not translate argument on custom_filter.xml (Benny)

svn: r11964
This commit is contained in:
Jérôme Rapinat
2009-02-11 14:02:13 +00:00
parent a34cf168f3
commit 41515d57cf
5 changed files with 13 additions and 12 deletions

View File

@@ -47,9 +47,9 @@ class HasGalleryBase(Rule):
def prepare(self, db):
# things we want to do just once, not for every handle
if self.list[1] == _('lesser than'):
if self.list[1] == 'lesser than':
self.count_type = 0
elif self.list[1] == _('greater than'):
elif self.list[1] == 'greater than':
self.count_type = 2
else:
self.count_type = 1 # "equal to"

View File

@@ -50,9 +50,9 @@ class HasLDSBase(Rule):
def prepare(self, db):
# things we want to do just once, not for every handle
if self.list[1] == _('lesser than'):
if self.list[1] == 'lesser than':
self.count_type = 0
elif self.list[1] == _('greater than'):
elif self.list[1] == 'greater than':
self.count_type = 2
else:
self.count_type = 1 # "equal to"

View File

@@ -56,9 +56,9 @@ class HasNoteBase(Rule):
def prepare(self, db):
# things we want to do just once, not for every handle
if self.list[1] == _('lesser than'):
if self.list[1] == 'lesser than':
self.count_type = 0
elif self.list[1] == _('greater than'):
elif self.list[1] == 'greater than':
self.count_type = 2
else:
self.count_type = 1 # "equal to"

View File

@@ -48,9 +48,9 @@ class HasSourceBase(Rule):
def prepare(self, db):
# things we want to do just once, not for every handle
if self.list[1] == _('lesser than'):
if self.list[1] == 'lesser than':
self.count_type = 0
elif self.list[1] == _('greater than'):
elif self.list[1] == 'greater than':
self.count_type = 2
else:
self.count_type = 1 # "equal to"