From dc6bfad497200b85ffc04d26af316c76449a4769 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Tue, 13 Jan 2026 17:50:49 +0000 Subject: [PATCH] Reuse existing plural labels for webhooks types (#29664). git-svn-id: https://svn.redmine.org/redmine/trunk@24309 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/webhooks/_form.html.erb | 2 +- config/locales/en.yml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/views/webhooks/_form.html.erb b/app/views/webhooks/_form.html.erb index ab927f7f9..6e4c281cf 100644 --- a/app/views/webhooks/_form.html.erb +++ b/app/views/webhooks/_form.html.erb @@ -16,7 +16,7 @@

<%= l :label_webhook_events %>

<% @webhook.setable_events.keys.sort.each do |type| %> -
<%= toggle_checkboxes_link("##{type}_events\ input") %><%= l_or_humanize(type, prefix: 'webhook_events_') %> +
<%= toggle_checkboxes_link("##{type}_events\ input") %><%= l(:"label_#{type}_plural", :default => type.to_s.humanize.pluralize) %> <% @webhook.setable_events[type].each do |action| %> <% name = "#{type}.#{action}" %>