Fix to allow deferred translation of place type

This commit is contained in:
Nick Hall 2016-05-22 22:50:19 +01:00 committed by prculley
parent 9ab27bf83b
commit ca1863984b

View File

@ -175,7 +175,8 @@ class PlaceReport(Report):
place_details = [self._("Gramps ID: %s ") % place.get_gramps_id()]
for level in get_location_list(self.database, place):
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 = ''
all_names = place.get_all_names()