From 03a3ac0ec7b36b1e2935f124c1c0adcd3b7464b6 Mon Sep 17 00:00:00 2001 From: catch <catch56@gmail.com> Date: Fri, 21 Oct 2022 21:02:32 +0100 Subject: [PATCH] Issue #3074765 by Chewie, dxvargas, Ankit.Gupta, heddn, Denes.Szabo, SpadXIII: Performance improvement for importing of project translations (cherry picked from commit e2fcbd9e765fb2b976cd10c2ce521a598194940c) --- core/modules/locale/locale.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index dc724cadaaf0..a4c9efca6fb9 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -904,7 +904,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])) { -- GitLab