### Eclipse Workspace Patch 1.0 #P GR-TR Index: sites/all/modules/about_this_node/about_this_node.module =================================================================== --- sites/all/modules/about_this_node/about_this_node.module (revision 135) +++ sites/all/modules/about_this_node/about_this_node.module (working copy) @@ -241,6 +241,26 @@ $node_info['commenting']['value'] = t('Module not enabled'); } + // check translation status + $node_info['translation']['label'] = t("Translation status:"); + $translations = array(); + + if($node->tnid == 0) { + $node_info['translation']['value'] = t("Untranslated"); + } else { + $source = $node->tnid != $node->nid ? $node->tnid : $node->nid; + $translationStatus = db_query('SELECT n.nid, n.tnid, n.title, l.name FROM {node} as n, {languages} as l where n.language = l.language and tnid = %d', $source); + + while($row = db_fetch_object($translationStatus)){ + if ($row->nid == $row->tnid) { + $translations[] = "[" . $row->name . "]: " . l($row->title, "node/" . $row->nid); + } else { + $translations[] = $row->name . ": " . l($row->title, "node/" . $row->nid ); + } + } + $node_info['translation']['value'] = implode("
", $translations); + } + return $node_info; }