perf: 翻译 (#10472)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2023-05-16 18:35:48 +08:00
committed by GitHub
parent cfc91047fd
commit a7fed21819
6 changed files with 92 additions and 81 deletions

View File

@@ -88,8 +88,8 @@ def authenticate(request=None, **credentials):
else:
if temp_user is not None:
source_display = temp_user.source_display
request.error_message = '''The administrator has enabled 'Only allow login from user source'.
The current user source is {}. Please contact the administrator.'''.format(source_display)
request.error_message = _('''The administrator has enabled 'Only allow login from user source'.
The current user source is {}. Please contact the administrator.''').format(source_display)
return temp_user
# The credentials supplied are invalid to all backends, fire signal