commit e63e18594292a22cb7d75e8da799391f734ec13e Author: Joel Pittet Date: Fri Aug 28 14:34:21 2015 -0700 smaller changes diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php index 8852223..7107436 100644 --- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php +++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php @@ -33,9 +33,8 @@ class BooleanItem extends FieldItemBase implements OptionsProviderInterface { */ public static function defaultFieldSettings() { return array( - // @todo fix this if needed - 'on_label' => 'On', - 'off_label' => 'Off', + 'on_label' => t('On'), + 'off_label' => t('Off'), ) + parent::defaultFieldSettings(); } diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 20ba4a3..614a7ff 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -299,7 +299,7 @@ function comment_form_field_ui_field_storage_add_form_alter(&$form, FormStateInt } if (!_comment_entity_uses_integer_id($form_state->get('entity_type_id'))) { // You cannot use comment fields on entity types with non-integer IDs. - unset($form['add']['new_storage_type']['#options'][t('General')]['comment']); + unset($form['add']['new_storage_type']['#options'][(string) t('General')]['comment']); } } diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index f9ae57a..0624fc5 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -1728,8 +1728,8 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { $options = array(); $count = 0; // This lets us prepare the key as we want it printed. foreach ($this->view->display_handler->getHandlers('argument') as $handler) { - $options[t('Arguments')]['%' . ++$count] = $this->t('@argument title', array('@argument' => $handler->adminLabel())); - $options[t('Arguments')]['!' . $count] = $this->t('@argument input', array('@argument' => $handler->adminLabel())); + $options[(string) t('Arguments')]['%' . ++$count] = $this->t('@argument title', array('@argument' => $handler->adminLabel())); + $options[(string) t('Arguments')]['!' . $count] = $this->t('@argument input', array('@argument' => $handler->adminLabel())); } // Default text.