From edf6e80023ef7b92c9b9e435967332aa2e805271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julio=20S=C3=A1nchez?= Date: Mon, 27 Jun 2005 15:34:36 +0000 Subject: [PATCH] * src/GenericFilter.py: Do not attempt to translate user filters, fix a problem with filter names that contain non-ASCII characters svn: r4884 --- gramps2/ChangeLog | 2 ++ gramps2/src/GenericFilter.py | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 485abb4a8..cb7bb1a82 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,5 +1,7 @@ 2005-06-27 Julio Sanchez * src/po/es.po: Translation fixes + * src/GenericFilter.py: Do not attempt to translate user filters, + fix a problem with filter names that contain non-ASCII characters 2005-06-26 Don Allingham * src/ImageSelect.py: allow the path variable to be editable diff --git a/gramps2/src/GenericFilter.py b/gramps2/src/GenericFilter.py index a7a525ee5..814f10c4b 100644 --- a/gramps2/src/GenericFilter.py +++ b/gramps2/src/GenericFilter.py @@ -2296,14 +2296,14 @@ class GrampsFilterComboBox(gtk.ComboBox): cnt += 1 for filt in SystemFilters.get_filters(): - self.store.append(row=[_(filt.get_name())]) + self.store.append(row=[filt.get_name()]) self.map[filt.get_name()] = filt if default != "" and default == filt.get_name(): active = cnt cnt += 1 for filt in CustomFilters.get_filters(): - self.store.append(row=[_(filt.get_name())]) + self.store.append(row=[filt.get_name()]) self.map[filt.get_name()] = filt if default != "" and default == filt.get_name(): active = cnt @@ -2324,7 +2324,7 @@ class GrampsFilterComboBox(gtk.ComboBox): active = self.get_active() if active < 0: return None - key = self.store[active][0] + key = unicode(self.store[active][0]) return self.map[key]