From 0e2962cb2f34e4a7e30e85f0f164e71bd293cbe0 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 5 May 2016 14:30:54 +0100 Subject: [PATCH] Issue #2489382 by Bojhan, yoroy: Reduce duplication from label to description in pager options --- core/modules/views/src/Plugin/views/display/Page.php | 2 +- core/modules/views/src/Plugin/views/pager/SqlBase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/views/src/Plugin/views/display/Page.php b/core/modules/views/src/Plugin/views/display/Page.php index dd7c17b7954..a0466982284 100644 --- a/core/modules/views/src/Plugin/views/display/Page.php +++ b/core/modules/views/src/Plugin/views/display/Page.php @@ -519,7 +519,7 @@ class Page extends PathPluginBase { public function getPagerText() { return array( 'items per page title' => $this->t('Items per page'), - 'items per page description' => $this->t('The number of items to display per page. Enter 0 for no limit.') + 'items per page description' => $this->t('Enter 0 for no limit.') ); } diff --git a/core/modules/views/src/Plugin/views/pager/SqlBase.php b/core/modules/views/src/Plugin/views/pager/SqlBase.php index 0c8a546e20c..0154762c07c 100644 --- a/core/modules/views/src/Plugin/views/pager/SqlBase.php +++ b/core/modules/views/src/Plugin/views/pager/SqlBase.php @@ -68,7 +68,7 @@ abstract class SqlBase extends PagerPluginBase implements CacheableDependencyInt $form['total_pages'] = array( '#type' => 'number', '#title' => $this->t('Number of pages'), - '#description' => $this->t('The total number of pages. Leave empty to show all pages.'), + '#description' => $this->t('Leave empty to show all pages.'), '#default_value' => $this->options['total_pages'], );