Skip to content

Commit eeb101d

Browse files
committed
refactor: i18n
1 parent 6d1bbd9 commit eeb101d

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

apps/common/constants/permission_constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ class PermissionConstants(Enum):
653653
role_list=[RoleConstants.ADMIN, RoleConstants.USER],
654654
parent_group=[WorkspaceGroup.APPLICATION, UserGroup.APPLICATION],
655655
resource_permission_group_list=[ResourcePermissionGroup.MANAGE],
656+
label=_('Chat')
656657
)
657658
APPLICATION_DEBUG = Permission(group=Group.APPLICATION, operate=Operate.DEBUG,
658659
role_list=[RoleConstants.ADMIN, RoleConstants.USER],
@@ -664,6 +665,7 @@ class PermissionConstants(Enum):
664665
role_list=[RoleConstants.ADMIN, RoleConstants.USER],
665666
parent_group=[WorkspaceGroup.APPLICATION, UserGroup.APPLICATION],
666667
resource_permission_group_list=[ResourcePermissionGroup.MANAGE],
668+
label=_('Setting')
667669
)
668670

669671
APPLICATION_CREATE = Permission(group=Group.APPLICATION, operate=Operate.CREATE,

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8363,4 +8363,7 @@ msgid "LDAP"
83638363
msgstr "LDAP"
83648364

83658365
msgid "Get tool list"
8366+
msgstr ""
8367+
8368+
msgid "Setting"
83668369
msgstr ""

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ msgstr "应用匿名认证"
16291629
#: apps/chat/views/chat.py:120 apps/chat/views/chat_embed.py:27
16301630
#: apps/xpack/views/chat_user_auth.py:419
16311631
msgid "Chat"
1632-
msgstr "聊天"
1632+
msgstr "对话"
16331633

16341634
#: apps/chat/views/chat.py:59 apps/chat/views/chat.py:60
16351635
#: apps/chat/views/chat.py:61
@@ -8489,4 +8489,7 @@ msgid "LDAP"
84898489
msgstr "LDAP"
84908490

84918491
msgid "Get tool list"
8492-
msgstr "获取工具列表"
8492+
msgstr "获取工具列表"
8493+
8494+
msgid "Setting"
8495+
msgstr "设置"

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8489,4 +8489,7 @@ msgid "LDAP"
84898489
msgstr "LDAP"
84908490

84918491
msgid "Get tool list"
8492-
msgstr "獲取工具列表"
8492+
msgstr "獲取工具列表"
8493+
8494+
msgid "Setting"
8495+
msgstr "設置"

apps/users/serializers/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class UserEditInstance(serializers.Serializer):
282282
)]
283283
)
284284
nick_name = serializers.CharField(
285-
required=True,
285+
required=False,
286286
label=_("Name"),
287287
max_length=20,
288288
)

0 commit comments

Comments
 (0)