9557: Translated text will not be printed (better solution)

This commit is contained in:
SNoiraud 2016-07-02 22:30:54 +02:00
parent 3d9159d9d3
commit be5722ee0b

View File

@ -261,17 +261,14 @@ class GeoFamClose(GeoGraphyView):
if self.reffamily: if self.reffamily:
color = self._config.get('geography.color1') color = self._config.get('geography.color1')
self._createmap(self.reffamily, color, self.place_list_ref, True) self._createmap(self.reffamily, color, self.place_list_ref, True)
mess1 = _("Family reference") self.message_layer.add_message(_("Family reference : %(ref)s") %
mess1 += " : " + self.family_label(self.reffamily) { 'ref' : self.family_label(self.reffamily)})
self.message_layer.add_message(mess1)
mess2 = _("The other family")
mess2 += " : "
if family: if family:
mess2 += self.family_label(f1) self.message_layer.add_message(_("The other family : %(fam)s") %
self.message_layer.add_message(mess2) { 'fam' : self.family_label(self.reffamily)})
else: else:
mess2 += _("Unknown") self.message_layer.add_message(_("The other family : %(fam)s") %
self.message_layer.add_message(mess2) { 'fam' : self.family_label(self.reffamily)})
if self.reffamily_bookmark is None: if self.reffamily_bookmark is None:
self.reffamily_bookmark = self.reffamily.get_handle() self.reffamily_bookmark = self.reffamily.get_handle()
self.add_bookmark_from_popup(None, self.reffamily_bookmark) self.add_bookmark_from_popup(None, self.reffamily_bookmark)