perf: i18n Personal Settings -> All sub menu

pull/13203/head
Bai 2024-05-11 11:17:02 +08:00
parent 2a7b48c83d
commit af1adc3baa
13 changed files with 2022 additions and 10858 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ceeb2860215e86f3088de6dc00e035d941098718221b9359e2c2cce0b20ee6b1
size 2579
oid sha256:73ebd3930fdb365ab6699eb32732434bc9c54fce8cc79dbc3b2960b0ce9dfe1e
size 2790

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:72af515e8895a91e456eb9d0ef8bea352eb23777c015680a21f6da5708303df6
size 173912
oid sha256:b33f0c2f32eec3e3cc51d13da2f70b8d2a1e9f746d434449db4583812b9bcfb4
size 171986

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:02464a8bd6b0c6f13f9defc630913ce9a0638777a4a115fd403a0dd59a112b0b
size 142905
oid sha256:a24392f770a9a914b0ee9026289899e8b95407e59061b04a6fe4357310fdf633
size 143036

File diff suppressed because it is too large Load Diff

View File

@ -34,6 +34,7 @@
"AccountTemplateUpdateSecretHelpText": "The account list shows the accounts created through the template. When the secret is updated, the ciphertext of the accounts created through the template will be updated.",
"Accounts": "Accounts",
"Action": "Action",
"PermAction": "Permission Action",
"ActionCount": "Actions",
"ActionSetting": "Action Settings",
"Actions": "Action",
@ -155,7 +156,7 @@
"AuthSAMLKeyHelpText": "SP Certificates and keys are used for encrypted communication with IDP",
"AuthSaml2UserAttrMapHelpText": "The keys on the left are SAML2 user attributes, the values on the right are authentication platform user attributes",
"AuthSecurity": "Auth security",
"AuthSetting": "Authentication",
"PasswordAndSSHKey": "Password & SSH Key",
"AuthSettings": "Authentication Configuration",
"AuthUserAttrMapHelpText": "The Key on the Left Belongs to the JumpServer User Properties, and the Value on the Right Belongs to the Authentication Platform User Properties",
"Authentication": "Authentication",
@ -294,7 +295,7 @@
"ConnectMethodAclUpdate": "Update the Connect Method Control",
"ConnectWebSocketError": "Connection to WebSocket Failed",
"ConnectionDropped": "Connection Disconnected",
"ConnectionToken": "Connection token",
"ConnectionToken": "Connection tokens",
"ConnectionTokenList": "The connection token is a type of authentication information that combines identity verification with connecting assets. It supports one-click user login to assets. Currently supported components include: KoKo, Lion, Magnus, Razor, etc.",
"Console": "Console",
"Consult": "Consult",
@ -590,7 +591,8 @@
"JobManagement": "Jobs",
"JobUpdate": "Update the Job",
"KingSoftCloud": "KingSoft Cloud",
"KokoSettingUpdate": "Koko",
"KokoSetting": "Koko",
"GenericSetting": "Generic",
"LAN": "Bulk Account Add Results",
"LDAPUser": "LDAP Users",
"Label": "Label",
@ -643,10 +645,10 @@
"LoginUsers": "Active Account",
"LogoIndexTip": "Tip: It will be displayed in the upper left corner of the page (Recommended image size: 185px*55px)",
"LogoLogoutTip": "Tip: It will be displayed on the web terminal page of Enterprise Edition users (recommended image size: 82px*82px)",
"Logout": "Logout",
"Logout": "Sign out",
"LogsAudit": "Activities",
"Lowercase": "Lowercase",
"LunaSettingUpdate": "Luna",
"LunaSetting": "Luna",
"MFAErrorMsg": "MFA errors, please check",
"MFAOfUserFirstLoginPersonalInformationImprovementPage": "Enable multi-factor authentication to make your account more secure. <br/>After enabling, you will enter the multi-factor authentication binding process the next time you log in; you can also directly bind in (Personal Information->Quick Modification->Change Multi-factor Settings)!",
"MFAOfUserFirstLoginUserGuidePage": "In order to protect your and the company's security, please carefully safeguard important sensitive information such as your account, password, and key (for example, set a complex password, and enable multi-factor authentication) <br/> Personal information such as email, mobile number, and WeChat are only used for user authentication and platform internal message notifications.",
@ -670,7 +672,7 @@
"MenuPermissions": "Policies",
"MenuUsers": "Users",
"Message": "Message",
"MessageSubscription": "Message Subscription",
"NotificationConfiguration": "Notification Configuration",
"MessageType": "Message Type",
"MfaLevel": "MFA",
"Min": "Min",
@ -729,7 +731,8 @@
"OfflineSuccessMsg": "Offline Successfully",
"OfflineUpload": "Offline Upload",
"OldPassword": "Old Password",
"OldSSHKey": "Old SSH Public Key",
"OldPublicKey": "Old Public Key",
"NewPublicKey": "New Public Key",
"OneAssignee": "First-Level Approver",
"OneAssigneeType": "First-Level Handler Type",
"OneClickReadMsg": "Are you sure you want to mark the current information as read?",
@ -948,8 +951,8 @@
"SMSProvider": "SMS Service Provider",
"SMTP": "Email Server",
"SSHKey": "SSH Key",
"SSHKeyOfProfileSSHUpdatePage": "Copy Your Public Key Here",
"SSHKeySetting": "SSH Key",
"SSHKeyOfProfileSSHUpdatePage": "You can reset and download the SSH public key by clicking the button below, or copy your SSH public key and submit it.",
"LoginSSHKeySetting": "Login SSH Key",
"SSHPort": "SSH Port",
"SSHSecretKey": "SSH Key",
"SafeCommand": "Secure Command",
@ -1022,7 +1025,7 @@
"LarkOAuth": "Lark OAuth",
"SetMFA": "Multi-factor authentication",
"SlackOAuth": "Slack OAuth",
"SetStatus": "Status Setting",
"Configured": "Configured",
"SetSuccess": "Successfully Set",
"SetToDefault": "Set as Default",
"SetToDefaultStorage": "Set as Default Storage",
@ -1113,7 +1116,7 @@
"TaskMonitor": "Monitoring",
"TechnologyConsult": "Technical Consultation",
"TempPasswordTip": "The temporary password is valid for 300 seconds and becomes invalid immediately after use",
"TempPassword": "Temporary password",
"TempToken": "Temporary tokens",
"TemplateAdd": "Add from template",
"TemplateCreate": "Create a Template",
"TemplateHelpText": "When selecting a template to add, accounts that do not exist under the asset will be automatically created and pushed",
@ -1186,7 +1189,7 @@
"UpdateEndpointRule": "Update the Endpoint Rule",
"UpdateErrorMsg": "Update Failed",
"UpdateNodeAssetHardwareInfo": "Update Node Assets Hardware Information",
"UpdateSSHKey": "Change SSH Public Key",
"NewSSHKey": "New SSH Key",
"UpdateSelected": "Update selected",
"UpdateSuccessMsg": "Update Successful",
"Updated": "Updated",
@ -1223,7 +1226,7 @@
"UserLoginTrend": "Account Login Trend",
"PersonalSettings": "Personal Settings",
"UserSession": "Asset Sessions",
"UserSetting": "Preference",
"Preferences": "Preferences",
"UserSwitchFrom": "Switch from",
"UserUpdate": "Update the User",
"Username": "Username",
@ -1268,5 +1271,9 @@
"Workbench": "Workbench",
"Workspace": "Workspace",
"Yes": "Yes",
"ZStack": "ZStack"
"ZStack": "ZStack",
"YourProfile": "Your profile",
"AccessKeys": "Access keys",
"InformationModification": "Information Modification",
"Phone": "Phone"
}

View File

@ -26,6 +26,7 @@
"AccountTemplateUpdateSecretHelpText": "账号列表展示通过模版创建的账号。更新密文时,会更新通过模版所创建账号的密文。",
"Accounts": "账号管理",
"Action": "动作",
"PermAction": "授权动作",
"ActionCount": "动作数量",
"ActionSetting": "动作设置",
"Actions": "动作",
@ -142,7 +143,7 @@
"AuthSAMLKeyHelpText": "SP 证书和密钥 是用来和 IDP 加密通信的",
"AuthSaml2UserAttrMapHelpText": "左侧的键为 SAML2 用户属性,右侧的值为认证平台用户属性",
"AuthSecurity": "认证安全",
"AuthSetting": "认证设置",
"PasswordAndSSHKey": "认证设置",
"AuthSettings": "认证配置",
"AuthUserAttrMapHelpText": "左侧的键为 JumpServer 用户属性,右侧的值为认证平台用户属性",
"Authentication": "认证",
@ -562,7 +563,8 @@
"JobManagement": "作业管理",
"JobUpdate": "更新作业",
"KingSoftCloud": "金山云",
"KokoSettingUpdate": "Koko 配置设置",
"KokoSetting": "Koko 配置",
"GenericSetting": "通用配置",
"LAN": "局域网",
"LDAPUser": "LDAP 用户",
"Label": "标签",
@ -605,7 +607,7 @@
"LoginImageTip": "提示:将会显示在企业版用户登录页面(建议图片大小为: 492*472px",
"LoginLog": "登录日志",
"LoginNum": "登录数",
"LoginPasswordSetting": "登录密码设置",
"LoginPasswordSetting": "登录密码",
"LoginRequiredMsg": "账号已退出,请重新登录",
"LoginSucceeded": "登录成功",
"LoginTitleTip": "提示:将会显示在企业版用户 SSH 登录 KoKo 登录页面eg: 欢迎使用JumpServer开源堡垒机)",
@ -617,7 +619,7 @@
"Logout": "退出登录",
"LogsAudit": "日志审计",
"Lowercase": "小写字母",
"LunaSettingUpdate": "Luna 配置设置",
"LunaSetting": "Luna 配置",
"MFAErrorMsg": "MFA错误请检查",
"MFAOfUserFirstLoginPersonalInformationImprovementPage": "启用多因子认证,使账号更加安全。<br/> 启用之后您将会在下次登录时进入多因子认证绑定流程;您也可以在(个人信息->快速修改->更改多因子设置)中直接绑定!",
"MFAOfUserFirstLoginUserGuidePage": "为了保护您和公司的安全,请妥善保管您的账户、密码和密钥等重要敏感信息;(如:设置复杂密码,并启用多因子认证)<br/> 邮箱、手机号、微信等个人信息,仅作为用户认证和平台内部消息通知使用。",
@ -641,7 +643,7 @@
"MenuPermissions": "授权管理",
"MenuUsers": "用户管理",
"Message": "消息",
"MessageSubscription": "消息订阅",
"NotificationConfiguration": "通知设置",
"MessageType": "消息类型",
"MfaLevel": "多因子认证",
"Min": "分钟",
@ -696,7 +698,8 @@
"OfflineSuccessMsg": "下线成功",
"OfflineUpload": "离线上传",
"OldPassword": "原密码",
"OldSSHKey": "原来SSH公钥",
"OldPublicKey": "久 SSH 公钥",
"NewPublicKey": "新 SSH 公钥",
"OneAssignee": "一级受理人",
"OneAssigneeType": "一级受理人类型",
"OneClickReadMsg": "你确定要将当前信息标记为已读吗?",
@ -907,8 +910,8 @@
"SMSProvider": "短信服务商",
"SMTP": "邮件服务器",
"SSHKey": "SSH公钥",
"SSHKeyOfProfileSSHUpdatePage": "复制你的公钥到这里",
"SSHKeySetting": "SSH公钥设置",
"SSHKeyOfProfileSSHUpdatePage": "你可以点击下面的按钮重置并下载 SSH 公钥,或者复制你的 SSH 公钥并提交。",
"LoginSSHKeySetting": "登录 SSH 公钥",
"SSHPort": "SSH 端口",
"SSHSecretKey": "SSH 密钥",
"SafeCommand": "安全命令",
@ -978,7 +981,7 @@
"LarkOAuth": "Lark 认证",
"SetMFA": "MFA 认证",
"SlackOAuth": "Slack 认证",
"SetStatus": "设置状态",
"Configured": "已配置",
"SetSuccess": "设置成功",
"SetToDefault": "设为默认",
"SetToDefaultStorage": "设置为默认存储",
@ -1064,7 +1067,7 @@
"TaskMonitor": "任务监控",
"TechnologyConsult": "技术咨询",
"TempPasswordTip": "临时密码有效期为 300 秒,使用后立刻失效",
"TempPassword": "临时密码",
"TempToken": "临时密码",
"TemplateAdd": "模版添加",
"TemplateCreate": "创建模版",
"TemplateHelpText": "选择模版添加时,会自动创建资产下不存在的账号并推送",
@ -1136,7 +1139,7 @@
"UpdateEndpointRule": "更新端点规则",
"UpdateErrorMsg": "更新失败",
"UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息",
"UpdateSSHKey": "更新SSH公钥",
"NewSSHKey": "SSH 公钥",
"UpdateSelected": "更新所选",
"UpdateSuccessMsg": "更新成功",
"Updated": "已更新",
@ -1173,7 +1176,7 @@
"UserLoginTrend": "账号登录趋势",
"PersonalSettings": "个人设置",
"UserSession": "用户会话",
"UserSetting": "偏好设置",
"Preferences": "偏好设置",
"UserUpdate": "更新用户",
"Username": "用户名",
"UsernamePlaceholder": "请输入用户名",
@ -1216,5 +1219,10 @@
"Workbench": "工作台",
"Workspace": "工作空间",
"Yes": "是",
"ZStack": "ZStack"
"ZStack": "ZStack",
"YourProfile": "个人信息",
"AccessKeys": "访问密钥",
"InformationModification": "信息更改",
"Phone": "手机"
}

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d73b2f2320bf2be7b4223de27c095e6b69de1b85d21722a0589709bd5315620
size 145170

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc91c07e525f289e4277ec70a51438c10b694a4111f922bd4ee4b20f6e0f0cd0
size 2832

View File

@ -1,159 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-24 11:05+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-ZhConverter: 繁化姬 dict-74c8d060-r1048 @ 2024/04/07 18:35:03 | https://zhconvert.org\n"
#: static/js/jumpserver.js:259
msgid "Update is successful!"
msgstr "更新成功"
#: static/js/jumpserver.js:261
msgid "An unknown error occurred while updating.."
msgstr "更新時發生未知錯誤"
#: static/js/jumpserver.js:324 static/js/jumpserver.js:362
#: static/js/jumpserver.js:364
msgid "Error"
msgstr "錯誤"
#: static/js/jumpserver.js:324
msgid "Being used by the asset, please unbind the asset first."
msgstr "正在被資產使用中,請先解除資產綁定"
#: static/js/jumpserver.js:330 static/js/jumpserver.js:371
msgid "Delete the success"
msgstr "刪除成功"
#: static/js/jumpserver.js:337
msgid "Are you sure about deleting it?"
msgstr "你確定刪除嗎 ?"
#: static/js/jumpserver.js:341 static/js/jumpserver.js:382
msgid "Cancel"
msgstr "取消"
#: static/js/jumpserver.js:343 static/js/jumpserver.js:384
msgid "Confirm"
msgstr "確認"
#: static/js/jumpserver.js:362
msgid ""
"The organization contains undeleted information. Please try again after "
"deleting"
msgstr "組織中包含未刪除資訊,請刪除後重試"
#: static/js/jumpserver.js:364
msgid ""
"Do not perform this operation under this organization. Try again after "
"switching to another organization"
msgstr "請勿在此組織下執行此操作,切換到其他組織後重試"
#: static/js/jumpserver.js:378
msgid ""
"Please ensure that the following information in the organization has been "
"deleted"
msgstr "請確保組織內的以下資訊已刪除"
#: static/js/jumpserver.js:379
msgid ""
"User list、User group、Asset list、Domain list、Admin user、System user、"
"Labels、Asset permission"
msgstr ""
"用戶列表、用戶組、資產列表、網域列表、特權用戶、系統用戶、標籤管理、資產授權"
"規則"
#: static/js/jumpserver.js:416
msgid "Loading"
msgstr "載入中"
#: static/js/jumpserver.js:417
msgid "Search"
msgstr "搜索"
#: static/js/jumpserver.js:420
#, javascript-format
msgid "Selected item %d"
msgstr "選中 %d 項"
#: static/js/jumpserver.js:424
msgid "Per page _MENU_"
msgstr "每頁 _MENU_"
#: static/js/jumpserver.js:425
msgid ""
"Displays the results of items _START_ to _END_; A total of _TOTAL_ entries"
msgstr "顯示第 _START_ 至 _END_ 項結果; 總共 _TOTAL_ 項"
#: static/js/jumpserver.js:428
msgid "No match"
msgstr "沒有匹配項"
#: static/js/jumpserver.js:429
msgid "No record"
msgstr "沒有記錄"
#: static/js/jumpserver.js:582
msgid "Unknown error occur"
msgstr "出現未知錯誤"
#: static/js/jumpserver.js:838
msgid "Password minimum length {N} bits"
msgstr "密碼最小長度 {N} 位"
#: static/js/jumpserver.js:839
msgid "Must contain capital letters"
msgstr "必須包含大寫字母"
#: static/js/jumpserver.js:840
msgid "Must contain lowercase letters"
msgstr "必須包含小寫字母"
#: static/js/jumpserver.js:841
msgid "Must contain numeric characters"
msgstr "必須包含數字字元"
#: static/js/jumpserver.js:842
msgid "Must contain special characters"
msgstr "必須包含特殊字元"
#: static/js/jumpserver.js:984
msgid "Export failed"
msgstr "匯出失敗"
#: static/js/jumpserver.js:1001
msgid "Import Success"
msgstr "匯入成功"
#: static/js/jumpserver.js:1006
msgid "Update Success"
msgstr "更新成功"
#: static/js/jumpserver.js:1007
msgid "Count"
msgstr "數量"
#: static/js/jumpserver.js:1035
msgid "Import failed"
msgstr "匯入失敗"
#: static/js/jumpserver.js:1040
msgid "Update failed"
msgstr "更新失敗"
#: static/js/plugins/moment/moment.min.js:6
msgid "\n"
msgstr ""

View File

@ -6,16 +6,23 @@ from ...models import Preference
class BasicSerializer(serializers.Serializer):
has_secret_key = serializers.SerializerMethodField()
has_secret_key = serializers.SerializerMethodField(
help_text=_(
'The password for file encryption, '
'used for decryption when the system sends emails containing file attachments. '
'<br>'
'Such as: account backup files, account password change results files'
)
)
secret_key = EncryptedField(
required=False, max_length=1024,
write_only=True, allow_blank=True,
label=_('New file encryption password')
label=_('New password'),
)
secret_key_again = EncryptedField(
required=False, max_length=1024,
write_only=True, allow_blank=True,
label=_('Confirm file encryption password')
label=_('Confirm password')
)
def get_has_secret_key(self, obj):