auth_user 中额外字段的验证消息不符合可用的翻译。还有其他人有这个问题吗?
Validation messages of extra fields in auth_user don't comply with available translations. Anyone else with this problem?
为 auth_user 创建额外字段时,这些字段的验证消息始终为英文。他们不符合可用的翻译。
默认字段不会发生这种情况。
我将此添加到 db.py
auth.settings.extra_fields['auth_user'] = [
Field('pagination',
'integer',
default=9,
label=T('Pagination'),
notnull=True,
required=True,
requires=IS_INT_IN_RANGE(5, 51),
),
]
插入无效值时,返回的信息总是
Enter an integer between 5 and 50
即使 web2py 语言不是英语并且语言文件有正确的可用翻译。
该问题被确定为某些验证器使用消息的方式中的错误。
web2py 组中的更多详细信息。
https://groups.google.com/forum/#!searchin/web2py/extra_fields%7Csort:date/web2py/7O_h5YotOsQ/cZ7OM43yCAAJ
为 auth_user 创建额外字段时,这些字段的验证消息始终为英文。他们不符合可用的翻译。
默认字段不会发生这种情况。
我将此添加到 db.py
auth.settings.extra_fields['auth_user'] = [
Field('pagination',
'integer',
default=9,
label=T('Pagination'),
notnull=True,
required=True,
requires=IS_INT_IN_RANGE(5, 51),
),
]
插入无效值时,返回的信息总是
Enter an integer between 5 and 50
即使 web2py 语言不是英语并且语言文件有正确的可用翻译。
该问题被确定为某些验证器使用消息的方式中的错误。 web2py 组中的更多详细信息。 https://groups.google.com/forum/#!searchin/web2py/extra_fields%7Csort:date/web2py/7O_h5YotOsQ/cZ7OM43yCAAJ