[table view] fix bug introduced in 7938:80c6e2155c3d leading to not translated table headers
--- a/view.py Fri Oct 14 13:50:46 2011 +0200
+++ b/view.py Fri Oct 14 14:41:44 2011 +0200
@@ -469,7 +469,7 @@
translate = lambda val: val
# XXX [0] because of missing Union support
rql_syntax_tree = self.cw_rset.syntax_tree()
- rqlstdescr = rql_syntax_tree.get_description(mainindex)[0]
+ rqlstdescr = rql_syntax_tree.get_description(mainindex, translate)[0]
labels = []
for colidx, label in enumerate(rqlstdescr):
labels.append(self.column_label(colidx, label, translate))
@@ -496,7 +496,7 @@
etypes = self.cw_rset.column_types(colidx)
if translate_func is not None:
etypes = map(translate_func, etypes)
- label = ','.join(etypes)
+ label = u','.join(etypes)
return label