operators in grid are not translated, thanks Friedrich Weber

This commit is contained in:
mdipierro
2012-10-25 10:02:40 -05:00
parent 1b15818ab6
commit c7019930fd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.2.1 (2012-10-25 08:47:29) stable
Version 2.2.1 (2012-10-25 10:02:32) stable
+1 -1
View File
@@ -1581,7 +1581,7 @@ class SQLFORM(FORM):
label = isinstance(
field.label, str) and T(field.label) or field.label
selectfields.append(OPTION(label, _value=str(field)))
operators = SELECT(*[T(option) for option in options])
operators = SELECT(*[OPTION(T(option), _value=option) for option in options])
if field.type == 'boolean':
value_input = SELECT(
OPTION(T("True"), _value="T"),