* src/DateEdit.py: example use of help
	* src/GrampsDisplay.py: internationalization of help system
	* src/Editors/_EditPrimary.py: define_help_button link to webpage
	* src/Editors/_EditSecondary.py: define_help_button link to webpage
	* src/Editors/_EditReference.py: define_help_button link to webpage
	* src/Editors/_EditFamily.py: remove empty line



svn: r10036
This commit is contained in:
Benny Malengier
2008-02-15 11:40:17 +00:00
parent 1a067201aa
commit 470232fa5a
7 changed files with 61 additions and 12 deletions

View File

@@ -38,7 +38,7 @@ unambiguously built using UI controls such as menus and spin buttons.
# Python modules
#
#-------------------------------------------------------------------------
from gettext import gettext as _
from TransUtils import sgettext as _
#-------------------------------------------------------------------------
#
@@ -94,6 +94,8 @@ CAL_TO_MONTHS_NAMES = {
Date.CAL_PERSIAN : DateHandler.displayer.persian,
Date.CAL_ISLAMIC : DateHandler.displayer.islamic }
WIKI_HELP_PAGE = 'Gramps_3.0_Wiki_Manual_-_Entering_and_Editing_Data:_Detailed'
WIKI_HELP_SEC = _('manual|Editing_Dates')
#-------------------------------------------------------------------------
#
# DateEdit
@@ -259,7 +261,8 @@ class DateEditorDialog(ManagedWindow.ManagedWindow):
while True:
response = self.window.run()
if response == gtk.RESPONSE_HELP:
GrampsDisplay.help('adv-dates')
GrampsDisplay.help('adv-dates', webpage=WIKI_HELP_PAGE,
section=WIKI_HELP_SEC)
elif response == gtk.RESPONSE_DELETE_EVENT:
break
else: