parent
f87bd00fa5
commit
c227803a1b
@ -584,7 +584,7 @@ class BasePage(object):
|
||||
# position 2 = data
|
||||
info = [
|
||||
[_("Event"), "Event", evt_hyper],
|
||||
[DHEAD, "Date", format_date(evt.get_date_object() )] ]
|
||||
[DHEAD, "Date", _dd.display(evt.get_date_object() )] ]
|
||||
|
||||
if showplc:
|
||||
info.append([PHEAD, "Place", place_hyper])
|
||||
@ -657,7 +657,7 @@ class BasePage(object):
|
||||
# 0 = column class, 1 = ordinance data
|
||||
lds_ord_data = [
|
||||
["LDSType", ord.type2xml()],
|
||||
["LDSDate", format_date(ord.get_date_object() )],
|
||||
["LDSDate", _dd.display(ord.get_date_object() )],
|
||||
["LDSTemple", ord.get_temple()],
|
||||
["LDSPlace", ReportUtils.place_name(db, ord.get_place_handle() )],
|
||||
["LDSStatus", ord.get_status()],
|
||||
@ -786,7 +786,7 @@ class BasePage(object):
|
||||
tbody += trow
|
||||
|
||||
addr_data_row = [
|
||||
["Date", format_date(address.get_date_object() )],
|
||||
["Date", _dd.display(address.get_date_object() )],
|
||||
["Streetaddress", address.get_street()],
|
||||
["City", address.get_city()],
|
||||
["County", address.get_county()],
|
||||
@ -943,7 +943,7 @@ class BasePage(object):
|
||||
# attach note
|
||||
user_footer += note_text
|
||||
|
||||
value = format_date(date.Today())
|
||||
value = _dd.display(date.Today())
|
||||
msg = _('Generated by <a href = "%(homepage)s">'
|
||||
'Gramps</a> on %(date)s') % {
|
||||
'date': value, 'homepage' : const.URL_HOMEPAGE
|
||||
@ -1394,7 +1394,7 @@ class BasePage(object):
|
||||
confidence = None
|
||||
|
||||
tmp.extend("%s: %s" % (label, data)
|
||||
for (label, data) in [(DHEAD, format_date(sref.date)),
|
||||
for (label, data) in [(DHEAD, _dd.display(sref.date)),
|
||||
(_PAGE, sref.page),
|
||||
(_CONFIDENCE, confidence)]
|
||||
if data)
|
||||
@ -1735,7 +1735,7 @@ class IndividualListPage(BasePage):
|
||||
if birth_ref:
|
||||
birth = db.get_event_from_handle(birth_ref.ref)
|
||||
if birth:
|
||||
birth_date = format_date(birth.get_date_object())
|
||||
birth_date = _dd.display(birth.get_date_object())
|
||||
if birth.get_type() == EventType.BIRTH:
|
||||
tcell += birth_date
|
||||
else:
|
||||
@ -1752,7 +1752,7 @@ class IndividualListPage(BasePage):
|
||||
if death_ref:
|
||||
death = db.get_event_from_handle(death_ref.ref)
|
||||
if death:
|
||||
death_date = format_date(death.get_date_object())
|
||||
death_date = _dd.display(death.get_date_object())
|
||||
if death.get_type() == EventType.DEATH:
|
||||
tcell += death_date
|
||||
else:
|
||||
@ -1902,7 +1902,7 @@ class SurnamePage(BasePage):
|
||||
if birth_ref:
|
||||
birth = db.get_event_from_handle(birth_ref.ref)
|
||||
if birth:
|
||||
birth_date = format_date(birth.get_date_object())
|
||||
birth_date = _dd.display(birth.get_date_object())
|
||||
if birth.get_type() == EventType.BIRTH:
|
||||
tcell += birth_date
|
||||
else:
|
||||
@ -1918,7 +1918,7 @@ class SurnamePage(BasePage):
|
||||
if death_ref:
|
||||
death = db.get_event_from_handle(death_ref.ref)
|
||||
if death:
|
||||
death_date = format_date(death.get_date_object())
|
||||
death_date = _dd.display(death.get_date_object())
|
||||
if death.get_type() == EventType.DEATH:
|
||||
tcell += death_date
|
||||
else:
|
||||
@ -2610,7 +2610,7 @@ class MediaPage(BasePage):
|
||||
if date:
|
||||
trow = Html("tr") + (
|
||||
Html("td", DHEAD, class_ = "ColumnAttribute", inline = True),
|
||||
Html("td", format_date(date), class_ = "ColumnValue", inline = True)
|
||||
Html("td", _dd.display(date), class_ = "ColumnValue", inline = True)
|
||||
)
|
||||
table += trow
|
||||
|
||||
@ -3125,7 +3125,7 @@ class MediaListPage(BasePage):
|
||||
|
||||
for handle in mlist:
|
||||
media = db.get_object_from_handle(handle)
|
||||
date = format_date(media.get_date_object() )
|
||||
date = _dd.display(media.get_date_object() )
|
||||
title = media.get_description()
|
||||
if not title:
|
||||
title = "[untitled]"
|
||||
|
Loading…
Reference in New Issue
Block a user