Hi,

I'm having a lot of trouble finding any information on how to setup views so a different views page is shown for different languages. I have 4 languages on my site (En, Fr, De, Es) and for each language I want a different filter, so that only nodes tagged (using CCK field) with that country are shown for that language. I'd prefer if this wasn't an argument filter passed in the URL as the locale is already part of the URL (mydomain.com/fr/ etc.). Also it may be preferable to have a different view for each language, so I can set the filters accordingly, and also translate the no items found text for the views page to each language.

If anyone has any info on how to do this (all I can find is general views translations of the text but nothing to change the actually view being shown based on the locale) please let me know as I urgently need this feature for a project I'm delivering.

Many thanks,

David

Comments

merlinofchaos’s picture

If the translation module is active you can filter on the node language based upon the current language. Use Node: Language filter.

If you're using some other solution you'll have to probably write new filters to take advantage of the data.

najibx’s picture

hi ...

1. do you mean "general views translations of the text" = label for each field? if so, how this is done?

2. i have i18n enabled. I cannot find 'Node: Language filter". But I see "Node: Select translation". The I select "Use current language ; if not available use original language". Post with translation is not listed.

3. I use filter "Node translation: Language" - The language the content is in.
Result no good.
I selected "Is one of" "Current user's language" as well as "No language".
Whenever content has translation, there are not listed. Only no language post listed.

4. Not sure the difference between 2) and 3). sounds similar but both not work for me.

:-(

thanks for reading

esmerel’s picture

Status: Active » Fixed

given the age of this request, I have to assume it's either taken care of or no longer relevant.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.