Skip to content

Commit 133eb7e

Browse files
authored
Merge pull request ManageIQ#7302 from Maria-Cordero-ibm/8670_formSortTranslate
Added gettext calls to MiqReport::GROUPINGS for options select
2 parents a339732 + bbb5cb8 commit 133eb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/report/_form_sort.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
- col = field_to_col(f.last)
146146
- selected = @edit[:new][:col_options][col] && @edit[:new][:col_options][col][:grouping] ? @edit[:new][:col_options][col][:grouping] : []
147147
= select_tag(field_name,
148-
options_for_select(MiqReport::GROUPINGS.map(&:reverse), selected),
148+
options_for_select(MiqReport::GROUPINGS.map(&:reverse).map { |key, value| [_(key), value] }, selected),
149149
:class => "selectpicker show-tick",
150150
:multiple => true,
151151
"title" => "Check Option")

0 commit comments

Comments
 (0)