From c46a4c4351de53bb869497f229b69a14750fe75a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 16 Jul 2016 16:56:58 -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 7d5c443b1..63e3f1f9e 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,