diff --git a/src/GenericFilter.py b/src/GenericFilter.py index 52f79beda..1a460f5be 100644 --- a/src/GenericFilter.py +++ b/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/src/StyleEditor.py b/src/StyleEditor.py index c5b766f34..a9f5abe3a 100644 --- a/src/StyleEditor.py +++ b/src/StyleEditor.py @@ -41,6 +41,7 @@ import Utils import const import TextDoc import ListModel +from intl import gettext as _ class StyleListDisplay: """