Message d'erreur

Deprecated function: Optional parameter $dropbox declared before required parameter $save_lineage is implicitly treated as a required parameter in include_once() (line 1442 of /home/dsinmetz/public_html/cookbook/includes/bootstrap.inc).

Obtenir un lien vers un node multilingue, traduit dans la langue active.

Portrait de Alex

$translations = translation_node_get_translations($nid);
if (!empty($translations)) {
global $language;
if (!empty($translations[$language-?>language])) {
return l($translations[$language->language]->title,'node/'.$translations[$language->language]->nid);
}
}
$node = node_load($nid);
return l($node->title,'node/'.$node->nid);
}
?>
Puis dans le template: