From 747ccb04cfc72fa2ac91cfb5469d78263c311e6c Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 11 Dec 2007 14:35:57 +0000 Subject: [PATCH] Removed title() case business svn: r9489 --- src/GrampsCfg.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index 25a014ad6..4fc787e95 100644 --- a/src/GrampsCfg.py +++ b/src/GrampsCfg.py @@ -319,8 +319,8 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): _("Given"), _("Common"), )) - i = _nd.add_name_format(f.title(), f) - node = self.fmt_model.append(row=[i, f.title(), f, + i = _nd.add_name_format(f, f) + node = self.fmt_model.append(row=[i, f, f, _nd.format_str(self.examplename, f)]) path = self.fmt_model.get_path(node) self.format_list.set_cursor(path, @@ -340,15 +340,6 @@ class GrampsPreferences(ManagedWindow.ManagedWindow): database is simply changing the contents of the name file. """ 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] node = self.fmt_model.get_iter(path) oldname = self.fmt_model.get_value(node, COL_NAME) @@ -862,5 +853,5 @@ class NameFormatEditDlg: self.examplelabel.set_text(sample) self.examplelabel.set_use_markup(True) - self.nameentry.set_text('%s' % obj.get_text().title()) + self.nameentry.set_text('%s' % obj.get_text()) self.nameentry.set_use_markup(True)