From c6ca0c4e0feec8c1117ba0a52721a80c23960395 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 27 Nov 2001 02:26:02 +0000 Subject: [PATCH] Fixed choose parents dialog with non-english languages svn: r588 --- gramps/src/ChooseParents.py | 12 ++++++------ gramps/src/gramps.glade | 4 ++-- gramps/src/gramps_main.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gramps/src/ChooseParents.py b/gramps/src/ChooseParents.py index 627e6f3e9..cfc92834f 100644 --- a/gramps/src/ChooseParents.py +++ b/gramps/src/ChooseParents.py @@ -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() diff --git a/gramps/src/gramps.glade b/gramps/src/gramps.glade index d2ed37d79..d0c5e0df3 100644 --- a/gramps/src/gramps.glade +++ b/gramps/src/gramps.glade @@ -5032,7 +5032,7 @@ Unknown True True 0 - Birth + @@ -5109,7 +5109,7 @@ Unknown False True 0 - + Birth diff --git a/gramps/src/gramps_main.py b/gramps/src/gramps_main.py index 863f8e270..8199694ec 100755 --- a/gramps/src/gramps_main.py +++ b/gramps/src/gramps_main.py @@ -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()