From 59d673160a162e4afca9c59e5e9a0cb6ac76b4b3 Mon Sep 17 00:00:00 2001 From: actiontech-zihan Date: Fri, 17 Apr 2026 09:18:25 +0000 Subject: [PATCH] i18n: add ApMetaTiDBSlowLog message for TiDB slow log scan task type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add internationalization messages for the new TiDB slow log scan task type: - message_zh.go: ApMetaTiDBSlowLog = "TiDB慢日志" - active.en.toml: ApMetaTiDBSlowLog = "TiDB slow log" - active.zh.toml: ApMetaTiDBSlowLog = "TiDB慢日志" Ref: #2716 --- sqle/locale/active.en.toml | 1 + sqle/locale/active.zh.toml | 1 + sqle/locale/message_zh.go | 1 + 3 files changed, 3 insertions(+) diff --git a/sqle/locale/active.en.toml b/sqle/locale/active.en.toml index 3c1a18c60..8dbc536c2 100644 --- a/sqle/locale/active.en.toml +++ b/sqle/locale/active.en.toml @@ -47,6 +47,7 @@ ApMetaSchemaMeta = "Database schema metadata" ApMetaSlowLog = "Slow log" ApMetaThreadsConnected = "ThreadsConnected" ApMetaTiDBAuditLog = "TiDB audit log" +ApMetaTiDBSlowLog = "TiDB slow log" ApMetaTiDBTopSQL = "TiDB TOP SQL" ApMetaTopSQL = "Top SQL" ApMetricEngine = "engine" diff --git a/sqle/locale/active.zh.toml b/sqle/locale/active.zh.toml index d5ec16797..8461f1334 100644 --- a/sqle/locale/active.zh.toml +++ b/sqle/locale/active.zh.toml @@ -47,6 +47,7 @@ ApMetaSchemaMeta = "库表元数据" ApMetaSlowLog = "慢日志" ApMetaThreadsConnected = "线程数" ApMetaTiDBAuditLog = "TiDB审计日志" +ApMetaTiDBSlowLog = "TiDB慢日志" ApMetaTiDBTopSQL = "TiDB TOP SQL" ApMetaTopSQL = "Top SQL" ApMetricEngine = "引擎" diff --git a/sqle/locale/message_zh.go b/sqle/locale/message_zh.go index d31e188e1..d543feee3 100644 --- a/sqle/locale/message_zh.go +++ b/sqle/locale/message_zh.go @@ -422,6 +422,7 @@ var ( ApMetaPostgreSQLSlowLog = &i18n.Message{ID: "ApMetaPostgreSQLSlowLog", Other: "慢日志"} ApMetaGoldenDBTopSQL = &i18n.Message{ID: "ApMetaGoldenDBTopSQL", Other: "GoldenDB TOP SQL"} ApMetaTiDBTopSQL = &i18n.Message{ID: "ApMetaTiDBTopSQL", Other: "TiDB TOP SQL"} + ApMetaTiDBSlowLog = &i18n.Message{ID: "ApMetaTiDBSlowLog", Other: "TiDB慢日志"} ApMetaMySQLTopSQL = &i18n.Message{ID: "ApMetaMySQLTopSQL", Other: "MySQL TOP SQL"} ApMetaMSSQLTopSQL = &i18n.Message{ID: "ApMetaMSSQLTopSQL", Other: "SQL Server TOP SQL"} ApMetricQueryTimeAvg = &i18n.Message{ID: "ApMetricQueryTimeAvg", Other: "平均查询时间(s)"}