* src/NameDisplay.py: handle patronymic names in given name

* src/plugins/NavWebPage.py: handle patronymic names in given name


svn: r5116
This commit is contained in:
Don Allingham 2005-08-20 03:20:17 +00:00
parent f8710bae70
commit 987a3cef7c
3 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,6 @@
2005-08-19 Don Allingham <don@gramps-project.org>
* src/NameDisplay.py: handle patronymic names in given name
* src/plugins/NavWebPage.py: handle patronymic names in given name
* src/GenericFilter.py: fix unicode problem with menu store
2005-08-18 Don Allingham <don@gramps-project.org>

View File

@ -112,6 +112,13 @@ class NameDisplay:
else:
return self._lnfn(name)
def display_given(self,person):
name = person.get_primary_name()
if name.patronymic:
return "%s %s" % (name.first_name, name.patronymic)
else:
return name.first_name
def display(self,person):
"""
Returns a text string representing the L{RelLib.Person} instance's

View File

@ -528,8 +528,7 @@ class IndividualListPage(BasePage):
of.write('</td><td class="data">')
path = self.build_path(person.handle,"ppl",False)
self.person_link(of, self.build_name(path,person.handle),
person.get_primary_name().get_first_name(),
person.gramps_id,False)
_nd.display_given(person), person.gramps_id,False)
of.write('</td><td class="field">')
birth_handle = person.get_birth_handle()
if birth_handle: