Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Add i18n for catch-all collection tags #375

Merged
merged 2 commits into from
Mar 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"collections": {
"general": {
"all_of_collection": "Alle {{ collection }}",
"no_matches": "Es tut uns leid, aber Ihre Suche nach Produkten hat keine Treffer ergeben.",
"link_title": "Durchsuchen Sie unsere {{ title }}-Zusammenstellung",
"grid_view": "Gitteransicht",
Expand Down
1 change: 1 addition & 0 deletions locales/en.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"collections": {
"general": {
"all_of_collection": "All {{ collection }}",
"no_matches": "Sorry, there are no products in this collection",
"link_title": "Browse our {{ title }} collection",
"grid_view": "Grid view",
Expand Down
1 change: 1 addition & 0 deletions locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"collections": {
"general": {
"all_of_collection": "Todos",
"no_matches": "Lo sentimos, no hay productos que coincidan con su búsqueda.",
"link_title": "Navegue por nuestra colección {{ title }}",
"grid_view": "Tabla",
Expand Down
1 change: 1 addition & 0 deletions locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"collections": {
"general": {
"all_of_collection": "Tout",
"no_matches": "Aucun produit ne correspond à votre recherche.",
"link_title": "Consultez la collection {{ title }}",
"grid_view": "Grille",
Expand Down
1 change: 1 addition & 0 deletions locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"collections": {
"general": {
"all_of_collection": "Todos de {{ collection }}",
"no_matches": "Desculpe, mas não há produtos correspondentes à sua busca.",
"link_title": "Explore a nossa coleção {{ title }}",
"grid_view": "Grelha",
Expand Down
1 change: 1 addition & 0 deletions locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
},
"collections": {
"general": {
"all_of_collection": "Toda a {{ collection }}",
"no_matches": "Lamentamos, mas nenhum produto corresponde à sua pesquisa.",
"link_title": "Explorar a nossa coleção {{ title }}",
"grid_view": "Grelha",
Expand Down
13 changes: 9 additions & 4 deletions snippets/collection-sidebar.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,25 @@
Good for /collections/all collection and regular collections
{% endcomment %}
{% if collection.handle %}
<a href="/collections/{{ collection.handle }}">All {{ collection.title }}</a>
<a href="/collections/{{ collection.handle }}">
{{ 'collections.general.all_of_collection' | t: collection: collection.title }}
</a>

{% comment %}
Good for automatic type collections
{% endcomment %}
{% elsif collection.current_type %}
<a href="{{ collection.current_type | url_for_type }}">All {{ collection.title }}</a>
<a href="{{ collection.current_type | url_for_type }}">
{{ 'collections.general.all_of_collection' | t: collection: collection.title }}
</a>

{% comment %}
Good for automatic vendor collections
{% endcomment %}
{% elsif collection.current_vendor %}
<a href="{{ collection.current_vendor | url_for_vendor }}">All {{ collection.title }}</a>

<a href="{{ collection.current_vendor | url_for_vendor }}">
{{ 'collections.general.all_of_collection' | t: collection: collection.title }}
</a>
{% endif %}
</li>

Expand Down