Removed title() case business
svn: r9489
This commit is contained in:
parent
84748d6950
commit
747ccb04cf
@ -319,8 +319,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
|||||||
_("Given"),
|
_("Given"),
|
||||||
_("Common"),
|
_("Common"),
|
||||||
))
|
))
|
||||||
i = _nd.add_name_format(f.title(), f)
|
i = _nd.add_name_format(f, f)
|
||||||
node = self.fmt_model.append(row=[i, f.title(), f,
|
node = self.fmt_model.append(row=[i, f, f,
|
||||||
_nd.format_str(self.examplename, f)])
|
_nd.format_str(self.examplename, f)])
|
||||||
path = self.fmt_model.get_path(node)
|
path = self.fmt_model.get_path(node)
|
||||||
self.format_list.set_cursor(path,
|
self.format_list.set_cursor(path,
|
||||||
@ -340,15 +340,6 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
|
|||||||
database is simply changing the contents of the name file.
|
database is simply changing the contents of the name file.
|
||||||
"""
|
"""
|
||||||
if len(new_text) > 0 and text != new_text:
|
if len(new_text) > 0 and text != new_text:
|
||||||
retval = []
|
|
||||||
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)
|
|
||||||
num, name, fmt = self.selected_fmt[COL_NUM:COL_EXPL]
|
num, name, fmt = self.selected_fmt[COL_NUM:COL_EXPL]
|
||||||
node = self.fmt_model.get_iter(path)
|
node = self.fmt_model.get_iter(path)
|
||||||
oldname = self.fmt_model.get_value(node, COL_NAME)
|
oldname = self.fmt_model.get_value(node, COL_NAME)
|
||||||
@ -862,5 +853,5 @@ class NameFormatEditDlg:
|
|||||||
|
|
||||||
self.examplelabel.set_text(sample)
|
self.examplelabel.set_text(sample)
|
||||||
self.examplelabel.set_use_markup(True)
|
self.examplelabel.set_use_markup(True)
|
||||||
self.nameentry.set_text('<span weight="bold">%s</span>' % obj.get_text().title())
|
self.nameentry.set_text('<span weight="bold">%s</span>' % obj.get_text())
|
||||||
self.nameentry.set_use_markup(True)
|
self.nameentry.set_use_markup(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user