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 alexandreracine on
i18n Is there any way to know if the node is translated or not?
Check out this node please : http://drupal.org/node/83959
Comments
Yes there is
Go to admin > settings > translation
and there you have the option to display links to node translations.
That way you can have a link both with the teaser and with the main copy of the content.
The default is none, which is why you can't see the link until you enable itwithin your site.
HTH
/elfur.is
i18n, links if and only if it is translated.
This will add the links, but they will always be there.
What I want is to have a link, if and only if the node is translated.
Alexandre Racine
www.gardienvirtuel.com Sécurité informatique, conformité, consultation, etc
www.salsamontreal.com La référence salsa à Montréal
This does just that
No, this only provides links on the nodes that are available in a different language.
I just very recently started translating my content into English, and thus, have only two documents in the English section of my own website. If you follow this link: http://elfur.is/is/resume you *only* see the English link under the Education section, because that's the only one that has been translated.
As another example, the guy who's responsible for the I18n module, Jose A Reyero is using this module on his webpage http://reyero.net and while browsing the English version you'll see a Spanish flag on all nodes, if you switch to the Spanish version, you'll notice that not all Spanish nodes have an English version.
HTH
/elfur.is
These are pretty good
These are pretty good example of how it does work.
What php code must I put inside my node (or node.php.template) to get that functionnality?
Alexandre Racine
www.gardienvirtuel.com Sécurité informatique, conformité, consultation, etc
www.salsamontreal.com La référence salsa à Montréal
none
None needed.
All you have to do is download the module and install it. Enable all four modules and then enable the display (following the guidelines I gave in my first reply to this tread)
oh and if you want the language block (like I have on my website) you enable that in the blocks section
Good luck
/elfur.is
You are right, it does
You are right, it does work!
I'll add for clarity, and for people witch will look at this in the future, that you must at least have a node translated in two or more languages.
Alexandre Racine
www.gardienvirtuel.com Sécurité informatique, conformité, consultation, etc
www.salsamontreal.com La référence salsa à Montréal
Two or more languages?
You mean, that you have a node - which is then translated into *one other* language?
or you mean that you have to translate it to *two other* languages?
If former, I agree, if latter, I disagree :)
Because, again with my example, I only have two languages in my locale. The original English and my added Icelandic.
cheers
/elfur.is