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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user