Fixed choose parents dialog with non-english languages

svn: r588
This commit is contained in:
Don Allingham 2001-11-27 02:26:02 +00:00
parent 9f8c6d937c
commit c6ca0c4e0f
3 changed files with 9 additions and 9 deletions

View File

@ -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"))
@ -89,8 +91,6 @@ class ChooseParents:
self.mrel.set_text(_("Birth"))
self.frel.set_text(_("Birth"))
self.fcombo.set_popdown_strings(const.familyRelations)
self.glade.signal_autoconnect({
"on_motherList_select_row" : self.on_mother_list_select_row,
"on_fatherList_select_row" : self.on_father_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()

View File

@ -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>

View File

@ -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()