* src/EditPerson.py: simpler way of handling patronymic names

based of LANG
* src/FamilyView.py: clear childlist if no spouse exists


svn: r3768
This commit is contained in:
Don Allingham
2004-11-30 03:53:51 +00:00
parent 35bc6fed1e
commit 3db3d91c2d
3 changed files with 11 additions and 7 deletions

View File

@ -85,9 +85,6 @@ pycode_tgts = [('url', 0, 0),
_use_patronymic = [
"ru","RU","ru_RU","koi8r","ru_koi8r","russian","Russian",
"ru_RU.koi8r","ru_RU.KOI8-R","ru_RU.utf8","ru_RU.UTF8",
"ru_RU.utf-8","ru_RU.UTF-8","ru_RU.iso88595","ru_RU.iso8859-5",
"ru_RU.iso-8859-5"
]
@ -98,7 +95,7 @@ _use_patronymic = [
#-------------------------------------------------------------------------
class EditPerson:
use_patronymic = os.environ.get('LANG') in _use_patronymic
use_patronymic = os.environ.get('LANG').split('.')[0] in _use_patronymic
def __init__(self,parent,person,db,callback=None):
"""Creates an edit window. Associates a person with the window."""