diff --git a/core/includes/language.inc b/core/includes/language.inc
index 685a4d4..1cfd35c 100644
--- a/core/includes/language.inc
+++ b/core/includes/language.inc
@@ -199,6 +199,10 @@ function language_negotiation_get_switch_links($type, $path) {
       $callback = $provider['callbacks']['switcher'];
       $result = $callback($type, $path);
 
+      foreach ($result as $langcode => $link) {
+        $result[$langcode]['attributes']['class'][] = $langcode;
+      }
+
       if (!empty($result)) {
         // Allow modules to provide translations for specific links.
         drupal_alter('language_switch_links', $result, $type, $path);
diff --git a/core/modules/locale/locale.test b/core/modules/locale/locale.test
index d6cd76a..2a70e9c 100644
--- a/core/modules/locale/locale.test
+++ b/core/modules/locale/locale.test
@@ -2283,7 +2283,7 @@ class LocaleUILanguageNegotiationTest extends DrupalWebTestCase {
     // Check that the language switcher active link matches the given browser
     // language.
     $args = array(':url' => base_path() . (!empty($GLOBALS['conf']['clean_url']) ? $langcode_browser_fallback : "?q=$langcode_browser_fallback"));
-    $fields = $this->xpath('//div[@id="block-locale-language"]//a[@class="language-link active" and @href=:url]', $args);
+    $fields = $this->xpath('//div[@id="block-locale-language"]//a[@class="language-link it active" and @href=:url]', $args);
     $this->assertTrue($fields[0] == $languages[$langcode_browser_fallback]->name, t('The browser language is the URL active language'));
 
     // Check that URLs are rewritten using the given browser language.
@@ -2466,7 +2466,7 @@ class LocaleMultilingualFieldsFunctionalTest extends DrupalWebTestCase {
     $this->assertRaw($body_value, t('Body correctly displayed using English as requested language'));
   }
 
-  /*
+  /**
    * Test multilingual field display settings.
    */
   function testMultilingualDisplaySettings() {
