Fix to allow deferred translation of place type

This commit is contained in:
Nick Hall 2016-05-22 22:50:19 +01:00
parent 443043a8e2
commit 05ea21690d

View File

@ -175,7 +175,8 @@ class PlaceReport(Report):
place_details = [self._("Gramps ID: %s ") % place.get_gramps_id()] place_details = [self._("Gramps ID: %s ") % place.get_gramps_id()]
for level in get_location_list(self.database, place): for level in get_location_list(self.database, place):
place_details.append("%(type)s: %(name)s " % place_details.append("%(type)s: %(name)s " %
{'type': str(level[1]), 'name': level[0]}) {'type': self._(level[1].xml_str()),
'name': level[0]})
place_names = '' place_names = ''
all_names = place.get_all_names() all_names = place.get_all_names()