Gave Ed a middle name, fixed error in %codes
svn: r9480
This commit is contained in:
parent
7c2e374f46
commit
87ee404c3b
@ -252,7 +252,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
||||
# a dummy name to be used in the examples
|
||||
self.examplename = Name()
|
||||
self.examplename.set_title('Dr.')
|
||||
self.examplename.set_first_name('Edwin')
|
||||
self.examplename.set_first_name('Edwin Jose')
|
||||
self.examplename.set_surname_prefix('Rev.')
|
||||
self.examplename.set_surname('Smith')
|
||||
self.examplename.set_suffix('Sr')
|
||||
@ -344,6 +344,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
||||
for word in new_text.split():
|
||||
if word == word.upper():
|
||||
retval.append(word)
|
||||
elif len(word) > 0 and word[0] == '%':
|
||||
retval.append(word)
|
||||
else:
|
||||
retval.append(word.title())
|
||||
new_text = " ".join(retval)
|
||||
@ -517,11 +519,11 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
||||
# Display name:
|
||||
self.examplename = Name()
|
||||
self.examplename.set_title('Dr.')
|
||||
self.examplename.set_first_name('Edwin')
|
||||
self.examplename.set_first_name('Edwin Jose')
|
||||
self.examplename.set_surname_prefix('Rev.')
|
||||
self.examplename.set_surname('Smith')
|
||||
self.examplename.set_suffix('Sr')
|
||||
self.examplename.set_patronymic('Patronymic')
|
||||
self.examplename.set_patronymic('Wilson')
|
||||
self.examplename.set_call_name('Ed')
|
||||
# get the model for the combo and the treeview
|
||||
active = _nd.get_default_format()
|
||||
|
Loading…
Reference in New Issue
Block a user