diff --git a/config_translation.module b/config_translation.module index 593226e..ded2307 100644 --- a/config_translation.module +++ b/config_translation.module @@ -204,6 +204,9 @@ function config_translation_config_translation_group_info() { // Contact. $items[] = new ConfigEntityMapper('admin/structure/contact/manage/{contact_category}', 'contact_category', t('@label contact category')); + // Date format. + $items[] = new ConfigEntityMapper('admin/config/regional/date-time/formats/manage/{date_format}', 'date_format', t('@label date format')); + // Fields. $entity_manager = Drupal::entityManager(); foreach ($entity_manager->getDefinitions() as $entity_type => $entity_info) { diff --git a/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.php b/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.php index 588ab84..fd49af4 100644 --- a/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.php +++ b/lib/Drupal/config_translation/Tests/ConfigTranslationListUITest.php @@ -342,7 +342,7 @@ class ConfigTranslationListUITest extends WebTestBase { $edit['id'] = strtolower($edit['label']); $this->drupalPost('admin/config/media/picturemapping/add', $edit, t('Save')); - $this->assertRaw(t('Picture mapping %name saved.', array('%label' => $edit['label']))); + $this->assertRaw(t('Picture mapping %label saved.', array('%label' => $edit['label']))); // Get the picture mapping listing. $this->drupalGet('admin/config/media/picturemapping'); @@ -357,6 +357,22 @@ class ConfigTranslationListUITest extends WebTestBase { } /** + * Tests the date format listing for the translate operation. + */ + function doDateFormatListTest() { + // Get the date format listing. + $this->drupalGet('admin/config/regional/date-time'); + + $translate_link = 'admin/config/regional/date-time/formats/manage/long/translate'; + // Test if the link to translate the format is on the page. + $this->assertLinkByHref($translate_link); + + // Test if the link to translate actually goes to the translate page. + $this->drupalGet($translate_link); + $this->assertRaw('' . t('Language') . ''); + } + + /** * Tests a given settings page for the translate operation. * * @param string $link @@ -394,6 +410,8 @@ class ConfigTranslationListUITest extends WebTestBase { $this->doImageStyleListTest(); $this->doPictureListTest(); + // Views is tested in Drupal\config_translation\Tests\ConfigTranslationViewListUITest + // Test the maintenance settings page. $this->doSettingsPageTest('admin/config/development/maintenance'); // Test the site information settings page.