Patch #43379 » alert_types_localized.patch
| lib/redmine/wiki_formatting/common_mark/alerts_icons_filter.rb (working copy) | ||
|---|---|---|
|
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
|
||