* 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:
@ -1,5 +1,7 @@
|
|||||||
2005-06-27 Julio Sanchez <jsanchez@users.sourceforge.net>
|
2005-06-27 Julio Sanchez <jsanchez@users.sourceforge.net>
|
||||||
* src/po/es.po: Translation fixes
|
* 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>
|
2005-06-26 Don Allingham <don@gramps-project.org>
|
||||||
* src/ImageSelect.py: allow the path variable to be editable
|
* src/ImageSelect.py: allow the path variable to be editable
|
||||||
|
@ -2296,14 +2296,14 @@ class GrampsFilterComboBox(gtk.ComboBox):
|
|||||||
cnt += 1
|
cnt += 1
|
||||||
|
|
||||||
for filt in SystemFilters.get_filters():
|
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
|
self.map[filt.get_name()] = filt
|
||||||
if default != "" and default == filt.get_name():
|
if default != "" and default == filt.get_name():
|
||||||
active = cnt
|
active = cnt
|
||||||
cnt += 1
|
cnt += 1
|
||||||
|
|
||||||
for filt in CustomFilters.get_filters():
|
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
|
self.map[filt.get_name()] = filt
|
||||||
if default != "" and default == filt.get_name():
|
if default != "" and default == filt.get_name():
|
||||||
active = cnt
|
active = cnt
|
||||||
@ -2324,7 +2324,7 @@ class GrampsFilterComboBox(gtk.ComboBox):
|
|||||||
active = self.get_active()
|
active = self.get_active()
|
||||||
if active < 0:
|
if active < 0:
|
||||||
return None
|
return None
|
||||||
key = self.store[active][0]
|
key = unicode(self.store[active][0])
|
||||||
return self.map[key]
|
return self.map[key]
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user