From 58cca1767009b548e623538974be701bf7f0cdd9 Mon Sep 17 00:00:00 2001 From: Erik De Richter Date: Sat, 19 Apr 2008 08:29:43 +0000 Subject: [PATCH] links to wiki manual svn: r10589 --- src/plugins/OwnerEditor.py | 12 ++++++++++-- src/plugins/PatchNames.py | 12 ++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/plugins/OwnerEditor.py b/src/plugins/OwnerEditor.py index f645f7901..63e6deed5 100644 --- a/src/plugins/OwnerEditor.py +++ b/src/plugins/OwnerEditor.py @@ -28,7 +28,6 @@ # #------------------------------------------------------------------------- import os -from gettext import gettext as _ #------------------------------------------------------------------------- # @@ -49,6 +48,15 @@ import GrampsDisplay from GrampsWidgets import MonitoredEntry import ManagedWindow from PluginUtils import Tool, register_tool +from TransUtils import sgettext as _ + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' +WIKI_HELP_SEC = _('manual|Edit_Database_Owner_Information') #------------------------------------------------------------------------- # @@ -145,7 +153,7 @@ class OwnerEditor(Tool.Tool, ManagedWindow.ManagedWindow): def on_help_button_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - GrampsDisplay.help() + GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) def on_button_press_event(self, obj, event): """Shows popup-menu for db <-> preferences copying""" diff --git a/src/plugins/PatchNames.py b/src/plugins/PatchNames.py index 5035a62d2..9173fd519 100644 --- a/src/plugins/PatchNames.py +++ b/src/plugins/PatchNames.py @@ -29,7 +29,6 @@ #------------------------------------------------------------------------- import os import re -from gettext import gettext as _ #------------------------------------------------------------------------- # @@ -51,6 +50,15 @@ from QuestionDialog import OkDialog import ManagedWindow import GrampsDisplay import gen.lib +from TransUtils import sgettext as _ + +#------------------------------------------------------------------------- +# +# Constants +# +#------------------------------------------------------------------------- +WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' +WIKI_HELP_SEC = _('manual|Extract_Information_from_Names') #------------------------------------------------------------------------- # @@ -288,7 +296,7 @@ class PatchNames(Tool.BatchTool, ManagedWindow.ManagedWindow): def on_help_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - GrampsDisplay.help() + GrampsDisplay.help(webpage=WIKI_HELP_PAGE, section=WIKI_HELP_SEC) def on_ok_clicked(self, obj): trans = self.db.transaction_begin("", batch=True)