mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
refactor: i18n
This commit is contained in:
parent
6d1bbd9db7
commit
eeb101d150
|
|
@ -653,6 +653,7 @@ class PermissionConstants(Enum):
|
|||
role_list=[RoleConstants.ADMIN, RoleConstants.USER],
|
||||
parent_group=[WorkspaceGroup.APPLICATION, UserGroup.APPLICATION],
|
||||
resource_permission_group_list=[ResourcePermissionGroup.MANAGE],
|
||||
label=_('Chat')
|
||||
)
|
||||
APPLICATION_DEBUG = Permission(group=Group.APPLICATION, operate=Operate.DEBUG,
|
||||
role_list=[RoleConstants.ADMIN, RoleConstants.USER],
|
||||
|
|
@ -664,6 +665,7 @@ class PermissionConstants(Enum):
|
|||
role_list=[RoleConstants.ADMIN, RoleConstants.USER],
|
||||
parent_group=[WorkspaceGroup.APPLICATION, UserGroup.APPLICATION],
|
||||
resource_permission_group_list=[ResourcePermissionGroup.MANAGE],
|
||||
label=_('Setting')
|
||||
)
|
||||
|
||||
APPLICATION_CREATE = Permission(group=Group.APPLICATION, operate=Operate.CREATE,
|
||||
|
|
|
|||
|
|
@ -8363,4 +8363,7 @@ msgid "LDAP"
|
|||
msgstr "LDAP"
|
||||
|
||||
msgid "Get tool list"
|
||||
msgstr ""
|
||||
|
||||
msgid "Setting"
|
||||
msgstr ""
|
||||
|
|
@ -1629,7 +1629,7 @@ msgstr "应用匿名认证"
|
|||
#: apps/chat/views/chat.py:120 apps/chat/views/chat_embed.py:27
|
||||
#: apps/xpack/views/chat_user_auth.py:419
|
||||
msgid "Chat"
|
||||
msgstr "聊天"
|
||||
msgstr "对话"
|
||||
|
||||
#: apps/chat/views/chat.py:59 apps/chat/views/chat.py:60
|
||||
#: apps/chat/views/chat.py:61
|
||||
|
|
@ -8489,4 +8489,7 @@ msgid "LDAP"
|
|||
msgstr "LDAP"
|
||||
|
||||
msgid "Get tool list"
|
||||
msgstr "获取工具列表"
|
||||
msgstr "获取工具列表"
|
||||
|
||||
msgid "Setting"
|
||||
msgstr "设置"
|
||||
|
|
@ -8489,4 +8489,7 @@ msgid "LDAP"
|
|||
msgstr "LDAP"
|
||||
|
||||
msgid "Get tool list"
|
||||
msgstr "獲取工具列表"
|
||||
msgstr "獲取工具列表"
|
||||
|
||||
msgid "Setting"
|
||||
msgstr "設置"
|
||||
|
|
@ -282,7 +282,7 @@ class UserManageSerializer(serializers.Serializer):
|
|||
)]
|
||||
)
|
||||
nick_name = serializers.CharField(
|
||||
required=True,
|
||||
required=False,
|
||||
label=_("Name"),
|
||||
max_length=20,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue