diff --git a/gramps/gen/filters/rules/_hasgallerybase.py b/gramps/gen/filters/rules/_hasgallerybase.py index 375ed255b..5103c3296 100644 --- a/gramps/gen/filters/rules/_hasgallerybase.py +++ b/gramps/gen/filters/rules/_hasgallerybase.py @@ -49,7 +49,7 @@ 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] == 'less than': self.count_type = 0 elif self.list[1] == 'greater than': self.count_type = 2 @@ -60,7 +60,7 @@ class HasGalleryBase(Rule): def apply(self, db, obj): count = len( obj.get_media_list()) - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.userSelectedCount elif self.count_type == 2: # "greater than" return count > self.userSelectedCount diff --git a/gramps/gen/filters/rules/_hasldsbase.py b/gramps/gen/filters/rules/_hasldsbase.py index 208a43f41..9663714d4 100644 --- a/gramps/gen/filters/rules/_hasldsbase.py +++ b/gramps/gen/filters/rules/_hasldsbase.py @@ -52,7 +52,7 @@ 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] == 'less than': self.count_type = 0 elif self.list[1] == 'greater than': self.count_type = 2 @@ -63,7 +63,7 @@ class HasLDSBase(Rule): def apply(self, db, obj): count = len( obj.get_lds_ord_list()) - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.userSelectedCount elif self.count_type == 2: # "greater than" return count > self.userSelectedCount diff --git a/gramps/gen/filters/rules/_hasnotebase.py b/gramps/gen/filters/rules/_hasnotebase.py index 53d77583c..f8c634f78 100644 --- a/gramps/gen/filters/rules/_hasnotebase.py +++ b/gramps/gen/filters/rules/_hasnotebase.py @@ -58,7 +58,7 @@ 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] == 'less than': self.count_type = 0 elif self.list[1] == 'greater than': self.count_type = 2 @@ -70,7 +70,7 @@ class HasNoteBase(Rule): def apply(self, db, obj): count = len( obj.get_note_list()) - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.userSelectedCount elif self.count_type == 2: # "greater than" return count > self.userSelectedCount diff --git a/gramps/gen/filters/rules/_hasreferencecountbase.py b/gramps/gen/filters/rules/_hasreferencecountbase.py index 15e685d59..2591f0259 100644 --- a/gramps/gen/filters/rules/_hasreferencecountbase.py +++ b/gramps/gen/filters/rules/_hasreferencecountbase.py @@ -47,7 +47,7 @@ class HasReferenceCountBase(Rule): def prepare(self, db): # things we want to do just once, not for every handle - if self.list[0] == 'lesser than': + if self.list[0] == 'less than': self.count_type = 0 elif self.list[0] == 'greater than': self.count_type = 2 @@ -63,7 +63,7 @@ class HasReferenceCountBase(Rule): for item in db.find_backlink_handles(handle): count += 1 - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.userSelectedCount elif self.count_type == 2: # "greater than" return count > self.userSelectedCount diff --git a/gramps/gen/filters/rules/_hassourcecountbase.py b/gramps/gen/filters/rules/_hassourcecountbase.py index f377f0e43..bd05fd19b 100644 --- a/gramps/gen/filters/rules/_hassourcecountbase.py +++ b/gramps/gen/filters/rules/_hassourcecountbase.py @@ -50,7 +50,7 @@ class HasSourceCountBase(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] == 'less than': self.count_type = 0 elif self.list[1] == 'greater than': self.count_type = 2 @@ -61,7 +61,7 @@ class HasSourceCountBase(Rule): def apply(self, db, obj): count = len(obj.get_citation_list()) - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.userSelectedCount elif self.count_type == 2: # "greater than" return count > self.userSelectedCount diff --git a/gramps/gen/filters/rules/person/_hasaddress.py b/gramps/gen/filters/rules/person/_hasaddress.py index e78532694..02cda0a8c 100644 --- a/gramps/gen/filters/rules/person/_hasaddress.py +++ b/gramps/gen/filters/rules/person/_hasaddress.py @@ -53,7 +53,7 @@ class HasAddress(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] == 'less than': self.count_type = 0 elif self.list[1] == 'greater than': self.count_type = 2 @@ -64,7 +64,7 @@ class HasAddress(Rule): def apply(self, db, person): count = len( person.get_address_list()) - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.userSelectedCount elif self.count_type == 2: # "greater than" return count > self.userSelectedCount diff --git a/gramps/gen/filters/rules/person/_hasassociation.py b/gramps/gen/filters/rules/person/_hasassociation.py index 254a529ad..4500e2845 100644 --- a/gramps/gen/filters/rules/person/_hasassociation.py +++ b/gramps/gen/filters/rules/person/_hasassociation.py @@ -52,7 +52,7 @@ class HasAssociation(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] == 'less than': self.count_type = 0 elif self.list[1] == 'greater than': self.count_type = 2 @@ -63,7 +63,7 @@ class HasAssociation(Rule): def apply(self, db, person): count = len(person.get_person_ref_list()) - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.selected_count elif self.count_type == 2: # "greater than" return count > self.selected_count diff --git a/gramps/gen/filters/rules/source/_hasrepository.py b/gramps/gen/filters/rules/source/_hasrepository.py index ccdf97e04..762e6d4c0 100644 --- a/gramps/gen/filters/rules/source/_hasrepository.py +++ b/gramps/gen/filters/rules/source/_hasrepository.py @@ -50,7 +50,7 @@ class HasRepository(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] == 'less than': self.count_type = 0 elif self.list[1] == 'greater than': self.count_type = 2 @@ -61,7 +61,7 @@ class HasRepository(Rule): def apply(self, db, obj): count = len(obj.get_reporef_list()) - if self.count_type == 0: # "lesser than" + if self.count_type == 0: # "less than" return count < self.userSelectedCount elif self.count_type == 2: # "greater than" return count > self.userSelectedCount diff --git a/gramps/gui/editors/filtereditor.py b/gramps/gui/editors/filtereditor.py index 73237a298..2ef4726d3 100644 --- a/gramps/gui/editors/filtereditor.py +++ b/gramps/gui/editors/filtereditor.py @@ -243,8 +243,8 @@ class MyLesserEqualGreater(Gtk.ComboBox): cell = Gtk.CellRendererText() self.pack_start(cell, True) self.add_attribute(cell, 'text', 0) - self.clist = ['lesser than', 'equal to', 'greater than'] - self.clist_trans = [_('lesser than'), _('equal to'), _('greater than')] + self.clist = ['less than', 'equal to', 'greater than'] + self.clist_trans = [_('less than'), _('equal to'), _('greater than')] for name in self.clist_trans: store.append(row=[name]) self.set_active(default)