diff --git a/gramps/gen/utils/cast.py b/gramps/gen/utils/cast.py index d7d2015b7..799db27af 100644 --- a/gramps/gen/utils/cast.py +++ b/gramps/gen/utils/cast.py @@ -41,6 +41,8 @@ LOG = logging.getLogger(".") # Gramps modules # #------------------------------------------------------------------------- +from ..const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext from ..datehandler import codeset from ..constfunc import conv_to_unicode, conv_to_unicode_direct, UNITYPE, STRTYPE diff --git a/po/POTFILES.in b/po/POTFILES.in index 51aef46ac..c974217cd 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -307,6 +307,7 @@ gramps/gen/proxy/private.py gramps/gen/relationship.py gramps/gen/simple/_simpleaccess.py gramps/gen/utils/alive.py +gramps/gen/utils/cast.py gramps/gen/utils/db.py gramps/gen/utils/docgen/odstab.py gramps/gen/utils/image.py diff --git a/po/POTFILES.skip b/po/POTFILES.skip index 64dfc5539..9c6b65838 100644 --- a/po/POTFILES.skip +++ b/po/POTFILES.skip @@ -247,7 +247,6 @@ gramps/gen/simple/_simpledoc.py gramps/gen/utils/__init__.py gramps/gen/utils/callback.py gramps/gen/utils/callman.py -gramps/gen/utils/cast.py gramps/gen/utils/config.py gramps/gen/utils/debug.py gramps/gen/utils/file.py