diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateInterfaceTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateInterfaceTest.php
index 7564bbd..4371813 100644
--- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateInterfaceTest.php
+++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateInterfaceTest.php
@@ -10,7 +10,7 @@
use Drupal\simpletest\WebTestBase;
/**
- * Tests for the translation status user interfaces.
+ * Tests for the locale translation update status user interfaces.
*/
class LocaleUpdateInterfaceTest extends WebTestBase {
@@ -29,14 +29,10 @@ public static function getInfo() {
);
}
- /**
- * Setup the test environment.
- *
- * We use German as default test language. Due to hardcoded configurations in
- * the locale_test module, the language can not be chosen randomly.
- */
function setUp() {
parent::setUp();
+ // We use German as default test language. Due to hardcoded configurations
+ // in the locale_test module, the language can not be chosen randomly.
$admin_user = $this->drupalCreateUser(array('administer modules', 'administer site configuration', 'administer languages', 'access administration pages', 'translate interface'));
$this->drupalLogin($admin_user);
}
@@ -56,7 +52,7 @@ function testInterface() {
$this->drupalGet('admin/reports/translations');
$this->assertRaw(t('No translatable languages available. Add a language first.', array('@add_language' => url('admin/config/regional/language'))), 'Language message');
- // Add German language
+ // Add German language.
$edit = array(
'predefined_langcode' => 'de',
);
@@ -98,9 +94,9 @@ function testInterface() {
// Check if no updates were found.
$this->drupalGet('admin/reports/status');
$this->assertText(t('Translation update status'), 'Status message');
- $this->assertRaw(t('Updates not found for: @languages. See the Available translation updates page for more information.', array('@languages' => t('German'), '@updates' => url('admin/reports/translations'))), 'Updates not found message');
+ $this->assertRaw(t('Missing translations for: @languages. See the Available translation updates page for more information.', array('@languages' => t('German'), '@updates' => url('admin/reports/translations'))), 'Missing translations message');
$this->drupalGet('admin/reports/translations');
- $this->assertText(t('No updates found for 1 project'), 'No updates found');
+ $this->assertText(t('Missing translations for one project'), 'No translations found');
$this->assertText(t('@module (@version).', array('@module' => 'Locale test translate', '@version' => '1.3-dev')), 'Release details');
$this->assertText(t('No translation files are provided for development releases.'), 'Release info');
}
diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php
index 9896aa7..109185e 100644
--- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php
+++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleUpdateTest.php
@@ -2,7 +2,7 @@
/**
* @file
- * Definition of Drupal\locale\Tests\LocaleUpdateTest.
+ * Tests for Drupal\locale\Tests\LocaleUpdateTest.
*/
namespace Drupal\locale\Tests;
@@ -10,7 +10,7 @@
use Drupal\simpletest\WebTestBase;
/**
- * Tests for comparing status of existing project translations with available translations.
+ * Tests for update translations.
*/
class LocaleUpdateTest extends WebTestBase {
@@ -57,14 +57,10 @@ public static function getInfo() {
);
}
- /**
- * Setup the test environment.
- *
- * We use German as default test language. Due to hardcoded configurations in
- * the locale_test module, the language can not be chosen randomly.
- */
function setUp() {
parent::setUp();
+ // We use German as default test language. Due to hardcoded configurations
+ // in the locale_test module, the language can not be chosen randomly.
module_load_include('compare.inc', 'locale');
module_load_include('fetch.inc', 'locale');
$admin_user = $this->drupalCreateUser(array('administer modules', 'administer site configuration', 'administer languages', 'access administration pages', 'translate interface'));
@@ -803,4 +799,5 @@ function testEnableCustomLanguage() {
$this->assertText('Allowed HTML source string', t('String successfully imported.'));
$this->assertNoText('Another allowed HTML source string', t('String with disallowed translation not imported.'));
}
+
}
diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install
index ef53f5a..2fe0abd 100644
--- a/core/modules/locale/locale.install
+++ b/core/modules/locale/locale.install
@@ -319,9 +319,9 @@ function locale_requirements($phase) {
else {
$requirements['locale_translation'] = array(
'title' => 'Translation update status',
- 'value' => t('Updates not found'),
- 'severity' => REQUIREMENT_OK,
- 'description' => t('Updates not found for: @languages. See the Available translation updates page for more information.', array('@languages' => implode(', ', $updates_not_found), '@updates' => url('admin/reports/translations'))),
+ 'value' => t('Missing translations'),
+ 'severity' => REQUIREMENT_INFO,
+ 'description' => t('Missing translations for: @languages. See the Available translation updates page for more information.', array('@languages' => implode(', ', $updates_not_found), '@updates' => url('admin/reports/translations'))),
);
}
}
diff --git a/core/modules/locale/locale.pages.inc b/core/modules/locale/locale.pages.inc
index a0dad62..39c8f24 100644
--- a/core/modules/locale/locale.pages.inc
+++ b/core/modules/locale/locale.pages.inc
@@ -871,7 +871,7 @@ function theme_locale_translation_update_info($variables) {
// Build output for updates not found.
if (isset($variables['not_found'])) {
if (empty($description)) {
- $description = '' . format_plural(count($variables['not_found']), 'No updates found for 1 project', 'No updates found for @count projects') . '';
+ $description = '' . format_plural(count($variables['not_found']), 'Missing translations for one project', 'Missing translations for @count projects') . '';
}
if ($variables['not_found']) {
$releases = array();
@@ -881,7 +881,7 @@ function theme_locale_translation_update_info($variables) {
}
}
if ($details) {
- $details .= t('No updates found for:');
+ $details .= t('Missing translations for:');
}
$details .= theme('item_list', array('items' => $releases));
}