rendered paste body/** * Invert the language name in the translation block */function Petitcodiac_i18n_link($text, $target, $lang, $separator=' '){ $output = '<span class="i18n-link">'; $attributes = ($lang == i18n_get_lang()) ? array('class' => 'active') : NULL; $output .= l(theme('i18n_language_icon', $lang), $target, $attributes, NULL, NULL, FALSE, TRUE); $output .= $separator; if ($text == 'French') { $text = "Français";} if ($text == 'Anglais') { $text = 'English';} $output .= l($text, $target, $attributes, NULL, NULL, FALSE, TRUE); $output .= '</span>'; return $output;}