From ac8f9e01e1c9a231406fae6e1ddbdddba6e0ef66 Mon Sep 17 00:00:00 2001 From: jingrow Date: Mon, 30 Jun 2025 14:16:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=B8=E8=BD=BDapp?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E5=8F=8D=E9=A6=88=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jcloud/jcloud/pagetype/site/site.py | 5 ++++- jcloud/translations/zh.csv | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/jcloud/jcloud/pagetype/site/site.py b/jcloud/jcloud/pagetype/site/site.py index 5a3c1f3..9fbbf2e 100644 --- a/jcloud/jcloud/pagetype/site/site.py +++ b/jcloud/jcloud/pagetype/site/site.py @@ -299,7 +299,10 @@ class Site(Document, TagHelpers): status = jingrow.get_value(inst.pagetype, inst.name, "status", for_update=True) if status not in allowed_status: jingrow.throw( - f"不允许对状态为 {jingrow.bold(status)} 的站点执行此操作。\n允许的状态为:{jingrow.bold(comma_and(allowed_status))}。" + jingrow._("不允许对状态为 {0} 的站点执行此操作。\n允许的状态为:{1}。").format( + jingrow.bold(jingrow._(status)), + jingrow.bold(comma_and([jingrow._(s) for s in allowed_status])) + ) ) return func(inst, *args, **kwargs) diff --git a/jcloud/translations/zh.csv b/jcloud/translations/zh.csv index 1cc8e4a..b3a5b6b 100644 --- a/jcloud/translations/zh.csv +++ b/jcloud/translations/zh.csv @@ -6,7 +6,7 @@ Action,行动, Action Type,动作类型, Actions,操作, Activate Site,激活站点, -Active,活动, +Active,激活, Add,添加, Add Domain,添加域名, Additional Permissions,额外的权限, @@ -187,7 +187,7 @@ Patch,补丁, Payment Date,付款日期, Payment Gateway,支付网关, Payment Mode,支付方式, -Pending,等待, +Pending,待处理, Pending Verification,待验证, Percent,百分之, Permissions,权限,