2008-03-05 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/docgen/TextBufDoc.py: fixed translations of Quick View
	* src/plugins/References.py: fixed translations of ref types



svn: r10194
This commit is contained in:
Doug Blank 2008-03-05 12:02:22 +00:00
parent d0bc876a6b
commit a32cd288f0
3 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2008-03-05 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/docgen/TextBufDoc.py: fixed translations of Quick View
* src/plugins/References.py: fixed translations of ref types
2008-03-05 Łukasz Rymarczyk <yenidai(at)poczta(dot)onet(dot)pl>
* src/plugins/rel_pl.py: 0001776: Relationship calculator, update Polish
Rewritten for 3.x version

View File

@ -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
#--------------------------------------------------------------------

View File

@ -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()