function language_is_locked

Checks if a language is locked.

Parameters

string $langcode: The language code.

Return value

bool Returns whether the language is locked.

3 calls to language_is_locked()
TranslationTest::testFieldDisplayLanguage in drupal/core/modules/field/lib/Drupal/field/Tests/TranslationTest.php
Tests display language logic for translatable fields.
translation_entity_language_configuration_element_validate in drupal/core/modules/translation_entity/translation_entity.module
Form validation handler for element added with translation_entity_language_configuration_element_process().
translation_node_type_language_translation_enabled_validate in drupal/core/modules/translation/translation.module
Checks if translation can be enabled.

File

drupal/core/includes/bootstrap.inc, line 2869
Functions that need to be loaded on every Drupal request.

Code

function language_is_locked($langcode) {
  $language = language_load($langcode);
  return $language ? $language->locked : FALSE;
}