Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: untranslated internationalization fields issue #1460

Merged
merged 3 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified apiserver/paasng/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
27 changes: 13 additions & 14 deletions apiserver/paasng/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ msgstr ""
#: paas_wl/bk_app/cnative/specs/models/mount.py:42
#: paas_wl/bk_app/cnative/specs/models/mount.py:61
msgid "挂载资源名"
msgstr ""
msgstr "Mounted resource name"

#: paas_wl/bk_app/cnative/specs/models/mount.py:82
msgid "挂载点的名称"
msgstr ""
msgstr "Name of the mount point"

#: paas_wl/bk_app/cnative/specs/mounts.py:198
msgid "删除持久存储资源失败,请先删除相应挂载卷资源"
msgstr ""
msgid "删除持久存储资源失败请先删除相应挂载卷资源"
msgstr "Failed to delete persistent storage resources, please delete the corresponding mounted volume resources first."

#: paas_wl/bk_app/cnative/specs/serializers.py:58
msgid ""
Expand All @@ -166,11 +166,11 @@ msgstr "Mount volume content cannot be empty"

#: paas_wl/bk_app/cnative/specs/serializers.py:119
msgid "configmap 挂载"
msgstr ""
msgstr "ConfigMap mounting"

#: paas_wl/bk_app/cnative/specs/serializers.py:120
msgid "持久存储资源"
msgstr ""
msgstr "Persistent storage resources"

#: paas_wl/bk_app/cnative/specs/serializers.py:150
#: paas_wl/bk_app/cnative/specs/serializers.py:164
Expand All @@ -181,19 +181,19 @@ msgstr "Failed to get process information"

#: paas_wl/bk_app/cnative/specs/serializers.py:204
msgid "挂载资源的名称"
msgstr ""
msgstr "Name of the mounted resource"

#: paas_wl/bk_app/cnative/specs/serializers.py:212
msgid "挂载卷资源类型"
msgstr ""
msgstr "Mount volume resource type"

#: paas_wl/bk_app/cnative/specs/serializers.py:213
msgid "已绑定模块信息"
msgstr ""
msgstr "Bound module information"

#: paas_wl/bk_app/cnative/specs/serializers.py:217
msgid "显示名称"
msgstr ""
msgstr "Display name"

#: paas_wl/bk_app/cnative/specs/views.py:120
msgid "权限不足或仓库不可达"
Expand All @@ -220,7 +220,7 @@ msgstr "Mount volume already exists in the same environment and path."

#: paas_wl/bk_app/cnative/specs/views.py:339
msgid "当前应用暂不支持持久存储功能,请联系管理员"
msgstr ""
msgstr "The current application does not support persistent storage functionality. Please contact the administrator."

#: paas_wl/bk_app/processes/controllers.py:51
msgid "进程操作过于频繁,请间隔 {operation_interval.total_seconds()} 秒再试。"
Expand Down Expand Up @@ -451,7 +451,7 @@ msgstr "Credential with the same name already exists"

#: paas_wl/workloads/images/views.py:76
msgid "该凭证已被应用使用"
msgstr ""
msgstr "The credential is already in use by an application."

#: paas_wl/workloads/networking/egress/views.py:65
msgid "新建出口 IP 绑定功能已禁用,如有需要请联系管理员"
Expand All @@ -465,8 +465,7 @@ msgstr "Parameter format error"

#: paas_wl/workloads/networking/entrance/serializers.py:65
msgid "该域名与路径组合已被其他应用或模块使用"
msgstr ""
"This domain and path combination is already in use by another APP or module."
msgstr "This domain and path combination is already in use by another APP or module."

#: paas_wl/workloads/networking/ingress/serializers.py:52
msgid "内部服务端口列表 ports 不能为空"
Expand Down
2 changes: 1 addition & 1 deletion apiserver/paasng/paas_wl/bk_app/cnative/specs/mounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def create_by_app(self, application_id: str, environment_name: str, **kwargs) ->
def delete_by_app(self, application_id: str, source_name: str) -> None:
# 删除持久存储资源前,需要确保对应挂载卷资源已被删除
if Mount.objects.filter(source_config=self.build_volume_source(source_name)).exists():
raise ValidationError(_("删除持久存储资源失败,请先删除相应挂载卷资源"))
raise ValidationError(_("删除持久存储资源失败请先删除相应挂载卷资源"))

app = Application.objects.get(id=application_id)
app_envs = app.get_app_envs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import re
from typing import Dict, Optional, Type

from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from rest_framework import serializers
from rest_framework.exceptions import ValidationError
from rest_framework.serializers import UniqueTogetherValidator
Expand Down