diff --git a/core/modules/system/src/Tests/System/SiteMaintenanceTest.php b/core/modules/system/src/Tests/System/SiteMaintenanceTest.php
index 48c592d..c5d0291 100644
--- a/core/modules/system/src/Tests/System/SiteMaintenanceTest.php
+++ b/core/modules/system/src/Tests/System/SiteMaintenanceTest.php
@@ -21,7 +21,7 @@ class SiteMaintenanceTest extends WebTestBase {
    *
    * @var array
    */
-  public static $modules = array('node');
+  public static $modules = array('node', 'locale');
 
   protected $admin_user;
 
@@ -34,7 +34,7 @@ protected function setUp() {
     // Create a user allowed to access site in maintenance mode.
     $this->user = $this->drupalCreateUser(array('access site in maintenance mode'));
     // Create an administrative user.
-    $this->admin_user = $this->drupalCreateUser(array('administer site configuration', 'access site in maintenance mode'));
+    $this->admin_user = $this->drupalCreateUser(array('administer site configuration', 'access site in maintenance mode', 'translate interface', 'administer languages'));
     $this->drupalLogin($this->admin_user);
   }
 
@@ -112,5 +112,25 @@ function testSiteMaintenance() {
     // Log in with temporary login link.
     $this->drupalPostForm($path, array(), t('Log in'));
     $this->assertText($user_message);
+
+    $this->drupalLogout();
+    $this->drupalLogin($this->admin_user);
+
+    $langcode = 'es';
+
+    // Add Spanish.
+    $edit = array();
+    $edit['predefined_langcode'] = $langcode;
+    $this->drupalPostForm('admin/config/regional/language/add', $edit, t('Add language'));
+
+    // Make Spanish the default language.
+    $edit = array();
+    $edit['site_default_language'] = 'es';
+    $this->drupalPostForm(NULL, $edit, t('Save configuration'));
+    
+    // Logout and verify that custom site offline message is displayed.
+    $this->drupalLogout();
+    $this->drupalGet('');
+    $this->assertRaw($offline_message, 'Found the site offline message.');
   }
 }
