Eliminate text concatenation. (Patch by Eero, kiitos.)

* src/plugins/NarrativeWeb.py


svn: r10569
This commit is contained in:
Kees Bakker 2008-04-16 14:46:48 +00:00
parent a6d727a575
commit 75b1a77e99

View File

@ -2313,19 +2313,18 @@ class IndividualPage(BasePage):
date = _dd.display(event.get_date_object())
# TODO. This logic does not work for LTR languages. We should go
# back to what it was. (Sorry, I (keestux) messed up.)
text = ''
if date and place:
text = _("(%(date) s   at    %(place)s") % { 'date': date, 'place': place }
elif place:
text = _("at    %(place)s") % { 'place': place }
elif date:
text = date
else:
text = ''
if descr:
if text:
text += "<br />"
text += descr
if date:
if text:
text += ',&nbsp;&nbsp;'
text += date
if place:
if text:
text += '&nbsp;&nbsp;'
text += _('place|at') + '&nbsp;&nbsp;' + place
text += self.get_citation_links(event.get_source_references())