Skip to content

Commit

Permalink
fix: 修复查看我的应用翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiJiangJie committed Mar 15, 2022
1 parent 172b492 commit aedd8ba
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
4 changes: 2 additions & 2 deletions apps/locale/zh/LC_MESSAGES/django.mo
Git LFS file not shown
18 changes: 11 additions & 7 deletions apps/locale/zh/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>\n"
"Language-Team: JumpServer team<[email protected]>\n"
Expand Down Expand Up @@ -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 "删除"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2121,15 +2121,15 @@ 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 "禁用"

#: 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 "启用"

Expand Down Expand Up @@ -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 "可以查看用户授权的应用"
Expand Down Expand Up @@ -3307,7 +3311,7 @@ msgstr "工单评论"
msgid "Common setting"
msgstr "一般设置"

#: rbac/tree.py:271
#: rbac/tree.py:156
msgid "View"
msgstr "查看"

Expand Down
2 changes: 1 addition & 1 deletion apps/perms/models/application_permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Meta:
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')),
]

0 comments on commit aedd8ba

Please sign in to comment.