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

Add i18n for catch-all collection tags #375

merged 2 commits into from Mar 26, 2015

Conversation

cshold
Copy link
Contributor

@cshold cshold commented Mar 20, 2015

Catch-all links to create _All _collection** links were not i18n friendly. This fixes that.

cc @carolineschnapp

@@ -74,6 +74,7 @@
},
"collections": {
"general": {
"all_of_collection": "Tous les {{ collection }}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We actually got rid of this in our Shopify themes. There are 3 issues with passing the collection title:

  • Grammatical. This will work half the time in French for example, because words have gender there ( same in Spanish ! ). Tous les only works with masculine words.
  • You often end up having a collection which name is 'All Products'. Then you have 'All all products'.
  • To override the automatic /collections/all collection, merchants need to create a collection with handle all and when they do that, they often create a collection which title is All ( to end up with the right handle ) and then you will see All all.

On paper this seems like the best idea though! It's just too bad we cannot really make it work. :'(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good to know. Any reason to leave just All there, or strip that out too?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For French it's definitely a show-stopper, so you can safely not reference the passed collection. 50% of times the sentence will read very bad, not just a little bad. So, in French translation use:

   "all_of_collection": "Tout",

That is like All. It is not weird, it just works all the time. Just using this:

   "all_of_collection": "{{ collection }}",

... will be confusing imho. How do you un-filter? How do you see all products? What is a sub-category and what is the main category / collection?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. I'll go with All for French and Spanish and leave the others intact. Sound good?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Sounds great!

On Fri, Mar 20, 2015 at 1:32 PM, Carson Shold notifications@github.com
wrote:

In locales/fr.json
#375 (comment):

@@ -74,6 +74,7 @@
},
"collections": {
"general": {

  •  "all_of_collection": "Tous les {{ collection }}",
    

Good call. I'll go with All for French and Spanish and leave the others
intact. Sound good?


Reply to this email directly or view it on GitHub
https://github.com/Shopify/Timber/pull/375/files#r26858962.

@carolineschnapp
Copy link
Contributor

🚢 🚢 🚢

cshold added a commit that referenced this pull request Mar 26, 2015
Add i18n for catch-all collection tags
@cshold cshold merged commit 6f1b9c0 into master Mar 26, 2015
@cshold cshold deleted the i18n-collection-tags branch March 26, 2015 13:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants