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,权限,