From 6982d37427777bdd336c78eee5a63935a07e6798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 7 Jun 2014 13:06:00 +0200 Subject: [PATCH] 7678: some fixes around gettext and messages handling --- gramps/gen/utils/image.py | 2 ++ gramps/plugins/lib/libhtmlbackend.py | 3 +++ 2 files changed, 5 insertions(+) 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 + #------------------------------------------------------------------------ #