diff --git a/gramps/gen/utils/image.py b/gramps/gen/utils/image.py index 799ebc286..b854ca3ec 100644 --- a/gramps/gen/utils/image.py +++ b/gramps/gen/utils/image.py @@ -46,6 +46,8 @@ import tempfile # #------------------------------------------------------------------------- from ..constfunc import conv_to_unicode +from ..const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext def crop_percentage_to_subpixel(width, height, crop): """ diff --git a/gramps/plugins/lib/libhtmlbackend.py b/gramps/plugins/lib/libhtmlbackend.py index d10e96b34..7006350e5 100644 --- a/gramps/plugins/lib/libhtmlbackend.py +++ b/gramps/plugins/lib/libhtmlbackend.py @@ -46,6 +46,9 @@ from gramps.gen.plug.docbackend import DocBackend from gramps.plugins.lib.libhtml import Html, xml_lang from gramps.gen.errors import ReportError +from gramps.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext + #------------------------------------------------------------------------ #