diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index 59c1469..3a602e1 100644 --- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -593,7 +593,7 @@ public function testHasTranslation(array $mock_return_values, $expected) { $map = array(); foreach ($config_names as $i => $config_name) { - $map[] = array($config_name, $language, $mock_return_values[$i]); + $map[] = array($config_name, $language->getId(), $mock_return_values[$i]); } $this->localeConfigManager ->expects($this->any()) diff --git a/core/modules/locale/src/LocaleConfigSubscriber.php b/core/modules/locale/src/LocaleConfigSubscriber.php index bd29133..b5bc2a7 100644 --- a/core/modules/locale/src/LocaleConfigSubscriber.php +++ b/core/modules/locale/src/LocaleConfigSubscriber.php @@ -181,7 +181,6 @@ protected function saveCustomizedTranslation($name, $source, $context, $translat $locale_translation = $this->localeConfigManager->getStringTranslation($name, $langcode, $source, $context); // If the translation is the same as we already have in locale, keep it // as-is, ie. don't set customized. - debug($locale_translation); if (!empty($locale_translation) && ($locale_translation->isNew() || $translation != $locale_translation->getString())) { $locale_translation ->setString($translation)