English translation as drupal message I am trying to add the English title as a drupal_set_message on all node pages if available - (Ive done something similar on the CMS) and if the user has node edit permissions (this can be checked using the node_access function).

Code for cms example mentioned. Inside a hook form alter. 

// Translation display on CMS page
$nid = (isset($form['nid']['#value'])) ? $form['nid']['#value'] : false;
if($nid) {
    $node = node_load($nid);

    if($node) {
        $lang = 'en';
        $translations = translation_node_get_translations($node-&gt;tnid);

        $translated_node = (isset($translations[$lang])) ? node_load($translations[$lang]-&gt;nid) : $node;
        $translated_title = '&lt;h3&gt;English Translation: ' . $translated_node-&gt;title . '&lt;/h3&gt;';
    }
}

$form['#prefix'] = (isset($translated_title) &amp;&amp; $translated_node-&gt;title != $node-&gt;title) ? $translated_title : '';


I am now wanting something similar but as a drupal_set_message on all node pages.
&lt;?php
$node = menu_get_object();

if(node_access('update', $node)) :
    $lang = 'en';
    $translations = translation_node_get_translations($node-&gt;tnid);
    $translated_node = (isset($translations[$lang])) ? node_load($translations[$lang]-&gt;nid) : $node;
    if(is_object($translated_node)) :
?&gt;
    &lt;div class="title-container"&gt;
        &lt;div class="container"&gt;
            &lt;h3&gt;English title: &lt;b&gt;&lt;?php print $translated_node-&gt;title; ?&gt;&lt;/b&gt;&lt;/h3&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;


Directly in tpl file.