function locale_language_from_interface

Identifies the language from the current interface language.

Return value

The current interface language code.

Related topics

1 string reference to 'locale_language_from_interface'
locale_language_negotiation_info in modules/locale/locale.module
Implements hook_language_negotiation_info().

File

includes/locale.inc, line 114

Code

function locale_language_from_interface() {
    global $language;
    return isset($language->language) ? $language->language : FALSE;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.