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