Some Translation strings fixed in NarrativeWeb.py. Pointed out by Gary Burton and Peter Lundgren.
svn: r12952
This commit is contained in:
parent
d6559f9044
commit
b462ef15cf
@ -625,10 +625,13 @@ class BasePage(object):
|
|||||||
|
|
||||||
trow = Html('tr')
|
trow = Html('tr')
|
||||||
thead += trow
|
thead += trow
|
||||||
attr_header_row = ['Type', 'Value', 'Sources']
|
attr_header_row = [
|
||||||
for data in attr_header_row:
|
(_('Type'), 'Type'),
|
||||||
|
(_('Value'), 'Value'),
|
||||||
|
(_('Sources'), 'Source') ]
|
||||||
|
for (label, colclass) in attr_header_row:
|
||||||
|
|
||||||
trow += Html('th', _('%s' % data), class_='Column%s' % data, inline=True)
|
trow += Html('th', label, class_='Column%s' % colclass, inline=True)
|
||||||
|
|
||||||
# begin table body
|
# begin table body
|
||||||
tbody = Html('tbody')
|
tbody = Html('tbody')
|
||||||
@ -2096,7 +2099,8 @@ class MediaPage(BasePage):
|
|||||||
# inside of it? No, if not?, then do not show on the media page
|
# inside of it? No, if not?, then do not show on the media page
|
||||||
"""
|
"""
|
||||||
|
|
||||||
image = pyexiv2.Image('%s' % Utils.media_path_full(db, photo.get_path()))
|
image = pyexiv2.Image('%s' % Utils.media_path_full(db,
|
||||||
|
photo.get_path()))
|
||||||
image.readMetadata()
|
image.readMetadata()
|
||||||
|
|
||||||
# exif data does exists
|
# exif data does exists
|
||||||
@ -3946,13 +3950,19 @@ class IndividualPage(BasePage):
|
|||||||
format_event()
|
format_event()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
header_row = ['EventType', 'Date', 'Place', 'Description', 'Source', 'Note']
|
header_row = [
|
||||||
|
(_('EventType'), 'EventType'),
|
||||||
|
(_('Date'), 'Date'),
|
||||||
|
(_('Place'), 'Place'),
|
||||||
|
(_('Description'), 'Description'),
|
||||||
|
(_('Source'), 'Source'),
|
||||||
|
(_('Note'), 'Note') ]
|
||||||
|
|
||||||
# begin table header row
|
# begin table header row
|
||||||
trow = Html('tr')
|
trow = Html('tr')
|
||||||
|
|
||||||
for section in header_row:
|
for (label, colclass) in header_row:
|
||||||
trow += Html('th', _('%s' % section), class_ = 'Column%s' % section, inline = True)
|
trow += Html('th', label, class_ = 'Column%s' % colclass, inline = True)
|
||||||
|
|
||||||
# return header row to its caller
|
# return header row to its caller
|
||||||
return trow
|
return trow
|
||||||
|
Loading…
x
Reference in New Issue
Block a user