mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
Localize commonmark alert extension (#43379).
Patch by Florian Walchshofer (user:amiswalc). git-svn-id: https://svn.redmine.org/redmine/trunk@24077 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
124ffa3e8b
commit
27bade55ee
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user