From f39960b81ba96aa71d26515ad4f3af4640e4ff43 Mon Sep 17 00:00:00 2001 From: Erik De Richter Date: Sat, 11 Oct 2008 06:41:11 +0000 Subject: [PATCH] changes for wiki manual svn: r11136 --- src/plugins/EventCmp.py | 17 ++++++++++++++--- src/plugins/FindDupes.py | 8 ++++---- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/plugins/EventCmp.py b/src/plugins/EventCmp.py index 6e77d8ba9..82d0e5b64 100644 --- a/src/plugins/EventCmp.py +++ b/src/plugins/EventCmp.py @@ -29,7 +29,6 @@ #------------------------------------------------------------------------ import os import sys -from gettext import gettext as _ #------------------------------------------------------------------------ # @@ -56,10 +55,22 @@ from PluginUtils import Tool, register_tool from ReportBase import ReportUtils from GrampsDisplay import help import ManagedWindow +from TransUtils import sgettext as _ +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- + + +WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' +WIKI_HELP_SEC = _('manual|Compare_Individual_Events...') + + #------------------------------------------------------------------------ # -# +# EventCmp # #------------------------------------------------------------------------ class TableReport: @@ -148,7 +159,7 @@ class EventComparison(Tool.Tool,ManagedWindow.ManagedWindow): def on_help_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - help('tools-util') + GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) def build_menu_names(self, obj): return (_("Filter selection"),_("Event Comparison tool")) diff --git a/src/plugins/FindDupes.py b/src/plugins/FindDupes.py index 22e79b9f0..267792d1e 100644 --- a/src/plugins/FindDupes.py +++ b/src/plugins/FindDupes.py @@ -28,7 +28,6 @@ # #------------------------------------------------------------------------- import os -from gettext import gettext as _ #------------------------------------------------------------------------- # @@ -54,7 +53,7 @@ import GrampsDisplay import ManagedWindow from PluginUtils import Tool, register_tool from QuestionDialog import ErrorDialog, RunDatabaseRepair - +from TransUtils import sgettext as _ #------------------------------------------------------------------------- # # Constants @@ -65,7 +64,8 @@ _val2label = { 1.0 : _("Medium"), 2.0 : _("High"), } - +WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' +WIKI_HELP_SEC = _('manual|Find_Possible_Duplicate_People...') #------------------------------------------------------------------------- # # @@ -146,7 +146,7 @@ class Merge(Tool.Tool,ManagedWindow.ManagedWindow): def on_help_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - GrampsDisplay.help('tools-db') + GrampsDisplay.help(WIKI_HELP_PAGE , WIKI_HELP_SEC) def ancestors_of(self,p1_id,id_list): if (not p1_id) or (p1_id in id_list):