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.flabel = self.glade.get_widget("flabel")
self.mlabel = self.glade.get_widget("mlabel") self.mlabel = self.glade.get_widget("mlabel")
self.fcombo.set_popdown_strings(const.familyRelations)
if self.family and self.family == self.person.getMainFamily(): if self.family and self.family == self.person.getMainFamily():
self.mrel.set_text(_("Birth")) self.mrel.set_text(_("Birth"))
self.frel.set_text(_("Birth")) self.frel.set_text(_("Birth"))
@ -85,11 +87,9 @@ class ChooseParents:
self.mrel.set_text(_(mr)) self.mrel.set_text(_(mr))
self.frel.set_text(_(fr)) self.frel.set_text(_(fr))
break break
else: else:
self.mrel.set_text(_("Birth")) self.mrel.set_text(_("Birth"))
self.frel.set_text(_("Birth")) self.frel.set_text(_("Birth"))
self.fcombo.set_popdown_strings(const.familyRelations)
self.glade.signal_autoconnect({ self.glade.signal_autoconnect({
"on_motherList_select_row" : self.on_mother_list_select_row, "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) text = _("Choose the Parents of %s") % Config.nameof(self.person)
self.title.set_text(text) self.title.set_text(text)
if self.family: if self.family:
self.prel.set_text(self.family.getRelationship()) self.prel.set_text(_(self.family.getRelationship()))
else: else:
self.on_prel_changed(self.prel) self.on_prel_changed(self.prel)
self.top.show() self.top.show()

View File

@ -5032,7 +5032,7 @@ Unknown
<editable>True</editable> <editable>True</editable>
<text_visible>True</text_visible> <text_visible>True</text_visible>
<text_max_length>0</text_max_length> <text_max_length>0</text_max_length>
<text>Birth</text> <text></text>
</widget> </widget>
</widget> </widget>
</widget> </widget>
@ -5109,7 +5109,7 @@ Unknown
<editable>False</editable> <editable>False</editable>
<text_visible>True</text_visible> <text_visible>True</text_visible>
<text_max_length>0</text_max_length> <text_max_length>0</text_max_length>
<text></text> <text>Birth</text>
</widget> </widget>
</widget> </widget>
</widget> </widget>

View File

@ -1346,7 +1346,7 @@ def load_family(family=None):
if len(family_types) > 0: if len(family_types) > 0:
typeMenu = GtkMenu() typeMenu = GtkMenu()
if main_family: if main_family:
menuitem = GtkMenuItem("Birth") menuitem = GtkMenuItem(_("Birth"))
menuitem.set_data("parents",main_family) menuitem.set_data("parents",main_family)
menuitem.connect("activate",on_current_type_changed) menuitem.connect("activate",on_current_type_changed)
menuitem.show() menuitem.show()