From 050ce49fecbe84db6b3526620378cb09ffdbc05a Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Thu, 31 Jul 2014 11:50:21 +0100
Subject: [PATCH] Issue #2312671 by olli: Fixed Typo langauge.

---
 core/includes/install.core.inc                              | 2 +-
 core/modules/locale/src/Tests/LocaleUpdateTest.php          | 2 +-
 .../menu_link_content/src/Plugin/Menu/MenuLinkContent.php   | 6 +++---
 .../system/src/Tests/Entity/EntityTranslationTest.php       | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 121badc1a7a8..c075ce4a3bd2 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -1175,7 +1175,7 @@ function install_select_language(&$install_state) {
   // If a valid language code is set, continue with the next installation step.
   // When translations from the localization server are used, any language code
   // is accepted because the standard language list is kept in sync with the
-  // langauges available at http://localize.drupal.org.
+  // languages available at http://localize.drupal.org.
   // When files from the translation directory are used, we only accept
   // languages for which a file is available.
   if (!empty($install_state['parameters']['langcode'])) {
diff --git a/core/modules/locale/src/Tests/LocaleUpdateTest.php b/core/modules/locale/src/Tests/LocaleUpdateTest.php
index ca9c2308a04d..a2e5a5aaac18 100644
--- a/core/modules/locale/src/Tests/LocaleUpdateTest.php
+++ b/core/modules/locale/src/Tests/LocaleUpdateTest.php
@@ -392,7 +392,7 @@ public function testEnableLanguage() {
   }
 
   /**
-   * Tests automatic translation import when a custom langauge is added.
+   * Tests automatic translation import when a custom language is added.
    */
   public function testEnableCustomLanguage() {
     // Make the hidden test modules look like a normal custom module.
diff --git a/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php
index a55dc9b168c2..031891616062 100644
--- a/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php
+++ b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php
@@ -92,7 +92,7 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
     }
 
     $this->entityManager = $entity_manager;
-    $this->langaugeManager = $language_manager;
+    $this->languageManager = $language_manager;
   }
 
   /**
@@ -157,7 +157,7 @@ public function getTitle() {
     // We only need to get the title from the actual entity if it may be a
     // translation based on the current language context. This can only happen
     // if the site is configured to be multilingual.
-    if ($this->langaugeManager->isMultilingual()) {
+    if ($this->languageManager->isMultilingual()) {
       return $this->getEntity()->getTitle();
     }
     return $this->pluginDefinition['title'];
@@ -170,7 +170,7 @@ public function getDescription() {
     // We only need to get the description from the actual entity if it may be a
     // translation based on the current language context. This can only happen
     // if the site is configured to be multilingual.
-    if ($this->langaugeManager->isMultilingual()) {
+    if ($this->languageManager->isMultilingual()) {
       return $this->getEntity()->getDescription();
     }
     return $this->pluginDefinition['description'];
diff --git a/core/modules/system/src/Tests/Entity/EntityTranslationTest.php b/core/modules/system/src/Tests/Entity/EntityTranslationTest.php
index 51117b41f55e..eb711d5a8be5 100644
--- a/core/modules/system/src/Tests/Entity/EntityTranslationTest.php
+++ b/core/modules/system/src/Tests/Entity/EntityTranslationTest.php
@@ -500,7 +500,7 @@ function testLanguageFallback() {
     $this->assertEqual($build['label']['#markup'], $values[$current_langcode]['name'], 'By default the entity is rendered in the current language.');
 
     $langcodes = array_combine($this->langcodes, $this->langcodes);
-    // We have no translation for the $langcode2 langauge, hence the expected
+    // We have no translation for the $langcode2 language, hence the expected
     // result is the topmost existing translation, that is $langcode.
     $langcodes[$langcode2] = $langcode;
     foreach ($langcodes as $desired => $expected) {
-- 
GitLab