Commit c10cc29cdb86ec78dbdf8804c0a8d2e64a8d0e54
Exists in
send_email_to_admins
and in
5 other branches
Merge branch 'results-plural' into 'master'
Fixes pluralization of search results string See merge request !872
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) %> | ... | ... |