i18n taxonomy translation

237 views
Skip to first unread message

Ross Ashley

unread,
Feb 1, 2011, 2:47:44 PM2/1/11
to spree...@googlegroups.com
Shoudn't I be able to include this in my .yml file?

shop_by_taxonomy: "Acheter par %{taxonomy}"
taxonomy:
Category: "categorie"
Collection: "collection"

Adding this taxonomy: section crashes the app but if I don't add it, the
taxonomies are not translated.

How do we add actual taxonomy translations?

Thanks,
Ross

Brian Quinn

unread,
Feb 2, 2011, 4:19:17 AM2/2/11
to spree...@googlegroups.com
The taxonomy names are actually stored in the database, so you can edit them via the Configuration menu. Currently you can only have your taxonomy in one language.


--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.




--
Brian Quinn

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

Sean Schofield

unread,
Feb 2, 2011, 7:39:41 AM2/2/11
to spree...@googlegroups.com
The same restriction applies to product names and descriptions. There
are plugins that address this and perhaps one day soon we'll have an
official recommendation/extension for how to handle this. Honestly it
doesn't come up too often (once every couple of months maybe somebody
asks about it.)

Sean Schofield

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

Ross Ashley

unread,
Feb 3, 2011, 8:35:58 AM2/3/11
to spree...@googlegroups.com
To have a multi-lingual shopping site, it is necessary to translate not
only spree text but also to provide a way for user input text to be
translated. If we wanted a site that had the capability for only one
language, whether that was English or French or German or Mandarin, we
could make out description in that language only, set the appropriate
default and away we go, but we have to make this site multi-lingual, we
have no choice.

So, can anyone give me a plugin name that addresses this?

Remy Giard

unread,
Feb 3, 2011, 3:29:20 PM2/3/11
to Spree
In the previous version of Spree, Oliver Barnes built an extension
that could do it. But it has not been transfered to the newest
version. It is based on Globalize2 which I think is a good idea. The
extension is pretty simple. IMO, the missing part is the
administration of the user inputs texts in different languages. In
fact, you had to switch the language in the administration and then
set your user input for the current language.

I plan to work on this soon as I finish my current project, which is
in three weeks. My plan is to have something similar to a module I've
seen in Drupal where we can't edit the translations for every
translatable texts in the current page. But if you work on this, let
me know, I'll be interested to put an eye.

Oliver Barnes's extension :
https://github.com/oliverbarnes/spree-product-translations

matteo folin

unread,
Feb 3, 2011, 3:36:02 PM2/3/11
to Spree
In my opinion the best solution right now is http://github.com/tomash/globalize-spree
, that use globalize3.
It's not complete, so I hope, with other programmer, to extend it to
more models.
When we'll have a working extension we'll share it.
Reply all
Reply to author
Forward
0 new messages