# Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2009 Douglas S. Blank # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # $Id$ #------------------------------------------------------------------------ # # GRAMPS modules # #------------------------------------------------------------------------ from gen.plug import Gramplet from gen.ggettext import sgettext as _ import const #------------------------------------------------------------------------ # # Register Gramplet # #------------------------------------------------------------------------ class FAQGramplet(Gramplet): def init(self): self.set_use_markup(True) self.clear_text() WIKI = const.URL_MANUAL_PAGE self.render_text(_("Frequently Asked Questions\n(needs a connection to the internet)\n") % WIKI) self.render_text("\n%s\n\n" % _("Editing Spouses")) self.render_text(_(" 1. How do I change the order of spouses?\n") % WIKI) self.render_text(_(" 2. How do I add an additional spouse?\n") % WIKI) self.render_text(_(" 3. How do I remove a spouse?\n") % WIKI) self.render_text("\n%s\n\n" % _("Backups and Updates")) self.render_text(_(" 4. How do I make backups safely?\n") % WIKI) self.render_text(_(" 5. Is it necessary to update Gramps every time an update is released?\n") % WIKI) self.render_text("\n%s\n\n" % _("Data Entry")) self.render_text(_(" 6. How should information about marriages be entered?\n") % WIKI) self.render_text(_(" 7. What's the difference between a residence and an address?\n") % WIKI) self.render_text("\n%s\n\n" % _("Media Files")) self.render_text(_(" 8. How do you add a photo of a person/source/event?\n") % WIKI) self.render_text(_(" 9. How do you find unused media objects?\n") % WIKI) self.render_text("\n%s\n\n" % _("Miscellaneous")) self.render_text(_(" 10. How can I make a website with Gramps and my tree?\n") % WIKI) self.render_text(_(" 11. How do I record one's occupation?\n")) self.render_text(_(" 12. What do I do if I have found a bug?\n") % WIKI) self.render_text(_(" 13. Is there a manual for Gramps?\n")) self.render_text(_(" 14. Are there tutorials available?\n")) self.render_text(_(" 15. How do I ...?\n")) self.render_text(_(" 16. How can I help with Gramps?\n")) self.append_text("", scroll_to='begin') def post_init(self): self.disconnect("active-changed")