9578: Some strings in tools and report dialogs will not translate
This commit is contained in:
parent
42f9f4701c
commit
c46a4c4351
@ -32,8 +32,6 @@ from gi.repository import Gtk
|
|||||||
# Standard Python modules
|
# Standard Python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
|
||||||
_ = glocale.translation.gettext
|
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -41,6 +39,8 @@ from collections import defaultdict
|
|||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
from gramps.gen.const import GRAMPS_LOCALE as glocale
|
||||||
|
_ = glocale.translation.gettext
|
||||||
from gramps.gen.const import PLUGINS_GLADE
|
from gramps.gen.const import PLUGINS_GLADE
|
||||||
from gramps.gen.plug.report._constants import standalone_categories
|
from gramps.gen.plug.report._constants import standalone_categories
|
||||||
from . import tool
|
from . import tool
|
||||||
@ -88,6 +88,7 @@ class PluginDialog(ManagedWindow):
|
|||||||
self.uistate = uistate
|
self.uistate = uistate
|
||||||
|
|
||||||
self.dialog = Gtk.Builder()
|
self.dialog = Gtk.Builder()
|
||||||
|
self.dialog.set_translation_domain(glocale.get_localedomain())
|
||||||
self.dialog.add_from_file(PLUGINS_GLADE)
|
self.dialog.add_from_file(PLUGINS_GLADE)
|
||||||
self.dialog.connect_signals({
|
self.dialog.connect_signals({
|
||||||
"on_report_apply_clicked" : self.on_apply_clicked,
|
"on_report_apply_clicked" : self.on_apply_clicked,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user