Hello,

I'm using the Corporate X theme from themeforest:

http://themeforest.net/item/corporate-x-multipurpose-drupal-7-theme/926653

It features a slideshow on the front page.

I have setup a language switcher for English and Spanish.

After enabling i18n, I marked a slide's language as English. Then I provided a translation for Spanish.

Of course, I'd like to filter the slides by the selected language. I went to Structure -> Views -> jQuery Slideshow -> edit -> FILTER CRITERIA -> add. I selected "Content translation: language", "Is one of ...". Here's the problem I'm running into. There doesn't seem to be an option for the selected language. The options I can match against are:

* Select all
* Current user's language
* Default site language
* No language
* English
* Spanish

"Current user's language" appears to be the language a user has selected in their profile.

"Default site language" in my case is English.

Under Languages 'detection and selection', I have Default, URL, and User checked. So URLs for English are just 'site.org', while for Spanish they are 'site.org/es'.

How can I filter the slides by the language selected by the user via the language switcher?

Thanks!

Ed

Comments

awilliams’s picture

language switcher also get filtered as the current user's language. see comment http://groups.drupal.org/node/47478#comment-771088

dharmalab’s picture

Ack... you're right! :-)

The problem was that under "Configuration -> Languages -> detection and selection", I had the order set to Default, URL, User. I changed it to URL, Default, User, and this fixed the problem.

Thanks for insisting that "current user's language" was the right option. :-)

Ed