Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By giupenni on
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
idk if that is possible
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.
I already use this trick.
I already use this trick.
I thought to a better solution but if not possible I will still to use this trick.
...!
maybe if you assign the node
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.
There is the same problem.
There is the same problem.
I have two duplicate nodes of the same node (neutral and translated) in the same view.
...!
how about applying
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.
You only need one view to
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.