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:
parent
d0bc876a6b
commit
a32cd288f0
@ -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>
|
2008-03-05 Łukasz Rymarczyk <yenidai(at)poczta(dot)onet(dot)pl>
|
||||||
* src/plugins/rel_pl.py: 0001776: Relationship calculator, update Polish
|
* src/plugins/rel_pl.py: 0001776: Relationship calculator, update Polish
|
||||||
Rewritten for 3.x version
|
Rewritten for 3.x version
|
||||||
|
@ -77,7 +77,7 @@ class DisplayBuf(ManagedWindow.ManagedWindow):
|
|||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
|
||||||
def build_menu_names(self, obj):
|
def build_menu_names(self, obj):
|
||||||
return ('View', 'Quick View')
|
return ('View', _('Quick View'))
|
||||||
|
|
||||||
def get_title(self):
|
def get_title(self):
|
||||||
return self.title
|
return self.title
|
||||||
@ -148,7 +148,7 @@ class TextBufDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc):
|
|||||||
|
|
||||||
self.tag_table.add(tag)
|
self.tag_table.add(tag)
|
||||||
self.buffer = gtk.TextBuffer(self.tag_table)
|
self.buffer = gtk.TextBuffer(self.tag_table)
|
||||||
DisplayBuf('Quick View',self)
|
DisplayBuf(_('Quick View'), self)
|
||||||
return
|
return
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
|
@ -30,6 +30,10 @@ from Simple import SimpleAccess, SimpleDoc, SimpleTable
|
|||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
from PluginUtils import register_quick_report
|
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):
|
def get_ref(db, objclass, handle):
|
||||||
"""
|
"""
|
||||||
Looks up object in database
|
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):
|
for (objclass, handle) in database.find_backlink_handles(object.handle):
|
||||||
ref = get_ref(database, objclass, 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:
|
if stab.get_row_count() > 0:
|
||||||
stab.write()
|
stab.write()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user