From 9b8c8f5ff1693110d84dcb44af188d3b2c9a36ab Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Thu, 4 Oct 2012 07:58:45 +0000 Subject: [PATCH] 5144: Locale not taken into account to sort family list on father or mother name svn: r20516 --- src/gui/views/treemodels/familymodel.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gui/views/treemodels/familymodel.py b/src/gui/views/treemodels/familymodel.py index 1b884341a..1cf8a7a22 100644 --- a/src/gui/views/treemodels/familymodel.py +++ b/src/gui/views/treemodels/familymodel.py @@ -117,30 +117,30 @@ class FamilyModel(FlatBaseModel): def column_father(self, data): if data[2]: person = self.db.get_person_from_handle(data[2]) - return unicode(name_displayer.sorted_name(person.primary_name)) + return name_displayer.display_name(person.primary_name) else: - return u"" + return "" def sort_father(self, data): if data[2]: person = self.db.get_person_from_handle(data[2]) - return name_displayer.sort_string(person.primary_name) + return name_displayer.sorted_name(person.primary_name) else: - return u"" + return "" def column_mother(self, data): if data[3]: person = self.db.get_person_from_handle(data[3]) - return unicode(name_displayer.sorted_name(person.primary_name)) + return name_displayer.display_name(person.primary_name) else: - return u"" + return "" def sort_mother(self, data): if data[3]: person = self.db.get_person_from_handle(data[3]) - return name_displayer.sort_string(person.primary_name) + return name_displayer.sorted_name(person.primary_name) else: - return u"" + return "" def column_type(self, data): return unicode(gen.lib.FamilyRelType(data[5]))