diff --git a/core/modules/system/src/Plugin/views/field/BulkForm.php b/core/modules/system/src/Plugin/views/field/BulkForm.php index 7270571..f4a2545 100644 --- a/core/modules/system/src/Plugin/views/field/BulkForm.php +++ b/core/modules/system/src/Plugin/views/field/BulkForm.php @@ -81,7 +81,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o */ protected function defineOptions() { $options = parent::defineOptions(); - $options['action_title'] = array('default' => 'With selection'); + $options['action_title'] = array('default' => $this->t('With selection')); $options['include_exclude'] = array( 'default' => 'exclude', ); diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php index 760bae3..0cf49ae 100644 --- a/core/modules/views/src/Plugin/views/PluginBase.php +++ b/core/modules/views/src/Plugin/views/PluginBase.php @@ -173,7 +173,6 @@ protected function defineOptions() { return array(); } * - (optional) contains: An array which describes the available options * under the key. If contains is set, the default will be ignored and * assumed to be an empty array. - * - (optional) 'translatable': TRUE if it should be translated, else FALSE. * - (optional) 'bool': TRUE if the value is boolean, else FALSE. */ protected function setOptionDefaults(array &$storage, array $options) { diff --git a/core/modules/views/src/Plugin/views/area/Result.php b/core/modules/views/src/Plugin/views/area/Result.php index 8dd56d7..0182c06 100644 --- a/core/modules/views/src/Plugin/views/area/Result.php +++ b/core/modules/views/src/Plugin/views/area/Result.php @@ -28,7 +28,7 @@ protected function defineOptions() { $options = parent::defineOptions(); $options['content'] = array( - 'default' => 'Displaying @start - @end of @total', + 'default' => $this->t('Displaying @start - @end of @total'), ); return $options; diff --git a/core/modules/views/src/Plugin/views/display/Block.php b/core/modules/views/src/Plugin/views/display/Block.php index 391046c..9de84ef 100644 --- a/core/modules/views/src/Plugin/views/display/Block.php +++ b/core/modules/views/src/Plugin/views/display/Block.php @@ -85,7 +85,7 @@ protected function defineOptions() { $options = parent::defineOptions(); $options['block_description'] = array('default' => ''); - $options['block_category'] = array('default' => 'Lists (Views)'); + $options['block_category'] = array('default' => $this->t('Lists (Views)')); $options['block_hide_empty'] = array('default' => FALSE); $options['allow'] = array( diff --git a/core/modules/views/src/Plugin/views/exposed_form/InputRequired.php b/core/modules/views/src/Plugin/views/exposed_form/InputRequired.php index f883a91..f6ab6bc 100644 --- a/core/modules/views/src/Plugin/views/exposed_form/InputRequired.php +++ b/core/modules/views/src/Plugin/views/exposed_form/InputRequired.php @@ -26,7 +26,7 @@ class InputRequired extends ExposedFormPluginBase { protected function defineOptions() { $options = parent::defineOptions(); - $options['text_input_required'] = array('default' => 'Select any filter and click on Apply to see results', 'translatable' => TRUE); + $options['text_input_required'] = array('default' => $this->t('Select any filter and click on Apply to see results')); $options['text_input_required_format'] = array('default' => NULL); return $options; } diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php index ce5afb0..a302062 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php +++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display_extender/DisplayExtenderTest.php @@ -33,7 +33,7 @@ class DisplayExtenderTest extends DisplayExtenderPluginBase { protected function defineOptions() { $options = parent::defineOptions(); - $options['test_extender_test_option'] = ['default' => 'Empty']; + $options['test_extender_test_option'] = ['default' => $this->t('Empty')]; return $options; }