Fix translate issue for Trackers tree in sidebar

This commit is contained in:
Calum Lind 2011-02-14 20:57:33 +00:00
parent 53b4a06fd1
commit 808d9bfba8
1 changed files with 2 additions and 3 deletions

View File

@ -232,14 +232,13 @@ class FilterTreeView(component.Component):
pix = self.get_pixmap(cat, value)
label = value
if cat == "state" or cat == "tracker_host":
label = _t(value)
if label == "":
if cat == "tracker_host":
label = _t("none")
elif cat == "label":
label = _t("no_label")
elif cat == "state" or cat == "tracker_host":
label = _t(value)
row = self.treestore.append(self.cat_nodes[cat],[cat, value, label, count , pix, True])
self.filters[(cat, value)] = row