From 3e92289927452054834e269f930a8301b6913296 Mon Sep 17 00:00:00 2001 From: Carson Shold Date: Fri, 20 Mar 2015 12:01:53 -0400 Subject: [PATCH 1/2] Add i18n for catch-all collection tags --- locales/de.json | 1 + locales/en.default.json | 1 + locales/es.json | 1 + locales/fr.json | 1 + locales/pt-BR.json | 1 + locales/pt-PT.json | 1 + snippets/collection-sidebar.liquid | 13 +++++++++---- 7 files changed, 15 insertions(+), 4 deletions(-) diff --git a/locales/de.json b/locales/de.json index a2da521b7..aae74bc50 100644 --- a/locales/de.json +++ b/locales/de.json @@ -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", diff --git a/locales/en.default.json b/locales/en.default.json index 1888115aa..a8ccdcad1 100644 --- a/locales/en.default.json +++ b/locales/en.default.json @@ -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", diff --git a/locales/es.json b/locales/es.json index 9b49761b7..c643c2f35 100644 --- a/locales/es.json +++ b/locales/es.json @@ -74,6 +74,7 @@ }, "collections": { "general": { + "all_of_collection": "Todo {{ collection }}", "no_matches": "Lo sentimos, no hay productos que coincidan con su búsqueda.", "link_title": "Navegue por nuestra colección {{ title }}", "grid_view": "Tabla", diff --git a/locales/fr.json b/locales/fr.json index e31fd2428..d8e42295b 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -74,6 +74,7 @@ }, "collections": { "general": { + "all_of_collection": "Tous les {{ collection }}", "no_matches": "Aucun produit ne correspond à votre recherche.", "link_title": "Consultez la collection {{ title }}", "grid_view": "Grille", diff --git a/locales/pt-BR.json b/locales/pt-BR.json index f5a2b3c98..caaed0a6b 100644 --- a/locales/pt-BR.json +++ b/locales/pt-BR.json @@ -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", diff --git a/locales/pt-PT.json b/locales/pt-PT.json index f7c17037c..4e5c4e281 100644 --- a/locales/pt-PT.json +++ b/locales/pt-PT.json @@ -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", diff --git a/snippets/collection-sidebar.liquid b/snippets/collection-sidebar.liquid index e75e121da..64c71fd6e 100755 --- a/snippets/collection-sidebar.liquid +++ b/snippets/collection-sidebar.liquid @@ -27,20 +27,25 @@ Good for /collections/all collection and regular collections {% endcomment %} {% if collection.handle %} - All {{ collection.title }} + + {{ 'collections.general.all_of_collection' | t: collection: collection.title }} + {% comment %} Good for automatic type collections {% endcomment %} {% elsif collection.current_type %} - All {{ collection.title }} + + {{ 'collections.general.all_of_collection' | t: collection: collection.title }} + {% comment %} Good for automatic vendor collections {% endcomment %} {% elsif collection.current_vendor %} - All {{ collection.title }} - + + {{ 'collections.general.all_of_collection' | t: collection: collection.title }} + {% endif %} From 7b6c95e33c6f4a201ba384938c142e78d405863a Mon Sep 17 00:00:00 2001 From: Carson Shold Date: Fri, 20 Mar 2015 13:33:56 -0400 Subject: [PATCH 2/2] General All links for fr/es --- locales/es.json | 2 +- locales/fr.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/locales/es.json b/locales/es.json index c643c2f35..1bf2e20ec 100644 --- a/locales/es.json +++ b/locales/es.json @@ -74,7 +74,7 @@ }, "collections": { "general": { - "all_of_collection": "Todo {{ collection }}", + "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", diff --git a/locales/fr.json b/locales/fr.json index d8e42295b..34ae11400 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -74,7 +74,7 @@ }, "collections": { "general": { - "all_of_collection": "Tous les {{ collection }}", + "all_of_collection": "Tout", "no_matches": "Aucun produit ne correspond à votre recherche.", "link_title": "Consultez la collection {{ title }}", "grid_view": "Grille",