Project

General

Profile

Patch #43379 » alert_types_localized.patch

Florian Walchshofer, 2025-10-21 22:42

View differences:

lib/redmine/wiki_formatting/common_mark/alerts_icons_filter.rb (working copy)
48 48
            icon_name = ALERT_TYPE_TO_ICON_NAME[alert_type]
49 49
            next unless icon_name # Skip if no specific icon is defined for this alert type
50 50

  
51
            # label alert translation
52
            node.content = ::I18n.t("label_alert_#{alert_type}", default: node.content)
53

  
51 54
            icon_html = ApplicationController.helpers.sprite_icon(icon_name, node.text)
52 55

  
53 56
            if icon_html
(1-1/2)