]> _ Git - pmi.git/commitdiff
wait #4054
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Dec 2020 18:08:30 +0000 (19:08 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 4 Dec 2020 18:08:30 +0000 (19:08 +0100)
app/Models/Product.php

index 745bd172ac470741e99b52cb493fb6c6d04b0ab3..68714a5f03137a9cde99577eea73ccfd07319ba5 100644 (file)
@@ -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];
             }
         }