From: Vincent Vanwaelscappel Date: Fri, 6 Mar 2020 15:08:40 +0000 (+0100) Subject: fix #3475 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=258c493b9b8b104505c9ce16acf4211003845032;p=cubist_cms-back.git fix #3475 @0:05 --- 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()