From a32cd288f0a5c532ce36b03423ae4d928c13c4c4 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 5 Mar 2008 12:02:22 +0000 Subject: [PATCH] 2008-03-05 Douglas S. Blank * src/docgen/TextBufDoc.py: fixed translations of Quick View * src/plugins/References.py: fixed translations of ref types svn: r10194 --- ChangeLog | 4 ++++ src/docgen/TextBufDoc.py | 4 ++-- src/plugins/References.py | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f61e3ddb..f0dd36a7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-03-05 Douglas S. Blank + * src/docgen/TextBufDoc.py: fixed translations of Quick View + * src/plugins/References.py: fixed translations of ref types + 2008-03-05 Ɓukasz Rymarczyk * src/plugins/rel_pl.py: 0001776: Relationship calculator, update Polish Rewritten for 3.x version diff --git a/src/docgen/TextBufDoc.py b/src/docgen/TextBufDoc.py index 339a0a12d..edbebc0c9 100644 --- a/src/docgen/TextBufDoc.py +++ b/src/docgen/TextBufDoc.py @@ -77,7 +77,7 @@ class DisplayBuf(ManagedWindow.ManagedWindow): self.window.show_all() def build_menu_names(self, obj): - return ('View', 'Quick View') + return ('View', _('Quick View')) def get_title(self): return self.title @@ -148,7 +148,7 @@ class TextBufDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc): self.tag_table.add(tag) self.buffer = gtk.TextBuffer(self.tag_table) - DisplayBuf('Quick View',self) + DisplayBuf(_('Quick View'), self) return #-------------------------------------------------------------------- diff --git a/src/plugins/References.py b/src/plugins/References.py index 07863640b..e9c46cd6f 100644 --- a/src/plugins/References.py +++ b/src/plugins/References.py @@ -30,6 +30,10 @@ from Simple import SimpleAccess, SimpleDoc, SimpleTable from gettext import gettext as _ from PluginUtils import register_quick_report +# mention so that will be translated for below +[_('Person'), _('Family'), _('Event'), _('Source'), + _('Place'), _('Repository')] + def get_ref(db, objclass, handle): """ Looks up object in database @@ -67,7 +71,7 @@ def run(database, document, object, item, trans): for (objclass, handle) in database.find_backlink_handles(object.handle): ref = get_ref(database, objclass, handle) - stab.row(objclass, ref) + stab.row(_(objclass), ref) # translation are explicit (above) if stab.get_row_count() > 0: stab.write()