locale_schema

locale_schema() Implements hook_schema(). File core/modules/locale/locale.install, line 53 Install, update, and uninstall functions for the Locale module. Code function locale_schema() { $schema['locales_source'] = array( 'description' => 'List of English source strings.', 'fields' => array( 'lid' => array( 'type' => 'serial', 'not null' => TRUE, 'description' => 'Unique identifier of this string.', ), 'source' => array(

locale_requirements

locale_requirements($phase) Implements hook_requirements(). File core/modules/locale/locale.install, line 237 Install, update, and uninstall functions for the Locale module. Code function locale_requirements($phase) { $requirements = array(); if ($phase == 'runtime') { $available_updates = array(); $untranslated = array(); $languages = locale_translatable_language_list(); if ($languages) { // Determine the status of the translation updates per language. $statu

locale_preprocess_node

locale_preprocess_node(&$variables) Implements hook_preprocess_HOOK() for node templates. File core/modules/locale/locale.module, line 789 Enables the translation of the user interface to languages other than English. Code function locale_preprocess_node(&$variables) { /* @var $node \Drupal\node\NodeInterface */ $node = $variables['node']; if ($node->language()->getId() != LanguageInterface::LANGCODE_NOT_SPECIFIED) { $interface_language = \Drupal::languageManager()->

LOCALE_PLURAL_DELIMITER

The delimiter used to split plural strings. Deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0. Use \Drupal\Core\StringTranslation\PluralTranslatableMarkup::DELIMITER instead. File core/includes/common.inc, line 133 Common functions that many Drupal modules will need to reference. Code const LOCALE_PLURAL_DELIMITER = PluralTranslatableMarkup::DELIMITER;

LOCALE_NOT_CUSTOMIZED

Flag for locally not customized interface translation. Such translations are imported from .po files downloaded from localize.drupal.org for example. File core/modules/locale/locale.module, line 69 Enables the translation of the user interface to languages other than English. Code const LOCALE_NOT_CUSTOMIZED = 0;

locale_module_preuninstall

locale_module_preuninstall($module) Implements hook_module_preuninstall(). File core/modules/locale/locale.module, line 325 Enables the translation of the user interface to languages other than English. Code function locale_module_preuninstall($module) { $components['module'] = array($module); locale_system_remove($components); }

locale_modules_installed

locale_modules_installed($modules) Implements hook_modules_installed(). File core/modules/locale/locale.module, line 315 Enables the translation of the user interface to languages other than English. Code function locale_modules_installed($modules) { locale_system_set_config_langcodes(); $components['module'] = $modules; locale_system_update($components); }

locale_library_info_alter

locale_library_info_alter(array &$libraries, $module) Implements hook_library_info_alter(). Provides the language support for the jQuery UI Date Picker. File core/modules/locale/locale.module, line 588 Enables the translation of the user interface to languages other than English. Code function locale_library_info_alter(array &$libraries, $module) { if ($module === 'core' && isset($libraries['jquery.ui.datepicker'])) { $libraries['jquery.ui.datepicker']['dependencies'][]

locale_js_translate

locale_js_translate(array $files = array()) Returns a list of translation files given a list of JavaScript files. This function checks all JavaScript files passed and invokes parsing if they have not yet been parsed for Drupal.t() and Drupal.formatPlural() calls. Also refreshes the JavaScript translation files if necessary, and returns the filepath to the translation file (if any). Parameters array $files: An array of local file paths. Return value string|null The filepath to the translation

LOCALE_JS_STRING

Regular expression pattern used to localize JavaScript strings. File core/modules/locale/locale.module, line 31 Enables the translation of the user interface to languages other than English. Code const LOCALE_JS_STRING = '(?:(?:\'(?:\\\\\'|[^\'])*\'|"(?:\\\\"|[^"])*")(?:\s*\+\s*)?)+';