enable translations on GeoView.py

svn: r11866
This commit is contained in:
Jérôme Rapinat 2009-02-05 12:20:05 +00:00
parent 6883f7c870
commit 2a4246f247
3 changed files with 1261 additions and 839 deletions

View File

@ -72,7 +72,7 @@ src/Merge/_MergeSource.py
# DataViews package
src/DataViews/EventView.py
src/DataViews/FamilyList.py
#src/DataViews/GeoView.py
src/DataViews/GeoView.py
src/DataViews/__init__.py
src/DataViews/MediaView.py
src/DataViews/GrampletView.py

2092
po/fr.po

File diff suppressed because it is too large Load Diff

View File

@ -1466,16 +1466,16 @@ class GeoView(HtmlView):
if person_list:
descr = "<br>"
for person in person_list:
descr = _("%(description)s%(name)s<br>") % {
descr = ("%(description)s%(name)s<br>") % {
'description' : descr,
'name' : _nd.display(person)}
descr = _("%(eventtype)s; %(place)s%(description)s"
descr = ("%(eventtype)s; %(place)s%(description)s"
) % { 'eventtype': gen.lib.EventType(
event.get_type()),
'place': place.get_title(),
'description': descr}
else:
descr = _("%(eventtype)s; %(place)s<br>") % {
descr = ("%(eventtype)s; %(place)s<br>") % {
'eventtype': gen.lib.EventType(
event.get_type()),
'place': place.get_title()}