operators in grid are not translated, thanks Friedrich Weber
This commit is contained in:
@@ -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
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user