diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index b2377e3..d3f44de 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -1038,7 +1038,7 @@ function locale_string_is_safe($string) { * The information that will be refreshed includes: * - JavaScript translations. * - Locale cache. - * - Rendered cache. + * - Render cache. * * @param array $langcodes * Language codes for updated translations. diff --git a/core/modules/locale/src/LocaleEvents.php b/core/modules/locale/src/LocaleEvents.php index 781b31f..d205d1d 100644 --- a/core/modules/locale/src/LocaleEvents.php +++ b/core/modules/locale/src/LocaleEvents.php @@ -15,17 +15,15 @@ final class LocaleEvents { /** - * The name of the event fired when saving the configuration override. + * The name of the event fired when saving a translated string. * - * This event allows you to perform custom actions whenever a language config - * override is saved. The event listener method receives a - * \Drupal\language\Config\LanguageConfigOverrideCrudEvent instance. + * This event allows you to perform custom actions whenever a translated string + * is saved. The event listener method receives a + * \Symfony\Component\EventDispatcher\Event instance. * * @Event * - * @see \Drupal\language\Config\LanguageConfigOverrideCrudEvent - * @see \Drupal\language\Config\LanguageConfigOverride::save() - * @see \Drupal\locale\LocaleConfigSubscriber + * @see \Drupal\locale\EventSubscriber\LocaleTranslationCacheTag */ const SAVE_TRANSLATION = 'locale.save_translation'; diff --git a/core/modules/locale/src/Tests/LocaleTranslationUiTest.php b/core/modules/locale/src/Tests/LocaleTranslationUiTest.php index 67c2e4b..7a4652e 100644 --- a/core/modules/locale/src/Tests/LocaleTranslationUiTest.php +++ b/core/modules/locale/src/Tests/LocaleTranslationUiTest.php @@ -149,10 +149,6 @@ public function testStringTranslation() { // Test invalidation of 'rendered' cache tag after string translation. $this->drupalLogout(); - $this->config('system.performance') - ->set('cache.page.use_internal', 1) - ->set('cache.page.max_age', 300) - ->save(); $this->drupalGet('xx/user/login'); $this->assertText('Enter the password that accompanies your username.');