1.20.x bootstrap.inc language_multilingual()

Returns TRUE if there is more than one language enabled.

Return value

TRUE if more than one language is enabled.:

File

includes/bootstrap.inc, line 3767
Functions that need to be loaded on every Backdrop request.

Code

function language_multilingual() {
  // The "language_count" variable stores the number of enabled languages to
  // avoid unnecessarily loading the language config on monolingual sites.
  try {
    $multilingual = config_get('system.core', 'language_count') > 1;
  }
  catch (ConfigException $e) {
    $multilingual = FALSE;
  }
  return $multilingual;
}