Closed kashifpk closed 9 years ago
We also need support for translating the field header, so an option is needed to give a different field header name. Something like:
def translate_is_active(input_value):
return 'Yes' if input_value else 'No'
field_translations = {
'is_active': {
'header': 'Account Active',
'translator': translate_is_active
}
}
Allow translating a field's display value by calling a user defined function. So for example if a user wants to display 'Yes' when a field's value is true, it can be done with something like: