1.20.x locale.module _locale_get_config_translatables($config)

Get translatable config strings.

Parameters

$config: Configuration object.

File

modules/locale/locale.module, line 1074
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 ($config->get('_config_translatables') !== NULL) {
    foreach ($config->get('_config_translatables') as $translatable) {
      $translation = locale($config->get($translatable), 'config:' . $config->get('_config_name') . ':' . $translatable);
    }
  }
}