From aedd8ba5897d7be1b0c20501f119050cdfa5e52c Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Tue, 15 Mar 2022 19:47:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=88=91=E7=9A=84=E5=BA=94=E7=94=A8=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/locale/zh/LC_MESSAGES/django.mo | 4 ++-- apps/locale/zh/LC_MESSAGES/django.po | 18 +++++++++++------- apps/perms/models/application_permission.py | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/apps/locale/zh/LC_MESSAGES/django.mo b/apps/locale/zh/LC_MESSAGES/django.mo index a3b6deaf6..72474d430 100644 --- a/apps/locale/zh/LC_MESSAGES/django.mo +++ b/apps/locale/zh/LC_MESSAGES/django.mo @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:fd3477eb43ff2155687120215926bb5a80a9cbd13a74c84b08e6078dcba016a2 -size 104274 +oid sha256:a8c1155ea28b70a0eb06aa39ab6ae04619cd30d02f59698fadaa6068d91a7900 +size 104348 diff --git a/apps/locale/zh/LC_MESSAGES/django.po b/apps/locale/zh/LC_MESSAGES/django.po index d22586758..a0c2964c4 100644 --- a/apps/locale/zh/LC_MESSAGES/django.po +++ b/apps/locale/zh/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: JumpServer 0.3.3\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-03-15 16:44+0800\n" +"POT-Creation-Date: 2022-03-15 19:46+0800\n" "PO-Revision-Date: 2021-05-20 10:54+0800\n" "Last-Translator: ibuler \n" "Language-Team: JumpServer team\n" @@ -1383,7 +1383,7 @@ msgstr "日志审计" #: audits/models.py:27 audits/models.py:57 #: authentication/templates/authentication/_access_key_modal.html:65 -#: rbac/tree.py:273 users/templates/users/user_asset_permission.html:128 +#: rbac/tree.py:158 users/templates/users/user_asset_permission.html:128 #: users/templates/users/user_database_app_permission.html:111 msgid "Delete" msgstr "删除" @@ -1437,11 +1437,11 @@ msgstr "文件管理" #: audits/models.py:55 #: authentication/templates/authentication/_access_key_modal.html:22 -#: rbac/tree.py:270 +#: rbac/tree.py:155 msgid "Create" msgstr "创建" -#: audits/models.py:56 rbac/tree.py:272 templates/_csv_import_export.html:18 +#: audits/models.py:56 rbac/tree.py:157 templates/_csv_import_export.html:18 #: templates/_csv_update_modal.html:6 #: users/templates/users/user_asset_permission.html:127 #: users/templates/users/user_database_app_permission.html:110 @@ -2121,7 +2121,7 @@ msgstr "显示" #: authentication/templates/authentication/_access_key_modal.html:66 #: settings/serializers/security.py:39 users/models/user.py:469 -#: users/serializers/profile.py:111 users/templates/users/mfa_setting.html:60 +#: users/serializers/profile.py:111 users/templates/users/mfa_setting.html:61 #: users/templates/users/user_verify_mfa.html:36 msgid "Disable" msgstr "禁用" @@ -2129,7 +2129,7 @@ msgstr "禁用" #: authentication/templates/authentication/_access_key_modal.html:67 #: users/models/user.py:470 users/serializers/profile.py:112 #: users/templates/users/mfa_setting.html:26 -#: users/templates/users/mfa_setting.html:67 +#: users/templates/users/mfa_setting.html:68 msgid "Enable" msgstr "启用" @@ -2921,6 +2921,10 @@ msgstr "可以查看授权给用户的应用" msgid "Permed application" msgstr "授权的应用" +#: perms/models/application_permission.py:115 +msgid "Can view my apps" +msgstr "可以查看我的应用" + #: perms/models/application_permission.py:116 msgid "Can view user apps" msgstr "可以查看用户授权的应用" @@ -3307,7 +3311,7 @@ msgstr "工单评论" msgid "Common setting" msgstr "一般设置" -#: rbac/tree.py:271 +#: rbac/tree.py:156 msgid "View" msgstr "查看" diff --git a/apps/perms/models/application_permission.py b/apps/perms/models/application_permission.py index d5d02faee..7cefec448 100644 --- a/apps/perms/models/application_permission.py +++ b/apps/perms/models/application_permission.py @@ -112,7 +112,7 @@ class PermedApplication(Application): verbose_name = _('Permed application') default_permissions = [] permissions = [ - ('view_myapps', 'Can view my apps'), + ('view_myapps', _('Can view my apps')), ('view_userapps', _('Can view user apps')), ('view_usergroupapps', _('Can view usergroup apps')), ]