Skip to content

feat(operation-record): add operation action/type locale messages#3333

Open
LordofAvernus wants to merge 1 commit into
mainfrom
feat/operation-record-filter-880
Open

feat(operation-record): add operation action/type locale messages#3333
LordofAvernus wants to merge 1 commit into
mainfrom
feat/operation-record-filter-880

Conversation

@LordofAvernus

@LordofAvernus LordofAvernus commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

User description

Summary

  • Add Chinese and English labels for SQLE operation record metadata

Related

  • actiontech/sqle-ee#2635
  • actiontech/dms-ee#880
  • EE counterpart: actiontech/sqle-ee PR (feat/operation-record-filter-880 → main-ee)

Test plan

  • CI test pass on main

Made with Cursor


Description

  • 添加工单更新、审核及SQL版本相关本地化消息

  • 更新并整理active.en.toml和active.zh.toml内容

  • 删除冗余旧消息,统一提示文案和术语


Diagram Walkthrough

flowchart LR
  A["\"sqle/locale/message_zh.go\""] -- "添加新消息" --> B["\"sqle/locale/active.en.toml\""]
  B -- "统一翻译调整" --> C["\"sqle/locale/active.zh.toml\""]
Loading

File Walkthrough

Relevant files
Enhancement
message_zh.go
新增及更新本地化消息配置                                                                                         

sqle/locale/message_zh.go

  • 添加
    OprActionUpdateWorkflow、OprActionUpdateFeishuAuditConfiguration、OprActionUpdateWechatAuditConfiguration、OprActionUpdateCodingConfiguration
    等消息
  • 添加关于审核SQL例外、黑名单、报告推送、自定义规则、SQL版本、数据源扫描任务、流水线和SSH密钥的本地化配置
  • 扩充工单及SQL操作提示,统一本地化表达
+57/-114
active.en.toml
修改并优化英文本地化配置                                                                                         

sqle/locale/active.en.toml

  • 更新英文本地化字符串,新增与工单操作和SQL版本相关的描述
  • 删除多余的字段,调整部分文本表达
  • 统一格式及部分提示语的翻译
+34/-73 
active.zh.toml
更新并优化中文版本地化配置                                                                                       

sqle/locale/active.zh.toml

  • 更新中文版本地化字符串,新增工单及SQL版本相关消息
  • 移除冗余配置,统一描述格式和术语
  • 同步英文调整,优化提示信息展示
+35/-74 

Add Chinese and English labels for SQLE operation record metadata.

Refs actiontech/sqle-ee#2635
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

🎫 Ticket compliance analysis ✅

2635 - Fully compliant

Compliant requirements:

  • 工单状态初始化及相关本地化消息更新
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

消息一致性

请确认新增的本地化消息在中文文件中采用的标点、空格和格式与现有定义保持一致,避免由于格式不统一影响用户体验。

OprActionUpdateWorkflow              = &i18n.Message{ID: "OprActionUpdateWorkflow", Other: "更新工单"}
OprActionUpdateFeishuAuditConfiguration = &i18n.Message{ID: "OprActionUpdateFeishuAuditConfiguration", Other: "修改飞书审批配置"}
OprActionUpdateWechatAuditConfiguration = &i18n.Message{ID: "OprActionUpdateWechatAuditConfiguration", Other: "修改微信审批配置"}
OprActionUpdateCodingConfiguration   = &i18n.Message{ID: "OprActionUpdateCodingConfiguration", Other: "修改Coding配置"}
OprActionCreateAuditWhitelist        = &i18n.Message{ID: "OprActionCreateAuditWhitelist", Other: "创建审核SQL例外"}
OprActionUpdateAuditWhitelist        = &i18n.Message{ID: "OprActionUpdateAuditWhitelist", Other: "更新审核SQL例外"}
OprActionDeleteAuditWhitelist        = &i18n.Message{ID: "OprActionDeleteAuditWhitelist", Other: "删除审核SQL例外"}
OprActionCreateBlacklist             = &i18n.Message{ID: "OprActionCreateBlacklist", Other: "创建黑名单"}
OprActionUpdateBlacklist             = &i18n.Message{ID: "OprActionUpdateBlacklist", Other: "更新黑名单"}
OprActionDeleteBlacklist             = &i18n.Message{ID: "OprActionDeleteBlacklist", Other: "删除黑名单"}
OprActionUpdateReportPushConfig      = &i18n.Message{ID: "OprActionUpdateReportPushConfig", Other: "修改报告推送配置"}
OprActionCreateCustomRule            = &i18n.Message{ID: "OprActionCreateCustomRule", Other: "创建自定义规则"}
OprActionUpdateCustomRule            = &i18n.Message{ID: "OprActionUpdateCustomRule", Other: "更新自定义规则"}
OprActionDeleteCustomRule            = &i18n.Message{ID: "OprActionDeleteCustomRule", Other: "删除自定义规则"}
OprActionCreateSqlVersion            = &i18n.Message{ID: "OprActionCreateSqlVersion", Other: "创建SQL版本"}
OprActionUpdateSqlVersion            = &i18n.Message{ID: "OprActionUpdateSqlVersion", Other: "更新SQL版本"}
OprActionDeleteSqlVersion            = &i18n.Message{ID: "OprActionDeleteSqlVersion", Other: "删除SQL版本"}
OprActionLockSqlVersion              = &i18n.Message{ID: "OprActionLockSqlVersion", Other: "锁定SQL版本"}
OprActionCreateInstanceAuditPlan     = &i18n.Message{ID: "OprActionCreateInstanceAuditPlan", Other: "创建数据源扫描任务"}
OprActionUpdateInstanceAuditPlan     = &i18n.Message{ID: "OprActionUpdateInstanceAuditPlan", Other: "更新数据源扫描任务"}
OprActionDeleteInstanceAuditPlan     = &i18n.Message{ID: "OprActionDeleteInstanceAuditPlan", Other: "删除数据源扫描任务"}
OprActionCreatePipeline              = &i18n.Message{ID: "OprActionCreatePipeline", Other: "创建流水线"}
OprActionUpdatePipeline              = &i18n.Message{ID: "OprActionUpdatePipeline", Other: "更新流水线"}
OprActionDeletePipeline              = &i18n.Message{ID: "OprActionDeletePipeline", Other: "删除流水线"}
OprActionGenSSHKey                   = &i18n.Message{ID: "OprActionGenSSHKey", Other: "生成SSH密钥"}
翻译校验

请核查新增及修改的英文消息是否与中文版本语义完全对应,确保术语和描述在中英文版本之间保持准确一致。

ApMetaAliRdsMySQLAuditLog = "AliRDS MySQL audit log"
ApMetaAliRdsMySQLSlowLog = "AliRDS MySQL slow log"
ApMetaAllAppExtract = "Application SQL extraction"
ApMetaBaiduRdsMySQLSlowLog = "Baidu Cloud RDS MySQL slow log"
ApMetaCustom = "Custom"
ApMetaDB2TopSQL = "DB2 Top SQL"
ApMetaDistributedLock = "Distributed Lock"
ApMetaDmTopSQL = "DM TOP SQL"
ApMetaHuaweiRdsMySQLSlowLog = "Huawei Cloud RDS MySQL slow log"
ApMetaMDBSlowLog = "slow log(Monitor DB)"
ApMetaMySQLProcesslist = "Processlist"
ApMetaMySQLSchemaMeta = "Database schema metadata"
ApMetaObForOracleTopSQL = "OceanBase For Oracle TOP SQL"
ApMetaOracleTopSQL = "Oracle TOP SQL"
ApMetaPostgreSQLTopSQL = "TOP SQL"
ApMetaSchemaMeta = "Database schema metadata"
ApMetaSlowLog = "Slow log"
ApMetaTiDBAuditLog = "TiDB audit log"
ApMetaTopSQL = "Top SQL"
ApMetricEngine = "engine"

@github-actions

Copy link
Copy Markdown

PR Code Suggestions ✨

No code suggestions found for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant