From c3b4f5fe8971884e33fc8f619c1c78a4ff5f6ae5 Mon Sep 17 00:00:00 2001 From: Erik De Richter Date: Wed, 27 Feb 2008 19:17:34 +0000 Subject: [PATCH] wiki manual link svn: r10131 --- ChangeLog | 4 ++++ src/plugins/SoundGen.py | 14 +++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 27977807c..ea1d5e04f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-02-25 Frederik De Richter + * src/plugins/SoundGen.py + links to wiki manual + 2008-02-27 Brian Matherly * src/GrampsDbUtils/_ReadXML.py: Don't allow newer Gramps files to be imported (#0001722). diff --git a/src/plugins/SoundGen.py b/src/plugins/SoundGen.py index 88a62e331..f0f82767b 100644 --- a/src/plugins/SoundGen.py +++ b/src/plugins/SoundGen.py @@ -28,7 +28,6 @@ # #------------------------------------------------------------------------ import os -from gettext import gettext as _ #------------------------------------------------------------------------ # @@ -45,13 +44,22 @@ import soundex import GrampsDisplay import ManagedWindow import AutoComp - +from TransUtils import sgettext as _ from PluginUtils import Tool, register_tool #------------------------------------------------------------------------- # +# Constants # #------------------------------------------------------------------------- +WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Tools' +WIKI_HELP_SEC = _('manual|Generate_SoundEx_codes') +#------------------------------------------------------------------------- +# +# SoundGen.py +# +#------------------------------------------------------------------------- + class SoundGen(Tool.Tool, ManagedWindow.ManagedWindow): def __init__(self, dbstate, uistate, options_class, name, callback=None): @@ -104,7 +112,7 @@ class SoundGen(Tool.Tool, ManagedWindow.ManagedWindow): def on_help_clicked(self, obj): """Display the relevant portion of GRAMPS manual""" - GrampsDisplay.help('tools-util-other') + GrampsDisplay.help('tools-util-other', WIKI_HELP_PAGE , WIKI_HELP_SEC) def build_menu_names(self, obj): return (self.label,None)