After creation of a node with a specified language, its tnid (link to its translation) is 0. If I add a translation, the tnid field is set to the source node's nid (in the case of the first node, nid = tnid).
The question is: why is this not done in the first place? I.e. when a node with a set language (not language neutral) is created, its tnid is set to itself. Would this break anything? I'm honestly curious why this is not done.
The reason why I need this functionality is this: I have a nodequeue and a view that displays nodes in that queue. I want the view to display translations of the nodes that are in the queue (and I do not want to have to add all the translations to the same queues). If the node that is in the queue has no other translations, there is no way for me to show it in the view as its relationship "node translation" is empty.
If this is theoretically doable, I could chip in and implement this.
Comments
Comment #1
sunThis module was a module in Drupal core since Drupal 6. It is going to be replaced with an alternative implementation developed by the i18n team.
Comment #2
ngocketit commentedHi,
Any update on this? It still happens to me on Drupal 7.