8888 'Place Name Editor' Add New wiki section & help link

This commit is contained in:
Sam Manzi 2015-09-16 09:46:30 +10:00
parent 96efa177ba
commit 516155c6ee

View File

@ -38,12 +38,16 @@ from ..dialog import ErrorDialog
from gramps.gen.errors import ValidationError
from gramps.gen.const import GRAMPS_LOCALE as glocale
_ = glocale.translation.gettext
from gramps.gen.const import URL_MANUAL_PAGE
#-------------------------------------------------------------------------
#
# Constants
#
#-------------------------------------------------------------------------
WIKI_HELP_PAGE = _('%s_-_Entering_and_editing_data:_detailed_-_part_2') % URL_MANUAL_PAGE
WIKI_HELP_SEC = _('Place_Name_Editor_dialog')
ISO_CODES = (
'aa', 'ab', 'ae', 'af', 'ak', 'am', 'an', 'ar', 'as', 'av', 'ay', 'az',
'ba', 'be', 'bg', 'bh', 'bi', 'bm', 'bn', 'bo', 'br', 'bs',
@ -121,7 +125,8 @@ class EditPlaceName(EditSecondary):
return ValidationError(_("Invalid ISO code"))
def _connect_signals(self):
self.define_help_button(self.top.get_object('help'))
self.define_help_button(self.top.get_object('help'),
WIKI_HELP_PAGE, WIKI_HELP_SEC)
self.define_cancel_button(self.top.get_object('cancel'))
self.define_ok_button(self.top.get_object('ok'),self.save)