diff --git a/core/modules/views/config/schema/views.area.schema.yml b/core/modules/views/config/schema/views.area.schema.yml index d1396c7fd3..48f628d44e 100644 --- a/core/modules/views/config/schema/views.area.schema.yml +++ b/core/modules/views/config/schema/views.area.schema.yml @@ -50,6 +50,9 @@ views.area.result: content: type: text label: 'The shown text of the result summary area' + format_plural_plural: + type: text + label: 'Text to use for the plural form' views.area.title: type: views_area diff --git a/core/modules/views/src/Plugin/views/area/Result.php b/core/modules/views/src/Plugin/views/area/Result.php index b9aaf5e33c..fa61193eca 100644 --- a/core/modules/views/src/Plugin/views/area/Result.php +++ b/core/modules/views/src/Plugin/views/area/Result.php @@ -27,10 +27,7 @@ protected function defineOptions() { ]; $options['format_plural'] = ['default' => FALSE, 'bool' => TRUE]; $options['format_plural_count'] = ['default' => '@total']; - $options['format_plural_plural'] = [ - 'default' => '', - 'translatable' => TRUE, - ]; + $options['format_plural_plural'] = ['default' => '']; return $options; } @@ -158,7 +155,8 @@ public function render($empty = FALSE) { $replacements['@current_page'] = $current_page; $replacements['@current_record_count'] = $current_record_count; $replacements['@page_count'] = $page_count; - // If the format_plural is checked, special handling will be used for plurality. + // If the format_plural is checked, special handling will be used for + // plurality. if (!empty($this->options['format_plural']) && $replacements[$this->options['format_plural_count']] > 1) { $format = $this->options['format_plural_plural']; }