From 4a11d279829409de0ee58f534a7e4227dbc86c42 Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Tue, 11 Jun 2024 17:42:45 +0800 Subject: [PATCH] FIX: Move chat integration problem check message to correct locale key (#201) As part of enhancing problem checks and admin notices, we standardized the location of the problem check messages' locale keys. However, we overlooked this one in the plugin, resulting in a missing translation on the dashboard. This PR puts the locale key in the place expected by the admin notice system. --- app/services/problem_check/channel_errors.rb | 4 ---- config/locales/server.en.yml | 6 ++++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/services/problem_check/channel_errors.rb b/app/services/problem_check/channel_errors.rb index bd1b755..833a505 100644 --- a/app/services/problem_check/channel_errors.rb +++ b/app/services/problem_check/channel_errors.rb @@ -18,8 +18,4 @@ class ProblemCheck::ChannelErrors < ProblemCheck ::DiscourseChatIntegration::Provider.is_enabled(channel.provider) end end - - def translation_key - "chat_integration.admin_error" - end end diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index c35c8a4..bd3f165 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -111,6 +111,10 @@ en: chat_integration_google_enabled: "Enable the 'Google Chat' chat integration provider" chat_integration_google_excerpt_length: "Google Chat post excerpt length" + dashboard: + problem: + channel_errors: "Some chat integration channels have errors. Visit the chat integration section to find out more." + discourse_automation: scriptables: send_slack_message: @@ -124,8 +128,6 @@ en: group_mention_template: "mentions of: @%{name}" group_message_template: "messages to: @%{name}" - admin_error: "Some chat integration channels have errors. Visit the chat integration section to find out more." - provider: #######################################