I want to add a hardcoded translation block to my page.tpl.php, to link to a translated version of every node + a translated interface.

The Language Switcher Dropdown module did the trick, but I want a horizontal set of links and need something simpler.


1 Answer 1


Maybe Displaying and configuring a drop down using Language Switcher Dropdown helps to achieve what you're trying to do with this module anyhow.

If not then the answers to the question about How to theme language translation links in Drupal? may help to actually answer your qestion. Though that question is for D6, and hence its answers might need some review to also make it work in D7. Here is the relevant part of it that might do the trick:

$node = menu_get_object();
if ($node->links) {
  print theme('links', $node->links);
  • The problem is that I do not want a drop down list. I have been trying to modify the code of the dropdown module, but I think this is innecessarily complex. Trying the print theme solution, I get: Notice: Trying to get property of non-object
    – Qaisa
    Commented Jul 1, 2015 at 16:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.