Multi-language with views and ubercart

Events happening in the community are now at Drupal community events on www.drupal.org.
dckantor's picture

Hi - I'm trying to solve an issue with a multi-language site and the use of views and ubercart. Here's a brief rundown.

Using views I create "events" with are listed on my events page.
Using translation I can take any page or story and translate it into my two secondary languages.

If I translate a page so that I have an English version and a Spanish version both of those show up in my list of events. If on the other hand I create a new view that lists only my Spanish language pages I need to create separate pages for that list. This means I lose the one-to-one correspondence of the Eng and Span page.

So either I give up having the translated pages correspond of I settle for having my events appear multiple times (one listing for each language because views sees them as separate events).

I have a similar problem with ubercart and publications that are translated into multiple languages.

Does anyone have any ideas?

thanks

Comments

In views, add a filter: Node

millenniumtree's picture

In views, add a filter:
Node Translation -> Language
Then check "Current user's language"

There's also the i18n (Internationalization) "Content negotiation" filter, which can be set up here:
/admin/settings/language/i18n

Does this help?

We put this one together: http://graff-faucets.com 13 translations, and it's a pretty complicated site.

YES

dckantor's picture

Thanks - been avoiding this for weeks because I thought it was going to be hard. Worked exactly like you said. Now I just need to see if I can do the analogous thing for Ubercart.

P.S. Nice Graff site

Cool! I'm glad it worked.

millenniumtree's picture

Cool! I'm glad it worked. Translations can get pretty hairy when you want to do a complicated site design.

If you want to rename some system strings but don't want to bother with the full translation system, String Overrides is a great alternative.

Translations

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: