优化卸载app时的反馈提示
This commit is contained in:
parent
d14334fe03
commit
ac8f9e01e1
@ -299,7 +299,10 @@ class Site(Document, TagHelpers):
|
|||||||
status = jingrow.get_value(inst.pagetype, inst.name, "status", for_update=True)
|
status = jingrow.get_value(inst.pagetype, inst.name, "status", for_update=True)
|
||||||
if status not in allowed_status:
|
if status not in allowed_status:
|
||||||
jingrow.throw(
|
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)
|
return func(inst, *args, **kwargs)
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ Action,行动,
|
|||||||
Action Type,动作类型,
|
Action Type,动作类型,
|
||||||
Actions,操作,
|
Actions,操作,
|
||||||
Activate Site,激活站点,
|
Activate Site,激活站点,
|
||||||
Active,活动,
|
Active,激活,
|
||||||
Add,添加,
|
Add,添加,
|
||||||
Add Domain,添加域名,
|
Add Domain,添加域名,
|
||||||
Additional Permissions,额外的权限,
|
Additional Permissions,额外的权限,
|
||||||
@ -187,7 +187,7 @@ Patch,补丁,
|
|||||||
Payment Date,付款日期,
|
Payment Date,付款日期,
|
||||||
Payment Gateway,支付网关,
|
Payment Gateway,支付网关,
|
||||||
Payment Mode,支付方式,
|
Payment Mode,支付方式,
|
||||||
Pending,等待,
|
Pending,待处理,
|
||||||
Pending Verification,待验证,
|
Pending Verification,待验证,
|
||||||
Percent,百分之,
|
Percent,百分之,
|
||||||
Permissions,权限,
|
Permissions,权限,
|
||||||
|
|||||||
|
Loading…
x
Reference in New Issue
Block a user