perf: 翻译 (#12690)

Co-authored-by: feng <1304903146@qq.com>
pull/12700/head
fit2bot 2024-02-22 17:46:12 +08:00 committed by GitHub
parent 430f45a3ec
commit 35448eea9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 57 additions and 111 deletions

View File

@ -42,7 +42,7 @@ class Migration(migrations.Migration):
default=True, max_length=2, verbose_name='Status')), default=True, max_length=2, verbose_name='Status')),
('datetime', ('datetime',
models.DateTimeField(default=django.utils.timezone.now, models.DateTimeField(default=django.utils.timezone.now,
verbose_name='Date login')), verbose_name='Login Date')),
], ],
options={ options={
'ordering': ['-datetime', 'username'], 'ordering': ['-datetime', 'username'],

View File

@ -24,6 +24,6 @@ class Migration(migrations.Migration):
migrations.AlterField( migrations.AlterField(
model_name='userloginlog', model_name='userloginlog',
name='datetime', name='datetime',
field=models.DateTimeField(db_index=True, default=django.utils.timezone.now, verbose_name='Date login'), field=models.DateTimeField(db_index=True, default=django.utils.timezone.now, verbose_name='Login Date'),
), ),
] ]

View File

@ -207,7 +207,7 @@ class UserLoginLog(models.Model):
choices=LoginStatusChoices.choices, choices=LoginStatusChoices.choices,
verbose_name=_("Status"), verbose_name=_("Status"),
) )
datetime = models.DateTimeField(default=timezone.now, verbose_name=_("Date login"), db_index=True) datetime = models.DateTimeField(default=timezone.now, verbose_name=_("Login Date"), db_index=True)
backend = models.CharField( backend = models.CharField(
max_length=32, default="", verbose_name=_("Authentication backend") max_length=32, default="", verbose_name=_("Authentication backend")
) )

View File

@ -7,7 +7,7 @@
</p> </p>
<p> <p>
<b>{% trans 'Username' %}:</b> {{ username }}<br> <b>{% trans 'Username' %}:</b> {{ username }}<br>
<b>{% trans 'Login time' %}:</b> {{ time }}<br> <b>{% trans 'Login Date' %}:</b> {{ time }}<br>
<b>{% trans 'Login city' %}:</b> {{ city }}({{ ip }}) <b>{% trans 'Login city' %}:</b> {{ city }}({{ ip }})
</p> </p>

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:0f38416ee042bf98512fadd5dc339c7476f1c40c99f8e4fd4fa6834c894c4345 oid sha256:d192f1809f7eec4c976f6c0734985eeae75d66965ddd73cd870aaa70000ba9c5
size 1398 size 1665

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-20 15:15+0800\n" "POT-Creation-Date: 2024-02-22 17:43+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -404,7 +404,7 @@ msgstr ""
#: accounts/serializers/automations/change_secret.py:128 #: accounts/serializers/automations/change_secret.py:128
#: ops/serializers/job.py:67 terminal/serializers/session.py:49 #: ops/serializers/job.py:67 terminal/serializers/session.py:49
msgid "Is success" msgid "Is success"
msgstr "Success" msgstr "Is success"
#: accounts/models/automations/backup_account.py:143 #: accounts/models/automations/backup_account.py:143
msgid "Account backup execution" msgid "Account backup execution"
@ -540,10 +540,8 @@ msgid "Gather account automation"
msgstr "" msgstr ""
#: accounts/models/automations/gather_account.py:56 #: accounts/models/automations/gather_account.py:56
#, fuzzy
#| msgid "Sync account"
msgid "Is sync account" msgid "Is sync account"
msgstr "Sync account" msgstr "Is sync account"
#: accounts/models/automations/gather_account.py:75 #: accounts/models/automations/gather_account.py:75
#: accounts/tasks/gather_accounts.py:29 #: accounts/tasks/gather_accounts.py:29
@ -974,8 +972,6 @@ msgstr ""
#: common/const/choices.py:18 ops/const.py:73 ops/serializers/celery.py:48 #: common/const/choices.py:18 ops/const.py:73 ops/serializers/celery.py:48
#: terminal/const.py:78 terminal/models/session/sharing.py:121 #: terminal/const.py:78 terminal/models/session/sharing.py:121
#: tickets/views/approve.py:117 #: tickets/views/approve.py:117
#, fuzzy
#| msgid "Is success"
msgid "Success" msgid "Success"
msgstr "Success" msgstr "Success"
@ -2501,7 +2497,9 @@ msgid "MFA"
msgstr "" msgstr ""
#: audits/models.py:210 #: audits/models.py:210
msgid "Date login" #: authentication/templates/authentication/_msg_different_city.html:10
#: tickets/models/ticket/login_confirm.py:12
msgid "Login Date"
msgstr "" msgstr ""
#: audits/models.py:212 audits/models.py:266 audits/serializers.py:70 #: audits/models.py:212 audits/models.py:266 audits/serializers.py:70
@ -3192,10 +3190,8 @@ msgstr ""
#: authentication/serializers/token.py:92 perms/serializers/permission.py:43 #: authentication/serializers/token.py:92 perms/serializers/permission.py:43
#: perms/serializers/permission.py:66 users/serializers/user.py:98 #: perms/serializers/permission.py:66 users/serializers/user.py:98
#: users/serializers/user.py:174 #: users/serializers/user.py:174
#, fuzzy
#| msgid "Valid"
msgid "Is valid" msgid "Is valid"
msgstr "Valid" msgstr "Is Valid"
#: authentication/tasks.py:11 #: authentication/tasks.py:11
msgid "Clean expired session" msgid "Clean expired session"
@ -3278,10 +3274,6 @@ msgstr ""
msgid "Your account has remote login behavior, please pay attention" msgid "Your account has remote login behavior, please pay attention"
msgstr "" msgstr ""
#: authentication/templates/authentication/_msg_different_city.html:10
msgid "Login time"
msgstr ""
#: authentication/templates/authentication/_msg_different_city.html:16 #: authentication/templates/authentication/_msg_different_city.html:16
msgid "" msgid ""
"If you suspect that the login behavior is abnormal, please modify the " "If you suspect that the login behavior is abnormal, please modify the "
@ -3937,10 +3929,8 @@ msgid "Labeled resource"
msgstr "" msgstr ""
#: labels/serializers.py:22 #: labels/serializers.py:22
#, fuzzy msgid "Resource count"
#| msgid "Executed amount" msgstr "Resource count"
msgid "Resource amount"
msgstr "Executions"
#: labels/serializers.py:28 #: labels/serializers.py:28
msgid "Cannot contain \":,\"" msgid "Cannot contain \":,\""
@ -7110,10 +7100,8 @@ msgid "Online sessions"
msgstr "" msgstr ""
#: terminal/serializers/terminal.py:43 #: terminal/serializers/terminal.py:43
#, fuzzy
#| msgid "Alive"
msgid "Is alive" msgid "Is alive"
msgstr "Alive" msgstr "Is alive"
#: terminal/serializers/terminal.py:49 #: terminal/serializers/terminal.py:49
msgid "Stat" msgid "Stat"
@ -7413,10 +7401,6 @@ msgstr ""
msgid "Apply Login Asset Ticket" msgid "Apply Login Asset Ticket"
msgstr "" msgstr ""
#: tickets/models/ticket/login_confirm.py:12
msgid "Login datetime"
msgstr ""
#: tickets/models/ticket/login_confirm.py:15 #: tickets/models/ticket/login_confirm.py:15
msgid "Apply Login Ticket" msgid "Apply Login Ticket"
msgstr "" msgstr ""
@ -7689,10 +7673,8 @@ msgid "Force enable"
msgstr "" msgstr ""
#: users/models/user.py:812 users/serializers/user.py:175 #: users/models/user.py:812 users/serializers/user.py:175
#, fuzzy
#| msgid "Service account"
msgid "Is service account" msgid "Is service account"
msgstr "Service account" msgstr "Is service account"
#: users/models/user.py:814 #: users/models/user.py:814
msgid "Avatar" msgid "Avatar"
@ -8862,7 +8844,6 @@ msgid "Logo of logout page"
msgstr "" msgstr ""
#: xpack/plugins/interface/models.py:41 #: xpack/plugins/interface/models.py:41
#: xpack/plugins/interface/serializers/interface.py:26
msgid "Theme" msgid "Theme"
msgstr "" msgstr ""
@ -8878,14 +8859,6 @@ msgstr ""
msgid "Interface setting" msgid "Interface setting"
msgstr "" msgstr ""
#: xpack/plugins/interface/serializers/interface.py:37
msgid "Wide logo on top"
msgstr ""
#: xpack/plugins/interface/serializers/interface.py:38
msgid "Small logo without text"
msgstr ""
#: xpack/plugins/license/api.py:52 #: xpack/plugins/license/api.py:52
msgid "License import successfully" msgid "License import successfully"
msgstr "" msgstr ""

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:89339329adfc787fe38cd62cc18caf7adfe5824fa7bbddcb7d69598521a18d18 oid sha256:1b64a2cb215d6258ede3d9794241a80d7104690075054ad966e649834e49910f
size 170670 size 170574

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-20 15:15+0800\n" "POT-Creation-Date: 2024-02-22 17:42+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -2550,7 +2550,9 @@ msgid "MFA"
msgstr "MFA" msgstr "MFA"
#: audits/models.py:210 #: audits/models.py:210
msgid "Date login" #: authentication/templates/authentication/_msg_different_city.html:10
#: tickets/models/ticket/login_confirm.py:12
msgid "Login Date"
msgstr "日付ログイン" msgstr "日付ログイン"
#: audits/models.py:212 audits/models.py:266 audits/serializers.py:70 #: audits/models.py:212 audits/models.py:266 audits/serializers.py:70
@ -3345,10 +3347,6 @@ msgstr "こんにちは"
msgid "Your account has remote login behavior, please pay attention" msgid "Your account has remote login behavior, please pay attention"
msgstr "アカウントにリモートログイン動作があります。注意してください" msgstr "アカウントにリモートログイン動作があります。注意してください"
#: authentication/templates/authentication/_msg_different_city.html:10
msgid "Login time"
msgstr "ログイン時間"
#: authentication/templates/authentication/_msg_different_city.html:16 #: authentication/templates/authentication/_msg_different_city.html:16
msgid "" msgid ""
"If you suspect that the login behavior is abnormal, please modify the " "If you suspect that the login behavior is abnormal, please modify the "
@ -4036,9 +4034,9 @@ msgstr "関連リソース"
#: labels/serializers.py:22 #: labels/serializers.py:22
#, fuzzy #, fuzzy
#| msgid "Resource count" #| msgid "Resource type"
msgid "Resource amount" msgid "Resource count"
msgstr "リソース" msgstr "リソースタイプ"
#: labels/serializers.py:28 #: labels/serializers.py:28
msgid "Cannot contain \":,\"" msgid "Cannot contain \":,\""
@ -7686,10 +7684,6 @@ msgstr "ログインアカウント"
msgid "Apply Login Asset Ticket" msgid "Apply Login Asset Ticket"
msgstr "資産ログインレビュー製造オーダ" msgstr "資産ログインレビュー製造オーダ"
#: tickets/models/ticket/login_confirm.py:12
msgid "Login datetime"
msgstr "ログイン日時"
#: tickets/models/ticket/login_confirm.py:15 #: tickets/models/ticket/login_confirm.py:15
msgid "Apply Login Ticket" msgid "Apply Login Ticket"
msgstr "ユーザーログインレビュー製造オーダ" msgstr "ユーザーログインレビュー製造オーダ"
@ -9180,7 +9174,6 @@ msgid "Logo of logout page"
msgstr "ログアウトページのロゴ" msgstr "ログアウトページのロゴ"
#: xpack/plugins/interface/models.py:41 #: xpack/plugins/interface/models.py:41
#: xpack/plugins/interface/serializers/interface.py:26
msgid "Theme" msgid "Theme"
msgstr "テーマ" msgstr "テーマ"
@ -9196,14 +9189,6 @@ msgstr "公安網登録番号"
msgid "Interface setting" msgid "Interface setting"
msgstr "インターフェイスの設定" msgstr "インターフェイスの設定"
#: xpack/plugins/interface/serializers/interface.py:37
msgid "Wide logo on top"
msgstr ""
#: xpack/plugins/interface/serializers/interface.py:38
msgid "Small logo without text"
msgstr ""
#: xpack/plugins/license/api.py:52 #: xpack/plugins/license/api.py:52
msgid "License import successfully" msgid "License import successfully"
msgstr "ライセンスのインポートに成功" msgstr "ライセンスのインポートに成功"
@ -9232,6 +9217,9 @@ msgstr "エンタープライズプロフェッショナル版"
msgid "Ultimate edition" msgid "Ultimate edition"
msgstr "エンタープライズ・フラッグシップ・エディション" msgstr "エンタープライズ・フラッグシップ・エディション"
#~ msgid "Login time"
#~ msgstr "ログイン時間"
#~ msgid "SMTP port" #~ msgid "SMTP port"
#~ msgstr "SMTPポート" #~ msgstr "SMTPポート"

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:c0874d399c18f41aa406ea85ee8eaf60fb870eadcd31ed7f1d9a70c10e83240e oid sha256:048f6988bf37dd7b1c8d20d052009187fbb76548ea3608bb9704880f2dd28eef
size 141057 size 140998

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: JumpServer 0.3.3\n" "Project-Id-Version: JumpServer 0.3.3\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-20 15:15+0800\n" "POT-Creation-Date: 2024-02-22 17:43+0800\n"
"PO-Revision-Date: 2021-05-20 10:54+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n"
"Last-Translator: ibuler <ibuler@qq.com>\n" "Last-Translator: ibuler <ibuler@qq.com>\n"
"Language-Team: JumpServer team<ibuler@qq.com>\n" "Language-Team: JumpServer team<ibuler@qq.com>\n"
@ -2523,7 +2523,9 @@ msgid "MFA"
msgstr "MFA" msgstr "MFA"
#: audits/models.py:210 #: audits/models.py:210
msgid "Date login" #: authentication/templates/authentication/_msg_different_city.html:10
#: tickets/models/ticket/login_confirm.py:12
msgid "Login Date"
msgstr "登录日期" msgstr "登录日期"
#: audits/models.py:212 audits/models.py:266 audits/serializers.py:70 #: audits/models.py:212 audits/models.py:266 audits/serializers.py:70
@ -3301,10 +3303,6 @@ msgstr "你好"
msgid "Your account has remote login behavior, please pay attention" msgid "Your account has remote login behavior, please pay attention"
msgstr "你的账号存在异地登录行为,请关注。" msgstr "你的账号存在异地登录行为,请关注。"
#: authentication/templates/authentication/_msg_different_city.html:10
msgid "Login time"
msgstr "登录日期"
#: authentication/templates/authentication/_msg_different_city.html:16 #: authentication/templates/authentication/_msg_different_city.html:16
msgid "" msgid ""
"If you suspect that the login behavior is abnormal, please modify the " "If you suspect that the login behavior is abnormal, please modify the "
@ -3972,9 +3970,7 @@ msgid "Labeled resource"
msgstr "关联的资源" msgstr "关联的资源"
#: labels/serializers.py:22 #: labels/serializers.py:22
#, fuzzy msgid "Resource count"
#| msgid "Resource count"
msgid "Resource amount"
msgstr "资源数量" msgstr "资源数量"
#: labels/serializers.py:28 #: labels/serializers.py:28
@ -4973,10 +4969,8 @@ msgid "Chat prompt"
msgstr "聊天提示" msgstr "聊天提示"
#: settings/notifications.py:23 #: settings/notifications.py:23
#, fuzzy
#| msgid "Notification of account backup route task results"
msgid "Notification of Synchronized LDAP User Task Results" msgid "Notification of Synchronized LDAP User Task Results"
msgstr "账号备份任务结果通知" msgstr "同步 LDAP 用户任务结果的通知"
#: settings/serializers/auth/base.py:10 #: settings/serializers/auth/base.py:10
msgid "Authentication" msgid "Authentication"
@ -7521,10 +7515,6 @@ msgstr "登录账号"
msgid "Apply Login Asset Ticket" msgid "Apply Login Asset Ticket"
msgstr "资产登录复核工单" msgstr "资产登录复核工单"
#: tickets/models/ticket/login_confirm.py:12
msgid "Login datetime"
msgstr "登录日期"
#: tickets/models/ticket/login_confirm.py:15 #: tickets/models/ticket/login_confirm.py:15
msgid "Apply Login Ticket" msgid "Apply Login Ticket"
msgstr "用户登录复核工单" msgstr "用户登录复核工单"
@ -8986,7 +8976,6 @@ msgid "Logo of logout page"
msgstr "退出页面 Logo" msgstr "退出页面 Logo"
#: xpack/plugins/interface/models.py:41 #: xpack/plugins/interface/models.py:41
#: xpack/plugins/interface/serializers/interface.py:26
msgid "Theme" msgid "Theme"
msgstr "主题" msgstr "主题"
@ -9002,14 +8991,6 @@ msgstr "公安联网备案号"
msgid "Interface setting" msgid "Interface setting"
msgstr "界面设置" msgstr "界面设置"
#: xpack/plugins/interface/serializers/interface.py:37
msgid "Wide logo on top"
msgstr "顶部宽 Logo"
#: xpack/plugins/interface/serializers/interface.py:38
msgid "Small logo without text"
msgstr "方形小 Logo"
#: xpack/plugins/license/api.py:52 #: xpack/plugins/license/api.py:52
msgid "License import successfully" msgid "License import successfully"
msgstr "许可证导入成功" msgstr "许可证导入成功"
@ -9038,6 +9019,12 @@ msgstr "企业专业版"
msgid "Ultimate edition" msgid "Ultimate edition"
msgstr "企业旗舰版" msgstr "企业旗舰版"
#~ msgid "Wide logo on top"
#~ msgstr "顶部宽 Logo"
#~ msgid "Small logo without text"
#~ msgstr "方形小 Logo"
#~ msgid "Password can not contains `{{` or `}}`" #~ msgid "Password can not contains `{{` or `}}`"
#~ msgstr "密码不能包含 `{{` 或 `}}` 字符" #~ msgstr "密码不能包含 `{{` 或 `}}` 字符"

View File

@ -139,8 +139,7 @@
"AssetsAmount": "Asset", "AssetsAmount": "Asset",
"AssetsTotal": "Asset Total", "AssetsTotal": "Asset Total",
"AssignedInfo": "Approval Information", "AssignedInfo": "Approval Information",
"AssignedMe": "Pending My Approval", "AwaitingMyApproval": "Awaiting my approval",
"AssignedTicketList": "Pending My Approval",
"Assignee": "Handler", "Assignee": "Handler",
"Assignees": "Pending Handler", "Assignees": "Pending Handler",
"AttrName": "Attribute Name", "AttrName": "Attribute Name",
@ -190,8 +189,8 @@
"BulkOffline": "Batch Offline", "BulkOffline": "Batch Offline",
"BulkSyncDelete": "Bulk Sync Delete", "BulkSyncDelete": "Bulk Sync Delete",
"BulkSyncErrorMsg": "Bulk Synchronization Failed:", "BulkSyncErrorMsg": "Bulk Synchronization Failed:",
"BulkTransfer": "Batch Transfer", "BulkTransfer": "Bulk Transfer",
"BulkUnblock": "Batch Unlock", "BulkUnblock": "Bulk Unlock",
"BulkUpdatePlatformHelpText": "Updates will only be performed when the original platform type of the asset is the same as the selected platform type. If the platform type is different before and after the update, it will not be updated.", "BulkUpdatePlatformHelpText": "Updates will only be performed when the original platform type of the asset is the same as the selected platform type. If the platform type is different before and after the update, it will not be updated.",
"CACertificate": "CA Certificate", "CACertificate": "CA Certificate",
"CAS": "CAS", "CAS": "CAS",
@ -443,7 +442,7 @@
"FeiShu": "Feishu", "FeiShu": "Feishu",
"FeiShuTest": "Test", "FeiShuTest": "Test",
"FieldRequiredError": "This field is required", "FieldRequiredError": "This field is required",
"FileManager": "File", "FileManagement": "File management",
"FileNameTooLong": "Filename too long", "FileNameTooLong": "Filename too long",
"FileSizeExceedsLimit": "File size exceeds limit\"", "FileSizeExceedsLimit": "File size exceeds limit\"",
"FileTransfer": "File Transfer", "FileTransfer": "File Transfer",
@ -560,7 +559,7 @@
"JobCreate": "Create Job", "JobCreate": "Create Job",
"JobDetail": "Job Details", "JobDetail": "Job Details",
"JobExecutionLog": "Job Logs", "JobExecutionLog": "Job Logs",
"JobList": "Job", "JobManagement": "Job Management",
"JobUpdate": "Update Job", "JobUpdate": "Update Job",
"KingSoftCloud": "Kingsoft Cloud", "KingSoftCloud": "Kingsoft Cloud",
"KokoSettingUpdate": "Koko Configuration Settings", "KokoSettingUpdate": "Koko Configuration Settings",
@ -1068,7 +1067,7 @@
"TaskMonitor": "Task Monitoring", "TaskMonitor": "Task Monitoring",
"TechnologyConsult": "Technical Consultation", "TechnologyConsult": "Technical Consultation",
"TempPassword": "The temporary password is valid for 300 seconds and becomes invalid immediately after use", "TempPassword": "The temporary password is valid for 300 seconds and becomes invalid immediately after use",
"Template": "Template", "TemplateManagement": "Template Management",
"TemplateAdd": "Add from template", "TemplateAdd": "Add from template",
"TemplateCreate": "Create Template", "TemplateCreate": "Create Template",
"TemplateHelpText": "When selecting a template to add, accounts that do not exist under the asset will be automatically created and pushed", "TemplateHelpText": "When selecting a template to add, accounts that do not exist under the asset will be automatically created and pushed",

View File

@ -137,8 +137,7 @@
"AssetsAmount": "资产", "AssetsAmount": "资产",
"AssetsTotal": "资产总数", "AssetsTotal": "资产总数",
"AssignedInfo": "审批信息", "AssignedInfo": "审批信息",
"AssignedMe": "待我审批", "AwaitingMyApproval": "待我审批",
"AssignedTicketList": "待我审批",
"Assignee": "处理人", "Assignee": "处理人",
"Assignees": "待处理人", "Assignees": "待处理人",
"AttrName": "属性名", "AttrName": "属性名",
@ -439,7 +438,7 @@
"FeiShu": "飞书", "FeiShu": "飞书",
"FeiShuTest": "测试", "FeiShuTest": "测试",
"FieldRequiredError": "此字段是必填项", "FieldRequiredError": "此字段是必填项",
"FileManager": "文件管理", "FileManagement": "文件管理",
"FileNameTooLong": "文件名太长", "FileNameTooLong": "文件名太长",
"FileSizeExceedsLimit": "文件大小超出限制", "FileSizeExceedsLimit": "文件大小超出限制",
"FileTransfer": "文件传输", "FileTransfer": "文件传输",
@ -555,7 +554,7 @@
"JobCreate": "创建作业", "JobCreate": "创建作业",
"JobDetail": "作业详情", "JobDetail": "作业详情",
"JobExecutionLog": "作业日志", "JobExecutionLog": "作业日志",
"JobList": "作业管理", "JobManagement": "作业管理",
"JobUpdate": "更新作业", "JobUpdate": "更新作业",
"KingSoftCloud": "金山云", "KingSoftCloud": "金山云",
"KokoSettingUpdate": "Koko 配置设置", "KokoSettingUpdate": "Koko 配置设置",
@ -1060,7 +1059,7 @@
"TaskMonitor": "任务监控", "TaskMonitor": "任务监控",
"TechnologyConsult": "技术咨询", "TechnologyConsult": "技术咨询",
"TempPassword": "临时密码有效期为 300 秒,使用后立刻失效", "TempPassword": "临时密码有效期为 300 秒,使用后立刻失效",
"Template": "模版管理", "TemplateManagement": "模版管理",
"TemplateAdd": "模版添加", "TemplateAdd": "模版添加",
"TemplateCreate": "创建模版", "TemplateCreate": "创建模版",
"TemplateHelpText": "选择模版添加时,会自动创建资产下不存在的账号并推送", "TemplateHelpText": "选择模版添加时,会自动创建资产下不存在的账号并推送",

View File

@ -19,7 +19,7 @@ class LabelSerializer(BulkOrgResourceModelSerializer):
] ]
read_only_fields = ('date_created', 'date_updated', 'res_count') read_only_fields = ('date_created', 'date_updated', 'res_count')
extra_kwargs = { extra_kwargs = {
'res_count': {'label': _('Resource amount')}, 'res_count': {'label': _('Resource count')},
} }
@staticmethod @staticmethod

View File

@ -23,7 +23,7 @@ class Migration(migrations.Migration):
primary_key=True, serialize=False, to='tickets.ticket')), primary_key=True, serialize=False, to='tickets.ticket')),
('apply_login_ip', models.GenericIPAddressField(null=True, verbose_name='Login IP')), ('apply_login_ip', models.GenericIPAddressField(null=True, verbose_name='Login IP')),
('apply_login_city', models.CharField(max_length=64, null=True, verbose_name='Login city')), ('apply_login_city', models.CharField(max_length=64, null=True, verbose_name='Login city')),
('apply_login_datetime', models.DateTimeField(null=True, verbose_name='Login datetime')), ('apply_login_datetime', models.DateTimeField(null=True, verbose_name='Login Date')),
], ],
options={ options={
'abstract': False, 'abstract': False,

View File

@ -9,7 +9,7 @@ __all__ = ['ApplyLoginTicket']
class ApplyLoginTicket(Ticket): class ApplyLoginTicket(Ticket):
apply_login_ip = models.GenericIPAddressField(verbose_name=_('Login IP'), null=True) apply_login_ip = models.GenericIPAddressField(verbose_name=_('Login IP'), null=True)
apply_login_city = models.CharField(max_length=64, verbose_name=_('Login city'), null=True) apply_login_city = models.CharField(max_length=64, verbose_name=_('Login city'), null=True)
apply_login_datetime = models.DateTimeField(verbose_name=_('Login datetime'), null=True) apply_login_datetime = models.DateTimeField(verbose_name=_('Login Date'), null=True)
class Meta: class Meta:
verbose_name = _('Apply Login Ticket') verbose_name = _('Apply Login Ticket')

View File

@ -100,7 +100,7 @@ class Migration(migrations.Migration):
('ip', models.GenericIPAddressField(verbose_name='Login IP')), ('ip', models.GenericIPAddressField(verbose_name='Login IP')),
('city', models.CharField(blank=True, max_length=254, null=True, verbose_name='Login city')), ('city', models.CharField(blank=True, max_length=254, null=True, verbose_name='Login city')),
('user_agent', models.CharField(blank=True, max_length=254, null=True, verbose_name='User agent')), ('user_agent', models.CharField(blank=True, max_length=254, null=True, verbose_name='User agent')),
('datetime', models.DateTimeField(auto_now_add=True, verbose_name='Date login')), ('datetime', models.DateTimeField(auto_now_add=True, verbose_name='Login Date')),
], ],
options={ options={
'ordering': ['-datetime', 'username'], 'ordering': ['-datetime', 'username'],