diff --git a/core/modules/language/lib/Drupal/language/Tests/LanguageCustomLanguageConfigurationTest.php b/core/modules/language/lib/Drupal/language/Tests/LanguageCustomLanguageConfigurationTest.php index 56ffa51..9b3f1b8 100644 --- a/core/modules/language/lib/Drupal/language/Tests/LanguageCustomLanguageConfigurationTest.php +++ b/core/modules/language/lib/Drupal/language/Tests/LanguageCustomLanguageConfigurationTest.php @@ -61,7 +61,7 @@ class LanguageCustomLanguageConfigurationTest extends WebTestBase { 'direction' => LANGUAGE_LTR, ); $this->drupalPost('admin/config/regional/language/add', $edit, t('Add custom language')); - $this->assertRaw(t('%field may only contain characters a-z, underscores, or hyphens.', array('%field' => 'Language code'))); + $this->assertRaw(t('%field may only contain characters a-z, underscores, or hyphens.', array('%field' => t('Language code')))); $this->assertRaw(t('%field cannot contain any markup.', array('%field' => t('Language name')))); $this->assertEqual($this->getUrl(), url('admin/config/regional/language/add', array('absolute' => TRUE)), t('Correct page redirection.')); @@ -76,7 +76,7 @@ class LanguageCustomLanguageConfigurationTest extends WebTestBase { $this->drupalPost('admin/config/regional/language/add', $edit, t('Add custom language')); $this->assertRaw(t( 'The language %language has been created and can now be used.', - array('%language' => t($edit['name'])) + array('%language' => $edit['name']) )); $this->assertEqual($this->getUrl(), url('admin/config/regional/language', array('absolute' => TRUE)), t('Correct page redirection.'));