From ea3032c079fbe1ece0a6552220a0804a3fd63bc9 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 2 May 2026 19:25:21 +0800 Subject: [PATCH] i18n + a11y for admin disables warning (review feedback) (#7652) Replace the hardcoded "Disables:" label and the inline title attribute with proper i18n keys (admin_plugins.disables.label, admin_plugins.disables.warning_title) and add role="alert" so screen readers announce the warning instead of treating it as visual noise. Per user review on #7649: "we should display it as a warning only if a plugin disables a test... Also i18n!!! Always remember to do i18n." Co-authored-by: Claude Opus 4.7 (1M context) --- admin/src/pages/HomePage.tsx | 5 +++-- src/locales/en.json | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/src/pages/HomePage.tsx b/admin/src/pages/HomePage.tsx index c21f593f3..244f34905 100644 --- a/admin/src/pages/HomePage.tsx +++ b/admin/src/pages/HomePage.tsx @@ -234,7 +234,8 @@ export const HomePage = () => { {plugin.disables && plugin.disables.length > 0 && (
{ display: 'inline-block', }} > - Disables: + {' '} {plugin.disables .map((tag) => tag.replace(/^@feature:/, '')) .join(', ')} diff --git a/src/locales/en.json b/src/locales/en.json index fdcd521c0..a9943ea6e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -7,6 +7,8 @@ "admin_plugins.available_install.value": "Install", "admin_plugins.available_search.placeholder": "Search for plugins to install", "admin_plugins.description": "Description", + "admin_plugins.disables.label": "Disables:", + "admin_plugins.disables.warning_title": "This plugin intentionally removes the listed Etherpad features.", "admin_plugins.installed": "Installed plugins", "admin_plugins.installed_fetching": "Fetching installed plugins…", "admin_plugins.installed_nothing": "You haven't installed any plugins yet.",