From 7746cf006b498a6d4f32bb11d17767757517830b Mon Sep 17 00:00:00 2001 From: actiontech-zihan Date: Tue, 28 Apr 2026 11:29:53 +0000 Subject: [PATCH] feat(i18n): add TiDB Processlist locale entries Add ApMetaTiDBProcesslist i18n key to message_zh.go, active.zh.toml and active.en.toml for the new TiDB ProcessList scan task type. Fixes #2792 --- 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 98acf3683..bd05146c0 100644 --- a/sqle/locale/active.en.toml +++ b/sqle/locale/active.en.toml @@ -52,6 +52,7 @@ ApMetaThreadsConnected = "ThreadsConnected" ApMetaTiDBAuditLog = "TiDB audit log" ApMetaTiDBSlowLog = "TiDB slow log" ApMetaTiDBTopSQL = "TiDB TOP SQL" +ApMetaTiDBProcesslist = "TiDB Processlist" ApMetaTopSQL = "Top SQL" ApMetricEngine = "engine" ApMetricNameActiveTimeTotal = "Total active time (ms)" diff --git a/sqle/locale/active.zh.toml b/sqle/locale/active.zh.toml index d02b03406..95682fee6 100644 --- a/sqle/locale/active.zh.toml +++ b/sqle/locale/active.zh.toml @@ -52,6 +52,7 @@ ApMetaThreadsConnected = "线程数" ApMetaTiDBAuditLog = "TiDB审计日志" ApMetaTiDBSlowLog = "TiDB慢日志" ApMetaTiDBTopSQL = "TiDB TOP SQL" +ApMetaTiDBProcesslist = "TiDB Processlist" ApMetaTopSQL = "Top SQL" ApMetricEngine = "引擎" ApMetricNameActiveTimeTotal = "活动总时间(ms)" diff --git a/sqle/locale/message_zh.go b/sqle/locale/message_zh.go index 09ad7fa1f..ae2f8d265 100644 --- a/sqle/locale/message_zh.go +++ b/sqle/locale/message_zh.go @@ -426,6 +426,7 @@ var ( 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慢日志"} + ApMetaTiDBProcesslist = &i18n.Message{ID: "ApMetaTiDBProcesslist", Other: "TiDB Processlist"} 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)"}