From b30abaf47bacd86bec60556393b3ae3e92cd712c Mon Sep 17 00:00:00 2001 From: BugsGuru Date: Fri, 11 Oct 2024 18:30:49 +0800 Subject: [PATCH] localize sql version msg --- sqle/locale/active.en.toml | 2 ++ sqle/locale/active.zh.toml | 2 ++ sqle/locale/message_zh.go | 2 ++ 3 files changed, 6 insertions(+) diff --git a/sqle/locale/active.en.toml b/sqle/locale/active.en.toml index 1995a9e27..022201cf1 100644 --- a/sqle/locale/active.en.toml +++ b/sqle/locale/active.en.toml @@ -283,7 +283,9 @@ SQLManageStatusIgnored = "Ignored" SQLManageStatusManualAudited = "Manually audited" SQLManageStatusSolved = "Solved" SQLManageStatusUnhandled = "Unhandled" +SqlVersionExecFailedReason = "workflow %s execution status is not finished and stop execution" SqlVersionInvalidStatusReason = "Execution failed: A workflow with status %v exists at the stage of the SQL version bound to this workflow, and its SQL version ID is %v" +SqlVersionReleaseFailedReason = "workflow %s release fail and stop release" StatisticResourceTypeUser = "User" TaskSQLReportAuditResult = "SQL audit result" TaskSQLReportAuditStatus = "SQL audit status" diff --git a/sqle/locale/active.zh.toml b/sqle/locale/active.zh.toml index 4476bf0a8..3e944e30b 100644 --- a/sqle/locale/active.zh.toml +++ b/sqle/locale/active.zh.toml @@ -283,7 +283,9 @@ SQLManageStatusIgnored = "已忽略" SQLManageStatusManualAudited = "已人工审核" SQLManageStatusSolved = "已解决" SQLManageStatusUnhandled = "未处理" +SqlVersionExecFailedReason = "工单:%s 上线失败并停止继续上线" SqlVersionInvalidStatusReason = "执行失败:在该工单绑定的SQL版本的阶段上,存在状态为%v的工单,其SQL版本id为%v" +SqlVersionReleaseFailedReason = "工单:%s 发布失败并停止继续发布" StatisticResourceTypeUser = "用户" TaskSQLReportAuditResult = "SQL审核结果" TaskSQLReportAuditStatus = "SQL审核状态" diff --git a/sqle/locale/message_zh.go b/sqle/locale/message_zh.go index 283941c28..4fc5af501 100644 --- a/sqle/locale/message_zh.go +++ b/sqle/locale/message_zh.go @@ -109,6 +109,8 @@ var ( // sql version var ( SqlVersionInvalidStatusReason = &i18n.Message{ID: "SqlVersionInvalidStatusReason", Other: "执行失败:在该工单绑定的SQL版本的阶段上,存在状态为%v的工单,其SQL版本id为%v"} + SqlVersionExecFailedReason = &i18n.Message{ID: "SqlVersionExecFailedReason", Other: "工单:%s 上线失败并停止继续上线"} + SqlVersionReleaseFailedReason = &i18n.Message{ID: "SqlVersionReleaseFailedReason", Other: "工单:%s 发布失败并停止继续发布"} ) // audit plan