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 disi-web on
hello,
I have a multilingual site in D7.18 and I try to make a mod in the page.tpl.php template (I have no choice) : I need to set a condition on the language of the page.
My theme is derived from Zen.
for my if () condition, I need to know the name of this variable to use it as a criteria
Comments
<?phpglobal
$language_key will be the language key for the current language (eg: 'en', 'ja', 'ar' etc).