Fixed name type properties

svn: r815
This commit is contained in:
Don Allingham 2002-03-05 05:13:18 +00:00
parent 0258a15b09
commit 17a815ca05
2 changed files with 6 additions and 1 deletions

View File

@ -59,6 +59,10 @@ class NameEditor:
self.combo = AutoComp.AutoCombo(slist,const.surnames) self.combo = AutoComp.AutoCombo(slist,const.surnames)
self.priv = self.top.get_widget("priv") self.priv = self.top.get_widget("priv")
types = const.NameTypesMap.keys()
types.sort()
self.typecomp = AutoComp.AutoCombo(self.type_field,types)
if self.name: if self.name:
self.srcreflist = self.name.getSourceRefList() self.srcreflist = self.name.getSourceRefList()
else: else:
@ -104,6 +108,7 @@ class NameEditor:
priv = self.priv.get_active() priv = self.priv.get_active()
type = self.type_field.entry.get_text() type = self.type_field.entry.get_text()
if const.NameTypesMap.has_key(type): if const.NameTypesMap.has_key(type):
type = const.NameTypesMap[type] type = const.NameTypesMap[type]
else: else:

View File

@ -859,5 +859,5 @@ lds_ssealing = [
NameTypesMap = { NameTypesMap = {
_("Also Known As") : "Also Known As", _("Also Known As") : "Also Known As",
_("Married") : "Married", _("Married Name") : "Married Name",
} }