From b3d9cfaac5d8f8461c968571f53a5d18d3c6d1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 16 Jul 2016 16:58:11 -0700 Subject: [PATCH] 9578: Some strings in tools and report dialogs will not translate --- gramps/gui/plug/_dialogs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/gui/plug/_dialogs.py b/gramps/gui/plug/_dialogs.py index cf83f3f76..9a8a2ba29 100644 --- a/gramps/gui/plug/_dialogs.py +++ b/gramps/gui/plug/_dialogs.py @@ -32,8 +32,6 @@ from gi.repository import Gtk # Standard Python modules # #------------------------------------------------------------------------- -from gramps.gen.const import GRAMPS_LOCALE as glocale -_ = glocale.translation.gettext from collections import defaultdict #------------------------------------------------------------------------- @@ -41,6 +39,8 @@ from collections import defaultdict # Gramps modules # #------------------------------------------------------------------------- +from gramps.gen.const import GRAMPS_LOCALE as glocale +_ = glocale.translation.gettext from gramps.gen.const import PLUGINS_GLADE from gramps.gen.plug.report._constants import standalone_categories from . import tool @@ -88,6 +88,7 @@ class PluginDialog(ManagedWindow): self.uistate = uistate self.dialog = Gtk.Builder() + self.dialog.set_translation_domain(glocale.get_localedomain()) self.dialog.add_from_file(PLUGINS_GLADE) self.dialog.connect_signals({ "on_report_apply_clicked" : self.on_apply_clicked,