Shawn-Xiao40 opened a new pull request, #46077: URL: https://github.com/apache/superset/pull/46077
### SUMMARY Reviews the Simplified Chinese (`zh`) translations for alerts and reports, and makes the translation of "alert" consistent across the catalog. 37 entries change; the number of `fuzzy` entries drops from 955 to 926. **1. Terminology decision: "alert" → 告警** | Translation | Entries before this PR | | --- | --- | | 告警 | 28 | | 警报 | 10 | | 预警 | 1 | This PR uses **告警** for all 11 entries that used 警报 or 预警 (e.g. `Alert`, `Edit alert`, `Alert contents`, `Trigger Alert If...`, `Database is required for alerts`). - 告警 is the most common translation, matches the `Alerts & Reports` menu (告警和报告), and is the term chosen in #45932. - Rejected 警报: reads as an alarm or siren, which is stronger than a data-driven notification. - Rejected 预警: means "early warning", which is narrower than Superset's alerts. **2. Corrected translations (4)** | msgid | Before | After | Reason | | --- | --- | --- | --- | | `A report named "%(name)s" already exists` | 报告 %(name)s 已存在 | 名为“%(name)s”的报告已存在 | Restore the quotes; same pattern as the existing alert message | | `Enter alert name` | 告警名称 | 输入告警名称 | "Enter" was not translated; matches `Enter report name` (输入报告名称) | | `CRON Schedule` | CRON定时任务 | CRON 计划 | "schedule" is translated as 计划 in 29 entries | | `Share permalink by email` | 通过电子邮件分享链接 | 通过电子邮件分享永久链接 | "permalink" was dropped | **3. Confirmed translations (22)** Reviewed and kept as is, with the `fuzzy` flag and machine-translation / AI-draft attribution comments removed, as described in the translation guide. These include `Add alert`, `Add report`, `Edit report`, `Report Name`, `Notification Method`, `Weekly Report`, `alert condition`, the alert/report schedule error messages, and the four alert query validation messages added in #45932. **Out of scope (possible follow-ups)** - "report" is translated as both 报告 (53) and 报表 (17); unifying it is a separate terminology decision. - `EMAIL_REPORTS_CTA` is in `do-not-translate.txt` but has a Chinese translation in the `zh` catalog; left unchanged pending maintainer guidance. The edits were drafted with Claude Code assistance and reviewed entry by entry by a native Chinese speaker. ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF Not captured; the full Superset application was not run. ### TESTING INSTRUCTIONS - Parsed the catalog with `polib`: 5,949 entries before and after, no duplicate keys, placeholders (`%(name)s`, `%(report_names)s`, `%(commands)s`, `%(report_type)s`, `%(minimum_interval)d`) preserved in every changed entry. - `pybabel compile --use-fuzzy -l zh` reports the same 3 pre-existing "placeholders are incompatible" errors before and after this change (lines 197, 217, 225; not touched here). - `git diff --check` passes. Only the edited lines change; no re-wrapping of the file. - To verify in the UI: compile the Chinese locale, switch Superset to 简体中文 and open **Alerts & Reports**. ### ADDITIONAL INFORMATION - [ ] Has associated issue: - [ ] Required feature flags: - [x] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
