Fix translate issue for Trackers tree in sidebar
This commit is contained in:
parent
53b4a06fd1
commit
808d9bfba8
|
@ -232,14 +232,13 @@ class FilterTreeView(component.Component):
|
||||||
pix = self.get_pixmap(cat, value)
|
pix = self.get_pixmap(cat, value)
|
||||||
label = value
|
label = value
|
||||||
|
|
||||||
if cat == "state" or cat == "tracker_host":
|
|
||||||
label = _t(value)
|
|
||||||
|
|
||||||
if label == "":
|
if label == "":
|
||||||
if cat == "tracker_host":
|
if cat == "tracker_host":
|
||||||
label = _t("none")
|
label = _t("none")
|
||||||
elif cat == "label":
|
elif cat == "label":
|
||||||
label = _t("no_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])
|
row = self.treestore.append(self.cat_nodes[cat],[cat, value, label, count , pix, True])
|
||||||
self.filters[(cat, value)] = row
|
self.filters[(cat, value)] = row
|
||||||
|
|
Loading…
Reference in New Issue