From f86f399132d14b8d92d8a0cf85aac428400135b9 Mon Sep 17 00:00:00 2001 From: xjm Date: Thu, 23 Jun 2016 16:52:53 +0200 Subject: [PATCH] Issue #2749261 by mohit_aghera, ifrik: "Add view" instead of "Add new view" --- core/modules/views/src/Tests/Wizard/BasicTest.php | 2 +- core/modules/views_ui/src/Tests/ViewsListTest.php | 2 +- core/modules/views_ui/views_ui.links.action.yml | 2 +- core/modules/views_ui/views_ui.module | 2 +- core/modules/views_ui/views_ui.routing.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/modules/views/src/Tests/Wizard/BasicTest.php b/core/modules/views/src/Tests/Wizard/BasicTest.php index aa4fc34f1c50..a8eedf2cbcdc 100644 --- a/core/modules/views/src/Tests/Wizard/BasicTest.php +++ b/core/modules/views/src/Tests/Wizard/BasicTest.php @@ -26,7 +26,7 @@ class BasicTest extends WizardTestBase { // Check if we can access the main views admin page. $this->drupalGet('admin/structure/views'); - $this->assertText(t('Add new view')); + $this->assertText(t('Add view')); // Create a simple and not at all useful view. $view1 = array(); diff --git a/core/modules/views_ui/src/Tests/ViewsListTest.php b/core/modules/views_ui/src/Tests/ViewsListTest.php index eb456e3f90ff..768e449d5c56 100644 --- a/core/modules/views_ui/src/Tests/ViewsListTest.php +++ b/core/modules/views_ui/src/Tests/ViewsListTest.php @@ -46,7 +46,7 @@ class ViewsListTest extends WebTestBase { // Check if we can access the main views admin page. $this->drupalGet('admin/structure/views'); $this->assertResponse(200); - $this->assertLink(t('Add new view')); + $this->assertLink(t('Add view')); // Count default views to be subtracted from the limit. $views = count(Views::getEnabledViews()); diff --git a/core/modules/views_ui/views_ui.links.action.yml b/core/modules/views_ui/views_ui.links.action.yml index 6a3c93619eae..6960dfe4e80f 100644 --- a/core/modules/views_ui/views_ui.links.action.yml +++ b/core/modules/views_ui/views_ui.links.action.yml @@ -1,5 +1,5 @@ views_add_local_action: route_name: views_ui.add - title: 'Add new view' + title: 'Add view' appears_on: - entity.view.collection diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module index 5240aa768a4d..497636809baa 100644 --- a/core/modules/views_ui/views_ui.module +++ b/core/modules/views_ui/views_ui.module @@ -23,7 +23,7 @@ function views_ui_help($route_name, RouteMatchInterface $route_match) { $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('Creating and managing views') . '
'; - $output .= '
' . t('Views can be created from the Views list page by using the "Add new view" action. Existing views can be managed from the Views list page by locating the view in the "Enabled" or "Disabled" list and selecting the desired operation action, for example "Edit".', array(':list' => \Drupal::url('entity.view.collection', array('name' => 'views_ui')))) . '
'; + $output .= '
' . t('Views can be created from the Views list page by using the "Add view" action. Existing views can be managed from the Views list page by locating the view in the "Enabled" or "Disabled" list and selecting the desired operation action, for example "Edit".', array(':list' => \Drupal::url('entity.view.collection', array('name' => 'views_ui')))) . '
'; $output .= '
' . t('Enabling and disabling views') . '
'; $output .= '
' . t('Views can be enabled or disabled from the Views list page. To enable a view, find the view within the "Disabled" list and select the "Enable" operation. To disable a view find the view within the "Enabled" list and select the "Disable" operation.', array(':list' => \Drupal::url('entity.view.collection', array('name' => 'views_ui')))) . '
'; $output .= '
' . t('Exporting and importing views') . '
'; diff --git a/core/modules/views_ui/views_ui.routing.yml b/core/modules/views_ui/views_ui.routing.yml index 65c7bd0126b2..03360b06bd57 100644 --- a/core/modules/views_ui/views_ui.routing.yml +++ b/core/modules/views_ui/views_ui.routing.yml @@ -10,7 +10,7 @@ views_ui.add: path: '/admin/structure/views/add' defaults: _entity_form: 'view.add' - _title: 'Add new view' + _title: 'Add view' requirements: _entity_create_access: view