function locale_translation_get_status locale_translation_get_status($projects = NULL, $langcodes = NULL) Gets the current translation status. @todo What is 'translation status'? File
 core/modules/locale/locale.module, line 882 Enables the translation of the user interface to languages other than English.  Code function locale_translation_get_status($projects = NULL, $langcodes = NULL) {
  $result = array();
  $status = \Drupal8b7c:f320:99b9:690f:4595:cd17:293a:c069state()->get('locale.translation_status');
  module_load_include('translation.inc', 'locale');
  $projects = $projects ? $projects : array_keys(locale_translation_get_projects());
  $langcodes = $langcodes ? $langcodes : array_keys(locale_translatable_language_list());

  // Get the translation status of each project-language combination. If no
  // status was stored, a new translation source is created.
  foreach ($projects as $project) {
    foreach ($langcodes as $langcode) {
      if (isset($status[$project][$langcode])) {
        $result[$project][$langcode] = $status[$project][$langcode];
      }
      else {
        $sources = locale_translation_build_sources(array($project), array($langcode));
        if (isset($sources[$project][$langcode])) {
          $result[$project][$langcode] = $sources[$project][$langcode];
        }
      }
    }
  }
  return $result;
}


    
{'path': 'public/docs/drupal~8/core-modules-locale-locale.module/function/locale_translation_get_status/8.1.x.html', 'source': 'DevDocs.IO'}