1 locale.module _locale_get_config_translatables($config)

Get translatable config strings.

Parameters

Config $config: Configuration object.

File

core/modules/locale/locale.module, line 1073
Add language handling functionality and enables the translation of the user interface to languages other than English.

Code

function _locale_get_config_translatables($config) {
  if (!db_table_exists('semaphore')) {
    // Without the semaphore table calling locale() would cause a PDOException
    // when trying to acquire a lock.
    return;
  }
  if ($config->get('_config_translatables') !== NULL) {
    foreach ($config->get('_config_translatables') as $translatable) {
      $translation = locale($config->get($translatable), 'config:' . $config->get('_config_name') . ':' . $translatable);
    }
  }
}