#2700 #2490 do not translate argument on custom_filter.xml (Benny)

svn: r11964
This commit is contained in:
Jérôme Rapinat
2009-02-11 14:02:13 +00:00
parent a34cf168f3
commit 41515d57cf
5 changed files with 13 additions and 12 deletions

View File

@@ -195,8 +195,9 @@ class MyLesserEqualGreater(gtk.ComboBox):
cell = gtk.CellRendererText()
self.pack_start(cell, True)
self.add_attribute(cell, 'text', 0)
self.clist = [_('lesser than'), _('equal to'), _('greater than')]
for name in self.clist:
self.clist = ['lesser than', 'equal to', 'greater than']
self.clist_trans = [_('lesser than'), _('equal to'), _('greater than')]
for name in self.clist_trans:
store.append(row=[name])
self.set_active(default)
self.show()
@@ -204,14 +205,14 @@ class MyLesserEqualGreater(gtk.ComboBox):
def get_text(self):
active = self.get_active()
if active < 0:
return _('equal to')
return 'equal to'
return self.clist[active]
def set_text(self, val):
if val in self.clist:
self.set_active(self.clist.index(val))
else:
self.set_active(self.clist.index(_('equal to')))
self.set_active(self.clist.index('equal to'))
#-------------------------------------------------------------------------
#