]> _ Git - fluidbook-toolbox.git/commitdiff
wait #7210 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 25 Nov 2024 18:41:01 +0000 (19:41 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 25 Nov 2024 18:41:01 +0000 (19:41 +0100)
app/Http/Controllers/Admin/Operations/FluidbookPublication/EditOperation.php
app/Models/Traits/PublicationSettings.php

index 828b6b5e42d6c8c7c58ba2f26aaca6d1b5cedde3..d24985261ef4f64fd0a04b7e02ae516d3a790be2 100644 (file)
@@ -48,7 +48,7 @@ trait EditOperation
             $sheet->setCellValue('A' . $page + 1, $page);
             $sheet->setCellValue('B' . $page + 1, $c);
             $sheet->getStyle('B' . $page + 1)->getAlignment()->setWrapText(true)->setVertical(Alignment::VERTICAL_TOP);
-            $sheet->getRowDimension($page + 1)->setRowHeight(ceil(mb_strlen($c) / 5)+ mb_substr_count($c, "\n"));
+            $sheet->getRowDimension($page + 1)->setRowHeight(ceil(mb_strlen($c) / 5) + mb_substr_count($c, "\n"));
             $sheet->getStyle('A' . $page + 1)->getAlignment()->setVertical(Alignment::VERTICAL_TOP);
         }
 
@@ -56,7 +56,7 @@ trait EditOperation
         $tmp = Files::tempnam() . '.xlsx';
 
         IOFactory::createWriter($xlsx, IOFactory::WRITER_XLSX)->save($tmp);
-        return response()->download($tmp)->deleteFileAfterSend(true);
+        return response()->download($tmp, 'audiodescription_' . $fluidbook_id . '.xlsx')->deleteFileAfterSend(true);
     }
 
     protected function changeProjectManager($fluidbook_id, $user)
index 0570a5eef1466708fc7cda06432d96a1b9cabcb5..cba6137c8fd3d38055c70b9d9b01a4a996a25159 100644 (file)
@@ -1288,7 +1288,7 @@ trait PublicationSettings
         $this->addSettingField('section_accessibility', FormBigSection::class, $this->__('Accessibilité'));
         $this->addSettingField('audiodescriptionTexts', FilesOrURL::class, $this->__('Contenus textuels pour l\'audiodescription ou les lecteurs d\'écran'), [
             'accept' => self::$acceptXLSX,
-            'hint' => '<a href="/fluidbook-publication/$id/pdftextsforaudiodescription">' . __('Télécharger les contenus du PDF') . '</a>',
+            'hint' => '<a href="/fluidbook-publication/$id/pdftextsforaudiodescription">' . __('Télécharger les contenus extraits du PDF au format audiodescription') . '</a>',
         ]);
         $this->addSettingField('audiodescriptionVoice', FluidbookTTSVoice::class, $this->__('Voix pour l\'audiodescription'));