Commit e2fcbd9e authored by catch's avatar catch
Browse files

Issue #3074765 by Chewie, dxvargas, Ankit.Gupta, heddn, Denes.Szabo, SpadXIII:...

Issue #3074765 by Chewie, dxvargas, Ankit.Gupta, heddn, Denes.Szabo, SpadXIII: Performance improvement for importing of project translations
parent 8b08268e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -908,7 +908,7 @@ function locale_translation_get_status($projects = NULL, $langcodes = NULL) {
function locale_translation_status_save($project, $langcode, $type, $data) {
  // Load the translation status or build it if not already available.
  \Drupal::moduleHandler()->loadInclude('locale', 'inc', 'locale.translation');
  $status = locale_translation_get_status();
  $status = locale_translation_get_status([$project]);
  if (empty($status)) {
    $projects = locale_translation_get_projects([$project]);
    if (isset($projects[$project])) {