Hi,

I'm trying to crate a language-sensitive view for translated content; the language versions are separated by subdomains (en.* for english, es.* for spanisch, etc.), an on the en.* subdomain I just want to show content in this language. Without "special handling" the view outputs a mixture of all available language pages which, at least in my case, is unwanted.

I assume that I have to set up an argument for this; Views 2 offers me two arguments related to localized content:

  • Node translation: Language - The language the content is in.
  • Node translation: Translation set node ID - The ID of the translation set the content belongs to.

I played around with the options but couldn't get the view to filter out other languages, and honestly I don't quite understand how to approach this (are arguments even the right way to do this?). Could someone provide a helping hand, please?

Thanks & greetings, -asb

Comments

andrew.eatherington@gmail.com’s picture

Yes I would also like the same.

I put together a page view and had "Node translation: Language = Current user's language " as a filter. That seemed to work and the post translation changed with the language switcher.

I had a block view using the same, and this wouldn't play the game, not displaying any posts regardless of the language set.

Any pointers would be gratefully received!

andrew.eatherington@gmail.com’s picture

Just realised my other posts were set to Language neutral!! Setting them to a particular language seems to have cured it also using "Node translation: Language = Current user's language" as a filter.