Community Documentation

$language

  1. drupal
    1. 6 globals.php
    2. 7 globals.php
    3. 8 globals.php

An object containing the information for the active interface language.

It represents the language the user interface textual elements such as titles, labels or messages, are to be displayed in.

Example values:

  • 'language' => 'en',
  • 'name' => 'English',
  • 'native' => 'English',
  • 'direction' => 0,
  • 'enabled' => 1,
  • 'plurals' => 0,
  • 'formula' => '',
  • 'domain' => '',
  • 'prefix' => '',
  • 'weight' => 0,
  • 'javascript' => ''

See also

LANGUAGE_TYPE_INTERFACE

drupal_language_initialize()

File

developer/globals.php, line 108
These are the global variables that Drupal uses.

Code

<?php
global $language
?>
Login or register to post comments