Fixed line ending issues, and syntax errors introduced by translation changes
svn: r11860
This commit is contained in:
parent
de03d3d5a9
commit
fc5dcee88b
@ -291,11 +291,11 @@ class Calendar(Report):
|
|||||||
'person' : short_name,
|
'person' : short_name,
|
||||||
'relation' : ""}
|
'relation' : ""}
|
||||||
else:
|
else:
|
||||||
text = ngettext('%(person)s, %(age)d%(relation)s',
|
text = (ngettext('%(person)s, %(age)d%(relation)s',
|
||||||
'%(person)s, %(age)d%(relation)s', nyears)
|
'%(person)s, %(age)d%(relation)s', nyears)
|
||||||
% {'person' : short_name,
|
% {'person' : short_name,
|
||||||
'age' : nyears,
|
'age' : nyears,
|
||||||
'relation' : ""}
|
'relation' : ""})
|
||||||
self.add_day_item(text, month, day)
|
self.add_day_item(text, month, day)
|
||||||
if self.anniversaries:
|
if self.anniversaries:
|
||||||
family_list = person.get_family_handle_list()
|
family_list = person.get_family_handle_list()
|
||||||
@ -342,11 +342,11 @@ class Calendar(Report):
|
|||||||
'person' : short_name,
|
'person' : short_name,
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
text = ngettext("%(spouse)s and\n %(person)s, %(nyears)d",
|
text = (ngettext("%(spouse)s and\n %(person)s, %(nyears)d",
|
||||||
"%(spouse)s and\n %(person)s, %(nyears)d", nyears)
|
"%(spouse)s and\n %(person)s, %(nyears)d", nyears)
|
||||||
% {'spouse' : spouse_name,
|
% {'spouse' : spouse_name,
|
||||||
'person' : short_name,
|
'person' : short_name,
|
||||||
'nyears' : nyears}
|
'nyears' : nyears})
|
||||||
|
|
||||||
alive1 = probably_alive(person, self.database, \
|
alive1 = probably_alive(person, self.database, \
|
||||||
prob_alive_date)
|
prob_alive_date)
|
||||||
@ -539,3 +539,4 @@ pmgr.register_report(
|
|||||||
author_email = "dblank@cs.brynmawr.edu",
|
author_email = "dblank@cs.brynmawr.edu",
|
||||||
description = _("Produces a graphical calendar"),
|
description = _("Produces a graphical calendar"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -247,11 +247,11 @@ class CalendarReport(Report):
|
|||||||
'person' : short_name,
|
'person' : short_name,
|
||||||
'relation' : comment}
|
'relation' : comment}
|
||||||
else:
|
else:
|
||||||
text = ngettext('%(person)s, %(age)d%(relation)s',
|
text = (ngettext('%(person)s, %(age)d%(relation)s',
|
||||||
'%(person)s, %(age)d%(relation)s', nyears)
|
'%(person)s, %(age)d%(relation)s', nyears)
|
||||||
% {'person' : short_name,
|
% {'person' : short_name,
|
||||||
'age' : nyears,
|
'age' : nyears,
|
||||||
'relation' : comment}
|
'relation' : comment})
|
||||||
|
|
||||||
self.add_day_item(text, month, day)
|
self.add_day_item(text, month, day)
|
||||||
if self.anniversaries:
|
if self.anniversaries:
|
||||||
@ -295,11 +295,11 @@ class CalendarReport(Report):
|
|||||||
'spouse' : spouse_name,
|
'spouse' : spouse_name,
|
||||||
'person' : short_name}
|
'person' : short_name}
|
||||||
else:
|
else:
|
||||||
text = ngettext("%(spouse)s and\n %(person)s, %(nyears)d",
|
text = (ngettext("%(spouse)s and\n %(person)s, %(nyears)d",
|
||||||
"%(spouse)s and\n %(person)s, %(nyears)d", nyears)
|
"%(spouse)s and\n %(person)s, %(nyears)d", nyears)
|
||||||
% {'spouse' : spouse_name,
|
% {'spouse' : spouse_name,
|
||||||
'person' : short_name,
|
'person' : short_name,
|
||||||
'nyears' : nyears}
|
'nyears' : nyears})
|
||||||
|
|
||||||
prob_alive_date = gen.lib.Date(self.year, month, day)
|
prob_alive_date = gen.lib.Date(self.year, month, day)
|
||||||
alive1 = probably_alive(person, self.database, \
|
alive1 = probably_alive(person, self.database, \
|
||||||
@ -498,3 +498,4 @@ pmgr.register_report(
|
|||||||
author_email = "dblank@cs.brynmawr.edu",
|
author_email = "dblank@cs.brynmawr.edu",
|
||||||
description = _("Produces a report of birthdays and anniversaries"),
|
description = _("Produces a report of birthdays and anniversaries"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1528,9 +1528,9 @@ def get_day_list(event_date, holiday_list, bday_anniv_list):
|
|||||||
txt_str = _('%(person)s, <em>birth</em>') % {
|
txt_str = _('%(person)s, <em>birth</em>') % {
|
||||||
'person' : text}
|
'person' : text}
|
||||||
else:
|
else:
|
||||||
txt_str = ngettext('%(person)s, <em>%(age)s</em> old',
|
txt_str = (ngettext('%(person)s, <em>%(age)s</em> old',
|
||||||
'%(person)s, <em>%(age)s</em> old', age_str)
|
'%(person)s, <em>%(age)s</em> old', age_str)
|
||||||
% {'person' : text, 'age' : age_str}
|
% {'person' : text, 'age' : age_str})
|
||||||
|
|
||||||
# an anniversary
|
# an anniversary
|
||||||
elif event == 'Anniversary':
|
elif event == 'Anniversary':
|
||||||
@ -1539,9 +1539,9 @@ def get_day_list(event_date, holiday_list, bday_anniv_list):
|
|||||||
txt_str = _('%(couple)s, <em>wedding</em>') % {
|
txt_str = _('%(couple)s, <em>wedding</em>') % {
|
||||||
'couple' : text}
|
'couple' : text}
|
||||||
else:
|
else:
|
||||||
txt_str = ngettext('%(couple)s, <em>%(years)d</em> year anniversary'
|
txt_str = (ngettext('%(couple)s, <em>%(years)d</em> year anniversary'
|
||||||
'%(couple)s, <em>%(years)d</em> year anniversary', nyears)
|
'%(couple)s, <em>%(years)d</em> year anniversary', nyears)
|
||||||
% {'couple' : text, 'years' : nyears}
|
% {'couple' : text, 'years' : nyears})
|
||||||
txt_str = '<span class="yearsmarried">%s</span>' % txt_str
|
txt_str = '<span class="yearsmarried">%s</span>' % txt_str
|
||||||
|
|
||||||
if txt_str is not None:
|
if txt_str is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user