public function getDocuments()
{
+ /*
+ * __('Dimensions')
+ * __('Fiche technique')
+ * __('CAO')
+ * __('Programme')
+ * __('Documentation')
+ */
$typedocs = ['odt', 'doc', 'docx', 'pdf'];
$res = [];
foreach ($this->_documents as $fieldName => $label) {
/** @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];
}
}