* src/gramps.glade: remove name display options
* src/GrampsCfg.py: remove name displaying functions * src/Makefile.am: add NameDisplay.py to list * src/NameDisplay.py: New name displaying class * src/Utils.py: use new NameDisplay class * src/AddSpouse.py: use new NameDisplay class * src/AddrEdit.py: use new NameDisplay class * src/Bookmarks.py: use new NameDisplay class * src/ChooseParents.py: use new NameDisplay class * src/DisplayModels.py: use new NameDisplay class * src/EditPerson.py: use new NameDisplay class * src/EditPlace.py: use new NameDisplay class * src/EditSource.py: use new NameDisplay class * src/FamilyView.py: use new NameDisplay class * src/GenericFilter.py: use new NameDisplay class * src/ImageSelect.py: use new NameDisplay class * src/Marriage.py: use new NameDisplay class * src/MergeData.py: use new NameDisplay class * src/NameEdit.py: use new NameDisplay class * src/PedView.py: use new NameDisplay class * src/PeopleModel.py: use new NameDisplay class * src/ReadGedcom.py: use new NameDisplay class * src/Report.py: use new NameDisplay class * src/SelectChild.py: use new NameDisplay class * src/SubstKeywords.py: use new NameDisplay class * src/Witness.py: use new NameDisplay class * src/WriteGedcom.py: use new NameDisplay class * src/gramps_main.py: use new NameDisplay class * src/plugins/Desbrowser.py: use new NameDisplay class * src/plugins/Merge.py: use new NameDisplay class * src/plugins/RelCalc.py: use new NameDisplay class svn: r3852
This commit is contained in:
@@ -51,10 +51,10 @@ import gnome
|
||||
import RelLib
|
||||
import const
|
||||
import Utils
|
||||
import GrampsCfg
|
||||
import PeopleModel
|
||||
import Date
|
||||
import Marriage
|
||||
import NameDisplay
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@@ -122,8 +122,9 @@ class AddSpouse:
|
||||
|
||||
self.ok = self.glade.get_widget('spouse_ok')
|
||||
self.ok.set_sensitive(0)
|
||||
|
||||
title = _("Choose Spouse/Partner of %s") % GrampsCfg.get_nameof()(person)
|
||||
|
||||
name = NameDisplay.displayer.display(person)
|
||||
title = _("Choose Spouse/Partner of %s") % name
|
||||
|
||||
Utils.set_titles(self.glade.get_widget('spouseDialog'),
|
||||
self.glade.get_widget('title'),title,
|
||||
@@ -213,7 +214,7 @@ class AddSpouse:
|
||||
trans = self.db.transaction_begin()
|
||||
handle = self.db.add_person(person,trans)
|
||||
|
||||
n = person.get_primary_name().get_name()
|
||||
n = NameDisplay.displayer.display(person)
|
||||
self.db.transaction_commit(trans,_('Add Person (%s)' % n))
|
||||
self.addperson(person)
|
||||
self.update_data(handle)
|
||||
|
Reference in New Issue
Block a user