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.

4 calls to locale_translatable_language_list()
locale_translation_check_projects_batch in drupal/core/modules/locale/locale.compare.inc
Gets and stores the status and timestamp of remote po files.
locale_translation_check_projects_local in drupal/core/modules/locale/locale.compare.inc
Check and store the status and timestamp of local po files.
locale_translation_status in drupal/core/modules/locale/locale.pages.inc
Page callback: Display the current translation status.
_locale_invalidate_js in drupal/core/modules/locale/locale.module
Force the JavaScript translation file(s) to be refreshed.

File

drupal/core/modules/locale/locale.module, line 285
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;
}