From f37c2d5ccbf1ed931429642fe4f6dd351bb810df Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 26 Jan 2006 18:11:27 +0000 Subject: [PATCH] * src/docgen/ODFDoc.py (init): Correct name for parent style; Use handling program name obtained from the mime system. svn: r5835 --- gramps2/ChangeLog | 4 ++++ gramps2/src/docgen/ODFDoc.py | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index da7a761c4..92625364e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-01-26 Brian Matherly + * src/docgen/ODFDoc.py (init): Correct name for parent style; + Use handling program name obtained from the mime system. + 2006-01-25 Serge Noiraud * src/docgen/ODFDoc.py: Add new document generator. * src/docgen/Makefile.am: Ship new file. diff --git a/gramps2/src/docgen/ODFDoc.py b/gramps2/src/docgen/ODFDoc.py index 5b3611164..3d114a108 100644 --- a/gramps2/src/docgen/ODFDoc.py +++ b/gramps2/src/docgen/ODFDoc.py @@ -219,7 +219,7 @@ class ODFDoc(BaseDoc.BaseDoc): self.cntnt.write('\n' % style_name) self.cntnt.write('\n') self.cntnt.write('\n') @@ -1136,7 +1136,8 @@ try: mtype = GrampsMime.get_description(_apptype) if Utils.search_for(mprog[0]): - print_label = _("Open in Open Document Editor") + print_label = _("Open in %{program_name}s") % { 'program_name': + mprog[1]} else: print_label = None @@ -1144,6 +1145,9 @@ try: PluginMgr.register_book_doc(mtype,ODFDoc,1,1,1,".odt") PluginMgr.register_draw_doc(mtype,ODFDoc,1,1, ".odt",print_label); except: - PluginMgr.register_text_doc(_('Open Document Text'), OpenDocumentDoc,1,1,1,".odt", None) - PluginMgr.register_book_doc(_("Open Document Text"), OpenDocumentDoc,1,1,1,".odt") - PluginMgr.register_draw_doc(_("Open Document Text"), OpenDocumentDoc,1,1,".odt",None); + PluginMgr.register_text_doc(_('Open Document Text'), + OpenDocumentDoc,1,1,1,".odt", None) + PluginMgr.register_book_doc(_("Open Document Text"), + OpenDocumentDoc,1,1,1,".odt") + PluginMgr.register_draw_doc(_("Open Document Text"), + OpenDocumentDoc,1,1,".odt",None);