diff --git a/gramps2/src/GenericFilter.py b/gramps2/src/GenericFilter.py index 52f79beda..1a460f5be 100644 --- a/gramps2/src/GenericFilter.py +++ b/gramps2/src/GenericFilter.py @@ -297,7 +297,7 @@ class IsMale(Rule): return 'Is a male' def apply(self,db,p): - return p.getGender() == Person.Person.male + return p.getGender() == RelLib.Person.male #------------------------------------------------------------------------- # diff --git a/gramps2/src/StyleEditor.py b/gramps2/src/StyleEditor.py index c5b766f34..a9f5abe3a 100644 --- a/gramps2/src/StyleEditor.py +++ b/gramps2/src/StyleEditor.py @@ -41,6 +41,7 @@ import Utils import const import TextDoc import ListModel +from intl import gettext as _ class StyleListDisplay: """