Skip to content

Commit

Permalink
Manage translation by code in search like the instant search
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Jul 27, 2023
1 parent 138e5df commit 28d2213
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ monsieurbiz_searchplugin:
instant:
result:
app_taxon: Taxons
search:
result:
app_taxon: Taxons
1 change: 1 addition & 0 deletions src/Resources/translations/messages.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ monsieurbiz_searchplugin:
result:
search_result: 'Search results for "%query%" (%count%)'
no_result: 'No result.'
monsieurbiz_product: 'Products'
instant:
result:
search_result: 'Search results for "%query%" (%count%)'
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/translations/messages.fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ monsieurbiz_searchplugin:
result:
search_result: 'Résultats de recherche pour "%query%" (%count%)'
no_result: 'Pas de résultat.'
monsieurbiz_product: 'Produits'
instant:
result:
search_result: 'Résultats de recherche pour "%query%" (%count%)'
no_result: 'Pas de résultat.'
monsieurbiz_product: 'Produits'
filters:
filter_results: 'Filtrer les résultats'
apply_filters: 'Appliquer les filtres'
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/translations/messages.it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ monsieurbiz_searchplugin:
result:
search_result: 'Risultati per la ricerca "%query%" (%count%)'
no_result: 'Nessun risultato.'
monsieurbiz_product: 'Prodotti'
instant:
result:
search_result: 'Risultati per la ricerca "%query%" (%count%)'
no_result: 'Nessun risultato.'
monsieurbiz_product: 'Prodotti'
filters:
filter_results: 'Filtra i risultati'
apply_filters: 'Applica i filtri'
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/views/Search/_tabs.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
href="{{ path }}"
class="item {% if isActive %}active{% endif%}"
>
{{ ('monsieurbiz_searchplugin.instant.result.' ~ documentableRegistry.indexCode)|trans }}
{{ ('monsieurbiz_searchplugin.search.result.' ~ documentableRegistry.indexCode)|trans }}
</a>
{% endfor %}
</div>
Expand Down

0 comments on commit 28d2213

Please sign in to comment.