From 1987e5d99cf11b871745e1759ad2857c7b1fa738 Mon Sep 17 00:00:00 2001 From: Wenxuan Zhao Date: Thu, 6 Dec 2018 05:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=95=E8=BF=87=E6=A3=80=E6=9F=A5=EF=BC=9A?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A7=84=E5=88=99=20=E2=80=94=E2=80=94=20?= =?UTF-8?q?=E6=A0=A1=E5=AF=B9=E5=B7=B2=E5=8F=91=E5=B8=83=E8=AF=91=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/check/identify.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/check/identify.sh b/scripts/check/identify.sh index 4d2d5e060f..10073706d5 100644 --- a/scripts/check/identify.sh +++ b/scripts/check/identify.sh @@ -63,6 +63,12 @@ rule_translation_published() { && echo "匹配规则:发布译文" } +# 校对已发布译文:只能校对一篇已发布的译文 +rule_published_translation_revised() { + [ "$PUB_M" -eq 1 ] \ + && [ "$TOTAL" -eq 1 ] && echo "匹配规则:校对已发布译文" +} + # 定义常见错误 # 未知错误 @@ -84,6 +90,7 @@ do_check() { || rule_translation_completed \ || rule_translation_revised \ || rule_translation_published \ + || rule_published_translation_revised \ || { error_translation_requested_multiple \ || error_undefined