mirror of https://github.com/jumpserver/jumpserver
perf: 更新翻译 (#5438)
* perf: 更新翻译 * perf: 更新翻译 Co-authored-by: Bai <bugatti_it@163.com>pull/5437/head
parent
be7a93d81a
commit
083f061665
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -76,7 +76,9 @@ class ReplayStorageTypeAzureSerializer(serializers.Serializer):
|
||||||
china = 'core.chinacloudapi.cn', 'core.chinacloudapi.cn'
|
china = 'core.chinacloudapi.cn', 'core.chinacloudapi.cn'
|
||||||
international = 'core.windows.net', 'core.windows.net'
|
international = 'core.windows.net', 'core.windows.net'
|
||||||
|
|
||||||
CONTAINER_NAME = serializers.CharField(max_length=1024, label=_('Container'), allow_null=True)
|
CONTAINER_NAME = serializers.CharField(
|
||||||
|
max_length=1024, label=_('Container name'), allow_null=True
|
||||||
|
)
|
||||||
ACCOUNT_NAME = serializers.CharField(max_length=1024, label=_('Account name'), allow_null=True)
|
ACCOUNT_NAME = serializers.CharField(max_length=1024, label=_('Account name'), allow_null=True)
|
||||||
ACCOUNT_KEY = serializers.CharField(max_length=1024, label=_('Account key'), allow_null=True)
|
ACCOUNT_KEY = serializers.CharField(max_length=1024, label=_('Account key'), allow_null=True)
|
||||||
ENDPOINT_SUFFIX = serializers.ChoiceField(
|
ENDPOINT_SUFFIX = serializers.ChoiceField(
|
||||||
|
|
|
@ -47,8 +47,10 @@ class UserForgotPasswordView(FormView):
|
||||||
return self.form_invalid(form)
|
return self.form_invalid(form)
|
||||||
|
|
||||||
if not user.is_local:
|
if not user.is_local:
|
||||||
error = _('The user is from {} and goes there to change the password'
|
error = _(
|
||||||
''.format(user.get_source_display()))
|
'The user is from A, please go to the corresponding system to change the password'
|
||||||
|
''.format(user.get_source_display())
|
||||||
|
)
|
||||||
form.add_error('email', error)
|
form.add_error('email', error)
|
||||||
return self.form_invalid(form)
|
return self.form_invalid(form)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue