From: Vincent Vanwaelscappel Date: Fri, 4 Dec 2020 18:08:30 +0000 (+0100) Subject: wait #4054 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ff074449f215d49ec07a4e757403b0ab7c2ab2d9;p=pmi.git wait #4054 --- diff --git a/app/Models/Product.php b/app/Models/Product.php index 745bd17..68714a5 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -252,6 +252,13 @@ class Product extends CubistMagicPageModel public function getDocuments() { + /* + * __('Dimensions') + * __('Fiche technique') + * __('CAO') + * __('Programme') + * __('Documentation') + */ $typedocs = ['odt', 'doc', 'docx', 'pdf']; $res = []; foreach ($this->_documents as $fieldName => $label) { @@ -259,7 +266,7 @@ class Product extends CubistMagicPageModel /** @var $media Media */ $e = explode('/', $media->getUrl()); $fname = array_pop($e); - $res[] = ['media' => $media, 'label' => $media->getCustomProperty('alt') ?: $fname, 'tooltip' => $label, 'type' => $fieldName]; + $res[] = ['media' => $media, 'label' => $media->getCustomProperty('alt') ?: $fname, 'tooltip' => __($label), 'type' => $fieldName]; } }