From 1c7ead6008397ce815de4102d023a708be636a3c Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 5 Dec 2024 12:29:13 +0300 Subject: [PATCH] Use translated model names in issue type select --- app/views/issues/index.html.erb | 2 +- config/locales/en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 95dfbf6f2..3f79190fa 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -15,7 +15,7 @@
<%= select_tag :issue_type, - options_for_select(@issue_types, params[:issue_type]), + options_for_select(@issue_types.map { |issue_type| [issue_type.constantize.model_name.human, issue_type] }, params[:issue_type]), :include_blank => t(".select_type"), :data => { :behavior => "category_dropdown" }, :class => "form-select" %> diff --git a/config/locales/en.yml b/config/locales/en.yml index fbb1f956c..29c416c76 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -59,6 +59,7 @@ en: message: "Message" node: "Node" node_tag: "Node Tag" + note: "Note" old_node: "Old Node" old_node_tag: "Old Node Tag" old_relation: "Old Relation" -- 2.39.5