Commit e04d28b8734cff0283c3ad9494375474a2d34239
1 parent
51789906
Exists in
master
and in
28 other branches
Use method to encapsulate and ensure translation
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/helpers/search_helper.rb
... | ... | @@ -110,7 +110,7 @@ module SearchHelper |
110 | 110 | end |
111 | 111 | end |
112 | 112 | else |
113 | - ret << [facet[:label], name_with_extra(klass, facet, value), | |
113 | + ret << [klass.facet_label(facet), name_with_extra(klass, facet, value), | |
114 | 114 | params.merge(:facet => params[:facet].reject{ |k,v| k == id })] |
115 | 115 | end |
116 | 116 | end | ... | ... |
app/views/search/_facets_menu.rhtml
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | |
6 | 6 | <div id="facet-menu-<%= facet[:id].to_s %>" class="facet-menu"> |
7 | 7 | <div class="facet-menu-label"> |
8 | - <%= facet[:label] %> | |
8 | + <%= @asset_class.facet_label(facet) %> | |
9 | 9 | </div> |
10 | 10 | |
11 | 11 | <% results = @asset_class.map_facet_results(facet, params[:facet], @facets, @all_facets, :limit => less_options_limit) %> | ... | ... |