Adding the language switcher block in your page.tpl.php

How to add manually the language switcher block in your template?

Sometimes, it could be easier to add manually a block in your template rather than using block region.

Adding the language switcher block is very easy. Open your page.tpl.php (or another .tpl) and add the following code :

   $block = module_invoke('locale', 'block_view', 'language');
   print $block['content'];

This way, the language switcher block will display where you want.

My language block is not displaying? I cannot see it?

Have you configured correctly your Drupal? Have a look on admin/config/regional/language/configure and activate the URL checkbox!