* src/GenericFilter.py: Do not attempt to translate user filters,
fix a problem with filter names that contain non-ASCII characters svn: r4884
This commit is contained in:
parent
2eedacefd2
commit
edf6e80023
@ -1,5 +1,7 @@
|
||||
2005-06-27 Julio Sanchez <jsanchez@users.sourceforge.net>
|
||||
* 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 <don@gramps-project.org>
|
||||
* src/ImageSelect.py: allow the path variable to be editable
|
||||
|
@ -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]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user