I have a views that I would like to filter by language, but some nodes are translated and others not.

When I change language is possible to display the translated node or the default language for nodes that are not still translated without duplicates?

Thank you in advance.

Comments

XandieL’s picture

idk if that is possible

BUT

you can just translate the page and hit save and it will look like the original.

I like the universe, but she messes with my words
I'm not talking planets or galaxies and the distance just makes it worse.
I know what you're thinking, this probably sounds rehearsed.

giupenni’s picture

I already use this trick.
I thought to a better solution but if not possible I will still to use this trick.

...!

XandieL’s picture

maybe if you assign the node as language neutral and use add it to your language filter?

I like the universe, but she messes with my words
I'm not talking planets or galaxies and the distance just makes it worse.
I know what you're thinking, this probably sounds rehearsed.

giupenni’s picture

There is the same problem.
I have two duplicate nodes of the same node (neutral and translated) in the same view.

...!

XandieL’s picture

how about applying aggregation to remove duplicates?

idk if its viable in your case though

I like the universe, but she messes with my words
I'm not talking planets or galaxies and the distance just makes it worse.
I know what you're thinking, this probably sounds rehearsed.

ramesh_singh’s picture

You only need one view to filter content depending on the user's current language.

With regard to your requirement, one easy way could be to set a taxonomy such as
- English only
- French only
- Both languages

and use that to filter your views accordingly.

There is probably a more elegant way, check the following article on drupal.org
HowTo: Basic Internationalization setup. A multilingual setup involves so many various steps and modules, also there are many possible recipes.