Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By bluepal on
The language switching block works well on my English and French site. On the English site, there is a a "French" (Francais) link in a block on the left menu. Clicking on the "Francais" link would switch the site to French. The i18n and localizer modules let you select the block in admin -> blocks. No problem.
But I want to put the language switching link in a custom theme somewhere else on the site, not in a block.
Where and what is the php code for language switching ?
How do I put the code of the language switching block in the page.tpl.php ?
Thanks.