Remove duplication in search results summary

We were using very similar code for proposals, debates and investments,
so we might as well share the code between them.

Note we're using the `proposals.index.search_results` key even for
debates and investments. This will still work because the translations
shared the same text, but IMHO we should rename the key to something
like `shared.search_results_summary`. We aren't doing so because we'd
lose all the existing translations.
This commit is contained in:
Javi Martín
2022-04-09 02:04:18 +02:00
parent de35e93611
commit 5c0aa42351
12 changed files with 62 additions and 74 deletions

View File

@@ -110,9 +110,6 @@ es:
button: Buscar
placeholder: Buscar debates...
title: Buscar
search_results:
one: " que contiene <strong>'%{search_term}'</strong>"
other: " que contienen <strong>'%{search_term}'</strong>"
start_debate: Empieza un debate
title: Debates
section_header: