From ff074449f215d49ec07a4e757403b0ab7c2ab2d9 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 4 Dec 2020 19:08:30 +0100 Subject: [PATCH] wait #4054 --- app/Models/Product.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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]; } } -- 2.39.5