Closed (duplicate)
Project:
Entity cache
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 May 2012 at 20:10 UTC
Updated:
21 Aug 2013 at 20:21 UTC
Somehow when assigning a translated node to a node, the translation id isn’t set properly in the database.
The tnid value is the same as the actual nid, which means that the translations block links to the page that is displayed.
SELECT *
FROM `node`
WHERE `nid` = `tnid`
LIMIT 30Maybe that has to do something with my tests of using the entity translation module, which I have dismissed in the meantime.
Is there a fix for that?
Comments
Comment #1
webflo commentedContent translation uses 'tnid' for mapping different nodes together. All nodes in a translation set have the same tnid. The source not of a translations set has its own nid as tnid (tnid == nid).
Source node: tnid == nid
Child node (aka. translation): tnid != nid
So if tnid is identical to nid thats perfectly fine. This just mean, this is the source node of a translation set. Every node on your website can be a "source" node. This is not related to your default language. It just means, this is the first node is a translation set.
Use the node translation tab and assign new translations. It hope this helps ...
Comment #2
jose reyero commentedComment #3
yatil commentedOkay, so that was a misconception on my side…
But still I got two nodes (nid 13 and 170), both having a tnid of 13 (which I think is correct), but the nid 13, which is in German, doesn’t show the Easy Read German translation when I go to the translate screen, even the autocomplete isn’t working. It works fine on the Easy Read German page, both articles show up.
Comment #4
yatil commentedComment #5
webflo commentedDo you use EntityCache?
Comment #6
yatil commented@webflo: I actually do. Is it harmful?
Comment #7
webflo commentedYes. There is some incompatibly. see #1349566: Add tests for content translation and #1463402: Translating nodes duplicates content, not linked for more information.
Comment #8
yatil commented@webflo: Thanks, this fixes the issue.
Comment #9
yatil commentedActually it didn’t, still experiencing weird behavior :-(
Comment #10
jose reyero commentedSince node translations (nids, tnids) are handled by Drupal core's translation (not i18n), it looks to me like this belongs to entity cache. Moving there.
Comment #11
devin carlson commentedMarking this as a duplicate of the more established #1349566: Add tests for content translation.