Skip to content

Commit ed52cb5

Browse files
committed
mpodify: modify 00055 rule message and gen i18n
1 parent d49d7e8 commit ed52cb5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sqle/driver/mysql/plocale/active.en.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ Rule00054Desc = "Use unsigned BIGINT for primary key fields."
837837
Rule00054Message = "Use unsigned BIGINT for primary key fields."
838838
Rule00055Annotation = "MySQL maintains redundant indexes separately, increasing maintenance costs and impacting update performance."
839839
Rule00055Desc = "Avoid creating redundant indexes."
840-
Rule00055Message = "An index %v already exists. Index %v is a redundant index."
840+
Rule00055Message = "%v indexes already exist in the %v fields, and the indexes %v are redundant indexes."
841841
Rule00056Annotation = "Using non-standard character sets in the database may lead to encoding or decoding issues, resulting in data write failures or garbled query results, affecting database availability."
842842
Rule00056Desc = "Use specified character sets for tables."
843843
Rule00056Message = "Use specified character sets for tables: %v."

sqle/driver/mysql/plocale/active.zh.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ Rule00054Desc = "建议主键字段使用BIGINT时采用无符号的BIGINT"
837837
Rule00054Message = "建议主键字段使用BIGINT时采用无符号的BIGINT"
838838
Rule00055Annotation = "MySQL需要单独维护重复的索引,冗余索引增加维护成本,影响更新性能"
839839
Rule00055Desc = "不建议创建冗余索引"
840-
Rule00055Message = "已存在索引 %v , 索引 %v 为冗余索引"
840+
Rule00055Message = " %v 字段已存在 %v 索引,索引 %v 为冗余索引"
841841
Rule00056Annotation = "数据库内使用非标准的字符集,可能导致字符无法编码或者编码不全引起的乱码,最终出现应用写入数据失败或者查询结果显示乱码,影响数据库服务可用性。"
842842
Rule00056Desc = "表建议使用指定的字符集"
843843
Rule00056Message = "表建议使用指定的字符集: %v"

sqle/driver/mysql/plocale/message_zh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ var (
944944
Rule00054Message = &i18n.Message{ID: "Rule00054Message", Other: "建议主键字段使用BIGINT时采用无符号的BIGINT"}
945945
Rule00055Desc = &i18n.Message{ID: "Rule00055Desc", Other: "不建议创建冗余索引"}
946946
Rule00055Annotation = &i18n.Message{ID: "Rule00055Annotation", Other: "MySQL需要单独维护重复的索引,冗余索引增加维护成本,影响更新性能"}
947-
Rule00055Message = &i18n.Message{ID: "Rule00055Message", Other: "已存在索引 %v , 索引 %v 为冗余索引"}
947+
Rule00055Message = &i18n.Message{ID: "Rule00055Message", Other: " %v 字段已存在 %v 索引,索引 %v 为冗余索引"}
948948
Rule00056Desc = &i18n.Message{ID: "Rule00056Desc", Other: "表建议使用指定的字符集"}
949949
Rule00056Annotation = &i18n.Message{ID: "Rule00056Annotation", Other: "数据库内使用非标准的字符集,可能导致字符无法编码或者编码不全引起的乱码,最终出现应用写入数据失败或者查询结果显示乱码,影响数据库服务可用性。"}
950950
Rule00056Message = &i18n.Message{ID: "Rule00056Message", Other: "表建议使用指定的字符集: %v"}

0 commit comments

Comments
 (0)