From 6e25dd83f5b2c298e1f5bb182907e7b82bce6ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 7 Jun 2014 13:02:27 +0200 Subject: [PATCH] 7678: some fixes around gettext and messages handling --- gramps/gen/utils/image.py | 2 ++ gramps/plugins/lib/libhtmlbackend.py | 3 +++ po/POTFILES.in | 2 -- po/POTFILES.skip | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gramps/gen/utils/image.py b/gramps/gen/utils/image.py index eec5abfd8..24fc54d59 100644 --- a/gramps/gen/utils/image.py +++ b/gramps/gen/utils/image.py @@ -44,6 +44,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 d558016e0..c01b4e246 100644 --- a/gramps/plugins/lib/libhtmlbackend.py +++ b/gramps/plugins/lib/libhtmlbackend.py @@ -44,6 +44,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 + #------------------------------------------------------------------------ # diff --git a/po/POTFILES.in b/po/POTFILES.in index ea8a9668c..9573b06b7 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -631,9 +631,7 @@ gramps/plugins/quickview/samesurnames.py gramps/plugins/quickview/siblings.py gramps/plugins/rel/relplugins.gpr.py gramps/plugins/sidebar/sidebar.gpr.py -gramps/plugins/sidebar/categorysidebar.py gramps/plugins/sidebar/dropdownsidebar.py -gramps/plugins/sidebar/expandersidebar.py gramps/plugins/textreport/alphabeticalindex.py gramps/plugins/textreport/ancestorreport.py gramps/plugins/textreport/birthdayreport.py diff --git a/po/POTFILES.skip b/po/POTFILES.skip index 55cd36358..59ec8245d 100644 --- a/po/POTFILES.skip +++ b/po/POTFILES.skip @@ -494,6 +494,7 @@ gramps/plugins/rel/rel_sv.py # plugins/sidebar directory # gramps/plugins/sidebar/categorysidebar.py +gramps/plugins/sidebar/expandersidebar.py gramps/plugins/sidebar/__init__.py # # Development tools