issue #2170 update picture tpl to embed pdf reader

Add default config pdf_viewer_filesize_threshold
Add function to get number of PDF pages
Add translations
update picture.php to send pdf filesize threshold and nb page to tpl
update picture.tpl to add number of pages for PDF
picture_content.tpl update for new config name and add translation functions. use embed for pdf if file ext = pdf
This commit is contained in:
HWFord 2024-06-20 11:51:55 +02:00
parent 138f23d32f
commit 983d943548
8 changed files with 63 additions and 1 deletions

View file

@ -446,4 +446,8 @@ $lang['last 3 months'] = 'Last 3 months';
$lang['last 24 hours'] = 'last 24 hours';
$lang['Album already selected'] = 'Album already selected';
$lang['Only the first %d albums are displayed, out of %d.'] = 'Only the first %d albums are displayed, out of %d.';
$lang['Pages'] = "Pages";
$lang['The PDF you requested is too large to display on this page.']= 'The PDF you requested is too large to display on this page.';
$lang['Click here to display it']= 'Click here to display it';
?>

View file

@ -451,3 +451,6 @@ $lang['last 3 months'] = '3 derniers mois';
$lang['last 24 hours'] = '24 dernières heures';
$lang['Only the first %d albums are displayed, out of %d.'] = 'Seuls les %d premiers sont affichés, sur %d.';
$lang['Album already selected'] = 'Album déjà sélectionné';
$lang['Pages'] = "Pages";
$lang['The PDF you requested is too large to display on this page.']= 'Le PDF que vous avez demandé est trop volumineux pour être affiché sur cette page.';
$lang['Click here to display it']= 'Cliquez ici pour le voir';