perf: i18n Personal Settings -> Profile

pull/13203/head
Bai 2024-05-09 15:26:38 +08:00
parent 9f45eeeb1f
commit 2a7b48c83d
4 changed files with 33 additions and 31 deletions

View File

@ -2632,7 +2632,7 @@ msgstr ""
#: settings/serializers/auth/feishu.py:13 users/models/user.py:750
#: users/models/user.py:918
msgid "FeiShu"
msgstr "Lark"
msgstr ""
#: audits/signal_handlers/login_log.py:39 authentication/views/login.py:95
#: authentication/views/slack.py:87 notifications/backends/__init__.py:15
@ -4671,11 +4671,11 @@ msgstr ""
#: rbac/builtin.py:115
msgid "SystemAdmin"
msgstr ""
msgstr "System Admin"
#: rbac/builtin.py:118
msgid "SystemAuditor"
msgstr ""
msgstr "System Auditor"
#: rbac/builtin.py:121
msgid "SystemComponent"
@ -4683,15 +4683,15 @@ msgstr ""
#: rbac/builtin.py:127
msgid "OrgAdmin"
msgstr "Org Admin"
msgstr "Organizational Admin"
#: rbac/builtin.py:130
msgid "OrgAuditor"
msgstr "Org Auditor"
msgstr "Organizational Auditor"
#: rbac/builtin.py:133
msgid "OrgUser"
msgstr "Org User"
msgstr "Organizational user"
#: rbac/models/menu.py:13
msgid "Menu permission"

View File

@ -172,7 +172,7 @@
"BaiduCloud": "Baidu Cloud",
"BasePort": "Listening Ports",
"Basic": "Basic",
"BasicInfo": "Basic",
"BasicInfo": "Basic information",
"BasicSetting": "Basic",
"BatchClearErrorMsg": "Batch Clearing Failed:",
"BatchConsent": "Batch Approval",
@ -462,7 +462,7 @@
"FailedAsset": "Failed Assets",
"FaviconTip": "Note: Website Icon (Suggested Image Size: 16px*16px)",
"Features": "Features",
"FeiShu": "Lark",
"FeiShu": "FeiShu",
"FeiShuTest": "Test",
"FieldRequiredError": "This field is required",
"FileExplorer": "File Explorer",
@ -749,10 +749,10 @@
"OrgAdmin": "Organization Admin",
"OrgAuditor": "Org Auditors",
"OrgName": "Authorized Organization Name",
"OrgRole": "Org Roles",
"OrgRole": "Organizational Roles",
"OrgRoleHelpMsg": "Organization roles are roles tailored to individual organizations within the platform. These roles are assigned when inviting users to join a particular organization and dictate their permissions and access levels within that organization. Unlike system roles, organization roles are customizable and apply only within the scope of the organization they are assigned to.",
"OrgRoleHelpText": "The Org role is the user's role within the current organization",
"OrgRoles": "Org Role",
"OrgRoles": "Organizational Roles",
"OrgUser": "Organize Users",
"OrganizationCreate": "Create a organization",
"OrganizationDetail": "Organization Details",
@ -1016,16 +1016,17 @@
"SessionsAudit": "Sessions",
"SessionsNum": "Sessions",
"Set": "Configured",
"SetDingTalk": "DingTalk OAuth",
"DingTalkOAuth": "DingTalk OAuth",
"SetFailed": "Setting Failed",
"SetFeiShu": "Set Feishu Authentication",
"SetMFA": "Multi-factor Auth",
"SetSlack": "Slack OAuth",
"FeiShuOAuth": "Feishu OAuth",
"LarkOAuth": "Lark OAuth",
"SetMFA": "Multi-factor authentication",
"SlackOAuth": "Slack OAuth",
"SetStatus": "Status Setting",
"SetSuccess": "Successfully Set",
"SetToDefault": "Set as Default",
"SetToDefaultStorage": "Set as Default Storage",
"SetWeCom": "WeCom OAuth",
"WeComOAuth": "WeCom OAuth",
"Setting": "Setting",
"SettingInEndpointHelpText": "Configure service address and port in System Settings / Component Settings / Server Endpoints",
"Settings": "System Settings",
@ -1111,7 +1112,8 @@
"TaskList": "System Tasks",
"TaskMonitor": "Monitoring",
"TechnologyConsult": "Technical Consultation",
"TempPassword": "The temporary password is valid for 300 seconds and becomes invalid immediately after use",
"TempPasswordTip": "The temporary password is valid for 300 seconds and becomes invalid immediately after use",
"TempPassword": "Temporary password",
"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",
@ -1209,8 +1211,7 @@
"UserGroupDetail": "User Group Details",
"UserGroupList": "Groups",
"UserGroupUpdate": "Update the User Group",
"UserGroups": "User Groups",
"UserInformation": "User Info",
"UserGroups": "Groups",
"UserList": "Users",
"UserLoginACLHelpMsg": "When logging into the system, the user's login IP and time range can be audited to determine whether they are allowed to log into the system (effective globally)",
"UserLoginAclCreate": "Create a User Login Control",
@ -1220,7 +1221,7 @@
"UserLoginLimit": "User Restriction",
"IpDomain": "Address",
"UserLoginTrend": "Account Login Trend",
"UserProfile": "Profile",
"PersonalSettings": "Personal Settings",
"UserSession": "Asset Sessions",
"UserSetting": "Preference",
"UserSwitchFrom": "Switch from",

View File

@ -778,7 +778,6 @@
"PrivilegedOnly": "仅特权账号",
"PrivilegedTemplate": "特权的",
"Product": "产品",
"Profile": "个人信息",
"ProfileSetting": "个人信息设置",
"Project": "项目名",
"Prompt": "提示词",
@ -973,16 +972,17 @@
"SessionsAudit": "会话审计",
"SessionsNum": "会话数",
"Set": "已设置",
"SetDingTalk": "设置钉钉认证",
"DingTalkOAuth": "钉钉认证",
"SetFailed": "设置失败",
"SetFeiShu": "设置飞书认证",
"SetMFA": "设置多因子认证",
"SetSlack": "设置Slack认证",
"FeiShuOAuth": "飞书认证",
"LarkOAuth": "Lark 认证",
"SetMFA": "MFA 认证",
"SlackOAuth": "Slack 认证",
"SetStatus": "设置状态",
"SetSuccess": "设置成功",
"SetToDefault": "设为默认",
"SetToDefaultStorage": "设置为默认存储",
"SetWeCom": "设置企业微信认证",
"WeComOAuth": "企业微信认证",
"Setting": "设置",
"SettingInEndpointHelpText": "在 系统设置 / 组件设置 / 服务端点 中配置服务地址和端口",
"Settings": "系统设置",
@ -1063,7 +1063,8 @@
"TaskList": "任务列表",
"TaskMonitor": "任务监控",
"TechnologyConsult": "技术咨询",
"TempPassword": "临时密码有效期为 300 秒,使用后立刻失效",
"TempPasswordTip": "临时密码有效期为 300 秒,使用后立刻失效",
"TempPassword": "临时密码",
"TemplateAdd": "模版添加",
"TemplateCreate": "创建模版",
"TemplateHelpText": "选择模版添加时,会自动创建资产下不存在的账号并推送",
@ -1161,7 +1162,7 @@
"UserGroupList": "用户组",
"UserGroupUpdate": "更新用户组",
"UserGroups": "用户组",
"UserInformation": "用户信息",
"Profile": "个人信息",
"UserList": "用户列表",
"UserLoginACLHelpMsg": "登录系统时,可以根据用户的登录 IP 和时间段进行审核,判断是否可以登录系统(全局生效)",
"UserLoginAclCreate": "创建用户登录控制",
@ -1170,7 +1171,7 @@
"UserLoginAclUpdate": "更新用户登录控制",
"UserLoginLimit": "用户登录限制",
"UserLoginTrend": "账号登录趋势",
"UserProfile": "个人信息",
"PersonalSettings": "个人设置",
"UserSession": "用户会话",
"UserSetting": "偏好设置",
"UserUpdate": "更新用户",

View File

@ -89,9 +89,9 @@ class UserRoleSerializer(serializers.Serializer):
class UserProfileSerializer(UserSerializer):
MFA_LEVEL_CHOICES = (
(0, _('Disable')),
(1, _('Enable')),
(2, _("Force enable")),
(0, _('Off')),
(1, _('On')),
(2, _("Forced enabled")),
)
public_key_comment = serializers.CharField(
source='get_public_key_comment', required=False, read_only=True, max_length=128