From 258c493b9b8b104505c9ce16acf4211003845032 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 6 Mar 2020 16:08:40 +0100 Subject: [PATCH] fix #3475 @0:05 --- src/app/Magic/Fields/BunchOfFieldsMultiple.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/Magic/Fields/BunchOfFieldsMultiple.php b/src/app/Magic/Fields/BunchOfFieldsMultiple.php index dc40893..181bfbd 100644 --- a/src/app/Magic/Fields/BunchOfFieldsMultiple.php +++ b/src/app/Magic/Fields/BunchOfFieldsMultiple.php @@ -15,7 +15,7 @@ class BunchOfFieldsMultiple extends BunchOfFields public function getDefaultAttributes() { - return array_merge(parent::getDefaultAttributes(), ['bunch' => [], "add_label" => 'Ajouter un élément']); + return array_merge(parent::getDefaultAttributes(), ['bunch' => [], "add_label" => __('Add an item')]); } public function _postSetAttributes() @@ -23,13 +23,13 @@ class BunchOfFieldsMultiple extends BunchOfFields parent::_postSetAttributes(); $this->_setBunchOfFields(); - $first=''; + $first = ''; foreach ($this->_fields as $field) { $first = $field->getAttribute('name'); break; } - $this->setAttributeIfNotSet('edit_label', 'Éditer « %' . $first . ' »'); + $this->setAttributeIfNotSet('edit_label', sprintf(__('Edit « %%%s »'), $first)); } protected function _setBunchOfFields() -- 2.39.5