diff --git a/core/modules/config_translation/src/Tests/ConfigTranslationCacheTest.php b/core/modules/config_translation/src/Tests/ConfigTranslationCacheTest.php index 9c8765732b..0a3380e221 100644 --- a/core/modules/config_translation/src/Tests/ConfigTranslationCacheTest.php +++ b/core/modules/config_translation/src/Tests/ConfigTranslationCacheTest.php @@ -163,7 +163,7 @@ public function testFieldConfigTranslation() { $this->drupalPostForm(NULL, $edit, 'Save translation'); $this->drupalLogout(); - // Check if the translated label appear. + // Check if the translated label appears. $this->drupalLogin($this->adminUser); $this->drupalGet("/fr/entity_test/structure/$bundle/fields"); $this->assertEscaped($field_label_fr); @@ -171,13 +171,13 @@ public function testFieldConfigTranslation() { // Clear cache on French version and check for translated label. $this->drupalPostForm('/fr/admin/config/development/performance', array(), 'Clear all caches'); $this->drupalGet("/fr/entity_test/structure/$bundle/fields"); - // Check if the translation still there. + // Check if the translation is still there. $this->assertEscaped($field_label_fr); // Clear cache on default version and check for translated label. $this->drupalPostForm('/admin/config/development/performance', array(), 'Clear all caches'); $this->drupalGet("/fr/entity_test/structure/$bundle/fields"); - // Check if the translation still there. + // Check if the translation is still there. $this->assertEscaped($field_label_fr); } diff --git a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php index a49cb881ca..c7b41a858d 100644 --- a/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php +++ b/core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php @@ -84,7 +84,7 @@ public function onContainerInitializeFinished() { } /** - * Sets the language for config overrides on the language manager. + * Sets the language for config overrides on the language manager. */ private function setLanguageOverrides() { $this->negotiator->setCurrentUser($this->currentUser); @@ -92,8 +92,8 @@ private function setLanguageOverrides() { $this->languageManager->setNegotiator($this->negotiator); $this->languageManager->setConfigOverrideLanguage($this->languageManager->getCurrentLanguage()); } - // After the language manager has initialized, set the default langcode - // for the string translations. + // After the language manager has initialized, set the default langcode for + // the string translations. $langcode = $this->languageManager->getCurrentLanguage()->getId(); $this->translation->setDefaultLangcode($langcode); }