function locale_translatable_language_list

Returns list of translatable languages.

Return value

array Array of installed languages keyed by language name. English is omitted unless it is marked as translatable.

14 calls to locale_translatable_language_list()
locale_config_batch_update_components in drupal/core/modules/locale/locale.bulk.inc
Builds a locale batch to refresh configuration.
locale_config_update_multiple in drupal/core/modules/locale/locale.bulk.inc
Updates all configuration for names / languages.
locale_requirements in drupal/core/modules/locale/locale.install
Implements hook_requirements().
locale_system_remove in drupal/core/modules/locale/locale.module
Delete translation history of modules and themes.
locale_system_update in drupal/core/modules/locale/locale.module
Imports translations when new modules or themes are installed.

... See full list

File

drupal/core/modules/locale/locale.module, line 337
Enables the translation of the user interface to languages other than English.

Code

function locale_translatable_language_list() {
  $languages = language_list();
  if (!locale_translate_english()) {
    unset($languages['en']);
  }
  return $languages;
}