Fixed choose parents dialog with non-english languages
svn: r588
This commit is contained in:
parent
9f8c6d937c
commit
c6ca0c4e0f
@ -76,6 +76,8 @@ class ChooseParents:
|
||||
self.flabel = self.glade.get_widget("flabel")
|
||||
self.mlabel = self.glade.get_widget("mlabel")
|
||||
|
||||
self.fcombo.set_popdown_strings(const.familyRelations)
|
||||
|
||||
if self.family and self.family == self.person.getMainFamily():
|
||||
self.mrel.set_text(_("Birth"))
|
||||
self.frel.set_text(_("Birth"))
|
||||
@ -85,11 +87,9 @@ class ChooseParents:
|
||||
self.mrel.set_text(_(mr))
|
||||
self.frel.set_text(_(fr))
|
||||
break
|
||||
else:
|
||||
self.mrel.set_text(_("Birth"))
|
||||
self.frel.set_text(_("Birth"))
|
||||
|
||||
self.fcombo.set_popdown_strings(const.familyRelations)
|
||||
else:
|
||||
self.mrel.set_text(_("Birth"))
|
||||
self.frel.set_text(_("Birth"))
|
||||
|
||||
self.glade.signal_autoconnect({
|
||||
"on_motherList_select_row" : self.on_mother_list_select_row,
|
||||
@ -105,7 +105,7 @@ class ChooseParents:
|
||||
text = _("Choose the Parents of %s") % Config.nameof(self.person)
|
||||
self.title.set_text(text)
|
||||
if self.family:
|
||||
self.prel.set_text(self.family.getRelationship())
|
||||
self.prel.set_text(_(self.family.getRelationship()))
|
||||
else:
|
||||
self.on_prel_changed(self.prel)
|
||||
self.top.show()
|
||||
|
@ -5032,7 +5032,7 @@ Unknown
|
||||
<editable>True</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text>Birth</text>
|
||||
<text></text>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
@ -5109,7 +5109,7 @@ Unknown
|
||||
<editable>False</editable>
|
||||
<text_visible>True</text_visible>
|
||||
<text_max_length>0</text_max_length>
|
||||
<text></text>
|
||||
<text>Birth</text>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
|
@ -1346,7 +1346,7 @@ def load_family(family=None):
|
||||
if len(family_types) > 0:
|
||||
typeMenu = GtkMenu()
|
||||
if main_family:
|
||||
menuitem = GtkMenuItem("Birth")
|
||||
menuitem = GtkMenuItem(_("Birth"))
|
||||
menuitem.set_data("parents",main_family)
|
||||
menuitem.connect("activate",on_current_type_changed)
|
||||
menuitem.show()
|
||||
|
Loading…
Reference in New Issue
Block a user