diff --git a/config/locales/en.yml b/config/locales/en.yml index 97b662999..005487b4f 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1178,6 +1178,11 @@ en: label_webhook_edit: Edit webhook label_webhook_events: Events label_integrations: Integrations + label_alert_note: Note + label_alert_tip: Tip + label_alert_warning: Warning + label_alert_caution: Caution + label_alert_important: Important webhook_events_issue: Issues webhook_events_issue_created: Issue created diff --git a/lib/redmine/wiki_formatting/common_mark/alerts_icons_filter.rb b/lib/redmine/wiki_formatting/common_mark/alerts_icons_filter.rb index 27429d778..73a09b15f 100644 --- a/lib/redmine/wiki_formatting/common_mark/alerts_icons_filter.rb +++ b/lib/redmine/wiki_formatting/common_mark/alerts_icons_filter.rb @@ -48,6 +48,9 @@ module Redmine icon_name = ALERT_TYPE_TO_ICON_NAME[alert_type] next unless icon_name # Skip if no specific icon is defined for this alert type + # label alert translation + node.content = ::I18n.t("label_alert_#{alert_type}", default: node.content) + icon_html = ApplicationController.helpers.sprite_icon(icon_name, node.text) if icon_html