Closed (fixed)
Project:
Internationalization
Version:
6.x-1.1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Nov 2009 at 02:46 UTC
Updated:
26 Nov 2009 at 04:40 UTC
Hi there,
Obviously the correct way is to create translated content is via the 'Translate' tab->'add Translation' link from the original version of the page. This way, we can track what has been translated and what has not using 'Translation Overview'.
But what happens if a few translated pages have been added via 'Create Content'->Page (for example) ?
Does anyone know of a way to find these incorrectly created pages and then link them up to the original nodes - besides obviously removing all translated content of a certain language and adding it again.
I've had a look through the database to see any column stands out, but can't see much.
Thanks for your help.
- Alex
Comments
Comment #1
brucepearson commentedThe tnid column in the node table indicates the translation relationship. The tnid is set to the source node id. So if you want to find nodes that are not translations of another node then use nid = tnid
eg. If you want to find french content that is not set as a translation of another node:
SELECT * FROM node where nid = tnid and language = 'fr'
Comment #2
alexkb commentedThank you bruce, that is a great help (not sure how I didn't see that!).
Comment #3
alexkb commentedJust an update to this, it seems the sql to find non-translated might also need to include where the tnid is set to zero? So: