Commit d9ed443cb217868f3507668721d39a0ec9d5263c
1 parent
1bd0b110
Exists in
staging
and in
31 other branches
Fixes pluralization of search results string
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/profile_search/_results_list.html.erb
1 | 1 | <div id='search-content'> |
2 | 2 | <% if @results %> |
3 | 3 | <div class='results-found-message'> |
4 | - <%= _("%s results found") % @results.total_entries %> | |
4 | + <%= n_("%s result found", "%s results found", @results.total_entries) % @results.total_entries %> | |
5 | 5 | </div> |
6 | 6 | |
7 | 7 | <ul class='results-list'> | ... | ... |
app/views/search/_search_content.html.erb
1 | 1 | <div id='search-content'> |
2 | 2 | <div class='total'> |
3 | - <%= _('Total of %s results ') % @searches[@asset][:results].total_entries.inspect %> | |
3 | + <%= n_('Total of 1 result', 'Total of %s results', @searches[@asset][:results].total_entries) % @searches[@asset][:results].total_entries.inspect %> | |
4 | 4 | </div> |
5 | 5 | |
6 | 6 | <%= display_results(@searches, @asset) %> | ... | ... |