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

Jaypan’s picture

global $language;

$language_key = $language->language;

$language_key will be the language key for the current language (eg: 'en', 'ja', 'ar' etc).


The Drupal organization has shut down discussion on improvement of the forums: https://www.drupal.org/node/2536122

It's time to start a new forum somewhere else. The Drupal organization does not care about the forums.