1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-21 15:16:37 +02:00

Add easier translation syntax (#48)

This commit is contained in:
tale-fau 2023-09-11 19:25:05 +02:00
parent 48b6dc4e0a
commit 6d91f77c51
7 changed files with 721 additions and 536 deletions

View file

@ -34,6 +34,7 @@ if($f3->get('DISABLE_ORGANIZATION')) {
$f3->set('disableOrganization', $f3->get('DISABLE_ORGANIZATION'));
}
setlocale(LC_ALL, 'fr');
bindtextdomain('application', $f3->get('ROOT')."/locale/");
textdomain('application');

View file

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-08 14:30+0200\n"
"POT-Creation-Date: 2023-09-11 19:01+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,206 +17,46 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: templates/metadata.html.php:13
msgid "Editing PDF metadata"
msgstr ""
#: templates/metadata.html.php:18 templates/organization.html.php:18
#: templates/signature.html.php:16
#: templates/signature.html.php:16 templates/organization.html.php:18
#: templates/metadata.html.php:18
msgid "Site not functional without JavaScript enabled"
msgstr ""
#: templates/metadata.html.php:24 templates/organization.html.php:24
#: templates/signature.html.php:23
msgid "Sign"
#: templates/signature.html.php:23 templates/organization.html.php:24
#: templates/metadata.html.php:24
#, php-format
msgid "%s Sign"
msgstr ""
#: templates/metadata.html.php:27 templates/organization.html.php:27
#: templates/signature.html.php:26
msgid "Organize"
#: templates/signature.html.php:26 templates/organization.html.php:27
#: templates/metadata.html.php:27
#, php-format
msgid "%s Organize"
msgstr ""
#: templates/metadata.html.php:30 templates/organization.html.php:30
#: templates/signature.html.php:29
msgid "Metadata"
msgstr ""
#: templates/metadata.html.php:34
msgid "Language"
msgstr ""
#: templates/metadata.html.php:44 templates/metadata.html.php:86
msgid "Edit metadata"
msgstr ""
#: templates/metadata.html.php:45
msgid "Add, edit, or remove metadata from a PDF"
msgstr ""
#: templates/metadata.html.php:48 templates/metadata.html.php:49
#: templates/organization.html.php:38 templates/organization.html.php:39
#: templates/signature.html.php:39
msgid "Choose a PDF"
msgstr ""
#: templates/metadata.html.php:52 templates/organization.html.php:42
#: templates/signature.html.php:42
msgid "Test with a demo PDF"
msgstr ""
#: templates/metadata.html.php:58 templates/organization.html.php:48
#: templates/signature.html.php:48
msgid "Free open-source software"
msgstr ""
#: templates/metadata.html.php:58 templates/organization.html.php:48
#: templates/signature.html.php:48
msgid "under AGPL-3.0 license"
msgstr ""
#: templates/metadata.html.php:58 templates/organization.html.php:48
#: templates/signature.html.php:48
msgid "see the source code"
msgstr ""
#: templates/metadata.html.php:65
msgid "List of PDF metadata"
msgstr ""
#: templates/metadata.html.php:71
msgid "Add new metadata"
msgstr ""
#: templates/metadata.html.php:74
msgid "Key"
msgstr ""
#: templates/metadata.html.php:76
msgid "Value"
msgstr ""
#: templates/metadata.html.php:78
msgid "Add"
msgstr ""
#: templates/metadata.html.php:84
msgid "Close this PDF and return to the home page"
msgstr ""
#: templates/metadata.html.php:96
msgid "Save and download the PDF"
msgstr ""
#: templates/metadata.html.php:102 templates/signature.html.php:122
#: templates/signature.html.php:257
msgid "Download the PDF"
msgstr ""
#: templates/organization.html.php:13 templates/organization.html.php:34
msgid "Organize PDF"
msgstr ""
#: templates/organization.html.php:35
msgid "Merge, sort, rotate, delete, extract pages"
msgstr ""
#: templates/organization.html.php:38
msgid "The PDF must not exceed "
msgstr ""
#: templates/organization.html.php:38
msgid "Mb"
msgstr ""
#: templates/organization.html.php:40
msgid ""
"The PDF will be processed by the server without being retained or stored"
msgstr ""
#: templates/organization.html.php:53
msgid "Touch a page to select it"
msgstr ""
#: templates/organization.html.php:64
msgid "Close this PDF and return to home"
msgstr ""
#: templates/organization.html.php:66
msgid "PDF organization"
msgstr ""
#: templates/organization.html.php:66 templates/signature.html.php:69
msgid "This PDF is stored on your computer to be signed by you only"
msgstr ""
#: templates/organization.html.php:75 templates/organization.html.php:107
msgid "Add a PDF"
msgstr ""
#: templates/organization.html.php:80 templates/organization.html.php:111
msgid "No"
msgstr ""
#: templates/organization.html.php:80
msgid "page selected"
msgstr ""
#: templates/organization.html.php:82
msgid "Rotate 90°"
msgstr ""
#: templates/organization.html.php:83 templates/organization.html.php:114
msgid "Move"
msgstr ""
#: templates/organization.html.php:84 templates/organization.html.php:115
msgid "Delete"
msgstr ""
#: templates/organization.html.php:85
msgid "Extract and download"
msgstr ""
#: templates/organization.html.php:87
msgid "Cancel selection"
msgstr ""
#: templates/organization.html.php:95 templates/organization.html.php:121
msgid "Download the full PDF"
msgstr ""
#: templates/organization.html.php:111
msgid "page"
msgstr ""
#: templates/organization.html.php:111 templates/signature.html.php:188
msgid "Cancel"
msgstr ""
#: templates/organization.html.php:113
msgid "Turn"
msgstr ""
#: templates/organization.html.php:124
msgid "Download the selection"
msgstr ""
#: templates/organization.html.php:144
msgid "PDF documents"
#: templates/signature.html.php:29 templates/organization.html.php:30
#: templates/metadata.html.php:30
#, php-format
msgid "%s Metadata"
msgstr ""
#: templates/signature.html.php:34
msgid "Sign a PDF"
#, php-format
msgid "%s Sign a PDF"
msgstr ""
#: templates/signature.html.php:35
msgid "Sign, initial, stamp, complete a document"
msgstr ""
#: templates/signature.html.php:38 templates/signature.html.php:39
#: templates/organization.html.php:38 templates/organization.html.php:39
#: templates/metadata.html.php:48 templates/metadata.html.php:49
msgid "Choose a PDF"
msgstr ""
#: templates/signature.html.php:38
msgid ""
"Choose a PDF <small class=\"opacity-75\" style=\"cursor: help\" title=\"The "
"PDF should not exceed"
msgid "The PDF should not exceed"
msgstr ""
#: templates/signature.html.php:38
@ -224,13 +64,33 @@ msgid "MB and"
msgstr ""
#: templates/signature.html.php:38
msgid "pages\"><i class=\"bi bi-info-circle\"></i></small></label>"
msgid "pages"
msgstr ""
#: templates/signature.html.php:40
msgid "The PDF will be processed by the server without being stored or saved"
msgstr ""
#: templates/signature.html.php:42 templates/organization.html.php:42
#: templates/metadata.html.php:52
msgid "Test with a demo PDF"
msgstr ""
#: templates/signature.html.php:48 templates/organization.html.php:48
#: templates/metadata.html.php:58
msgid "Free open-source software"
msgstr ""
#: templates/signature.html.php:48 templates/organization.html.php:48
#: templates/metadata.html.php:58
msgid "under AGPL-3.0 license"
msgstr ""
#: templates/signature.html.php:48 templates/organization.html.php:48
#: templates/metadata.html.php:58
msgid "see the source code"
msgstr ""
#: templates/signature.html.php:55
msgid "How to sign?"
msgstr ""
@ -259,12 +119,17 @@ msgstr ""
msgid "This PDF is shared with others to be signed by multiple people"
msgstr ""
#: templates/signature.html.php:69 templates/organization.html.php:66
msgid "This PDF is stored on your computer to be signed by you only"
msgstr ""
#: templates/signature.html.php:76
msgid "Keep the selection active"
msgstr ""
#: templates/signature.html.php:81
msgid "Signature"
#, php-format
msgid "%s Signature"
msgstr ""
#: templates/signature.html.php:81 templates/signature.html.php:86
@ -273,27 +138,33 @@ msgid "Create"
msgstr ""
#: templates/signature.html.php:86
msgid "Initial"
#, php-format
msgid "%s Initial"
msgstr ""
#: templates/signature.html.php:91
msgid "Stamp"
#, php-format
msgid "%s Stamp"
msgstr ""
#: templates/signature.html.php:95
msgid "Text"
#, php-format
msgid "%s Text"
msgstr ""
#: templates/signature.html.php:99
msgid "Check box"
#, php-format
msgid "%s Check box"
msgstr ""
#: templates/signature.html.php:104
msgid "Create an element"
#, php-format
msgid "%s Create an element"
msgstr ""
#: templates/signature.html.php:109
msgid "Share to sign <i class='bi bi-people-fill'></i> with multiple people"
#, php-format
msgid "%s Share to sign %s with multiple people"
msgstr ""
#: templates/signature.html.php:114 templates/signature.html.php:154
@ -301,10 +172,13 @@ msgid "Download the signed PDF"
msgstr ""
#: templates/signature.html.php:119
msgid ""
"You are <span class='badge rounded-pill border border-dark text-dark'><span "
"class='nblayers'>0</span> <i class='bi bi-people-fill'></i></span> to have "
"signed this PDF"
#, php-format
msgid "You are %s to have signed this PDF"
msgstr ""
#: templates/signature.html.php:122
#, php-format
msgid "%s Download the PDF"
msgstr ""
#: templates/signature.html.php:127 templates/signature.html.php:152
@ -312,7 +186,8 @@ msgid "Transmit my signature"
msgstr ""
#: templates/signature.html.php:135
msgid "Select a signature"
#, php-format
msgid "%s Select a signature"
msgstr ""
#: templates/signature.html.php:164
@ -347,8 +222,13 @@ msgstr ""
msgid "My signature"
msgstr ""
#: templates/signature.html.php:188 templates/organization.html.php:111
msgid "Cancel"
msgstr ""
#: templates/signature.html.php:200
msgid "Share this PDF to sign it with several people"
#, php-format
msgid "%s Share this PDF to sign it with several people"
msgstr ""
#: templates/signature.html.php:204
@ -358,27 +238,53 @@ msgid ""
msgstr ""
#: templates/signature.html.php:205
#, php-format
msgid ""
"This sharing requires the PDF to be transferred and stored on the server for "
"future signers to access."
"%s This sharing requires the PDF to be transferred and stored on the server "
"for future signers to access."
msgstr ""
#: templates/signature.html.php:206
msgid ""
"The PDF will be kept <select name='duration' form='form_sharing'><option "
"value='+1 year'>for one year</option><option value='+6 month'>for six "
"months</option><option value='+1 month' selected='selected'>for one month</"
"option><option value='+1 week'>for one week</option><option value='+1 "
"day'>for one day</option><option value='+1 hour'>for one hour</option></"
"select> after the last signature."
#, php-format
msgid "%s The PDF will be kept"
msgstr ""
#: templates/signature.html.php:206
msgid "for one year"
msgstr ""
#: templates/signature.html.php:206
msgid "for six months"
msgstr ""
#: templates/signature.html.php:206
msgid "for one month"
msgstr ""
#: templates/signature.html.php:206
msgid "for one week"
msgstr ""
#: templates/signature.html.php:206
msgid "for one day"
msgstr ""
#: templates/signature.html.php:206
msgid "for one hour"
msgstr ""
#: templates/signature.html.php:206
msgid "after the last signature."
msgstr ""
#: templates/signature.html.php:212
msgid "Start sharing"
#, php-format
msgid "%s Start sharing"
msgstr ""
#: templates/signature.html.php:224
msgid "Sign this PDF with multiple people"
#, php-format
msgid "%s Sign this PDF with multiple people"
msgstr ""
#: templates/signature.html.php:228
@ -394,14 +300,6 @@ msgstr ""
msgid "Sharing link"
msgstr ""
#: templates/signature.html.php:233
msgid "Copied !"
msgstr ""
#: templates/signature.html.php:233
msgid "Copy"
msgstr ""
#: templates/signature.html.php:236
msgid ""
"Each of the signatories can download the latest version of the signed PDF at "
@ -419,3 +317,156 @@ msgstr ""
#: templates/signature.html.php:254
msgid "Your signature has been successfully recorded!"
msgstr ""
#: templates/signature.html.php:257 templates/metadata.html.php:102
msgid "Download the PDF"
msgstr ""
#: templates/organization.html.php:13
msgid "Organize PDF"
msgstr ""
#: templates/organization.html.php:34
#, php-format
msgid "%s Organize PDF"
msgstr ""
#: templates/organization.html.php:35
msgid "Merge, sort, rotate, delete, extract pages"
msgstr ""
#: templates/organization.html.php:38
msgid "The PDF must not exceed "
msgstr ""
#: templates/organization.html.php:38
msgid "Mb"
msgstr ""
#: templates/organization.html.php:40
msgid ""
"The PDF will be processed by the server without being retained or stored"
msgstr ""
#: templates/organization.html.php:53
msgid "Touch a page to select it"
msgstr ""
#: templates/organization.html.php:64
msgid "Close this PDF and return to home"
msgstr ""
#: templates/organization.html.php:66
msgid "PDF organization"
msgstr ""
#: templates/organization.html.php:75 templates/organization.html.php:107
#, php-format
msgid "%s Add a PDF"
msgstr ""
#: templates/organization.html.php:80 templates/organization.html.php:111
msgid "No"
msgstr ""
#: templates/organization.html.php:80
msgid "page selected"
msgstr ""
#: templates/organization.html.php:82
#, php-format
msgid "%s Rotate 90°"
msgstr ""
#: templates/organization.html.php:83 templates/organization.html.php:114
#, php-format
msgid "%s Move"
msgstr ""
#: templates/organization.html.php:84 templates/organization.html.php:115
#, php-format
msgid "%s Delete"
msgstr ""
#: templates/organization.html.php:85
#, php-format
msgid "%s Extract and download"
msgstr ""
#: templates/organization.html.php:87
#, php-format
msgid "%s Cancel selection"
msgstr ""
#: templates/organization.html.php:95 templates/organization.html.php:121
#, php-format
msgid "%s Download the full PDF"
msgstr ""
#: templates/organization.html.php:111
msgid "page"
msgstr ""
#: templates/organization.html.php:113
#, php-format
msgid "%s Turn"
msgstr ""
#: templates/organization.html.php:124
#, php-format
msgid "Download the selection"
msgstr ""
#: templates/organization.html.php:144
msgid "PDF documents"
msgstr ""
#: templates/metadata.html.php:13
msgid "Editing PDF metadata"
msgstr ""
#: templates/metadata.html.php:34
msgid "Language"
msgstr ""
#: templates/metadata.html.php:44
#, php-format
msgid "%s Edit metadata"
msgstr ""
#: templates/metadata.html.php:45
msgid "Add, edit, or remove metadata from a PDF"
msgstr ""
#: templates/metadata.html.php:65
msgid "List of PDF metadata"
msgstr ""
#: templates/metadata.html.php:71
msgid "Add new metadata"
msgstr ""
#: templates/metadata.html.php:74
msgid "Key"
msgstr ""
#: templates/metadata.html.php:76
msgid "Value"
msgstr ""
#: templates/metadata.html.php:78
#, php-format
msgid "%s Add"
msgstr ""
#: templates/metadata.html.php:84
msgid "Close this PDF and return to the home page"
msgstr ""
#: templates/metadata.html.php:86
msgid "Edit metadata"
msgstr ""
#: templates/metadata.html.php:96
msgid "Save and download the PDF"
msgstr ""

Binary file not shown.

View file

@ -8,415 +8,538 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-08 14:30+0200\n"
"PO-Revision-Date: 2023-09-08 14:59+0200\n"
"Last-Translator: tale-fau <tale-fau@talefau-hp-elitebook-840-g3>\n"
"Language-Team: French <traduc@traduc.org>\n"
"Language: fr\n"
"POT-Creation-Date: 2023-09-11 19:01+0200\n"
"PO-Revision-Date: 2023-09-07 13:19+0000\n"
"Last-Translator: 24ème <equipe@24eme.fr>\n"
"Language-Team: French <https://hosted.weblate.org/projects/signature-pdf/"
"application/fr/>\n"
"Language: fr_FR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.0.1-dev\n"
#: templates/metadata.html.php:13
msgid "Editing PDF metadata"
msgstr ""
#: templates/metadata.html.php:18 templates/organization.html.php:18
#: templates/signature.html.php:16
#: templates/signature.html.php:16 templates/organization.html.php:18
#: templates/metadata.html.php:18
msgid "Site not functional without JavaScript enabled"
msgstr ""
msgstr "Site non fonctionnel sans JavaScript activé"
#: templates/metadata.html.php:24 templates/organization.html.php:24
#: templates/signature.html.php:23
msgid "Sign"
msgstr ""
#: templates/signature.html.php:23 templates/organization.html.php:24
#: templates/metadata.html.php:24
msgid "%s Sign"
msgstr "%s Signer"
#: templates/metadata.html.php:27 templates/organization.html.php:27
#: templates/signature.html.php:26
msgid "Organize"
msgstr ""
#: templates/signature.html.php:26 templates/organization.html.php:27
#: templates/metadata.html.php:27
#, php-format
msgid "%s Organize"
msgstr "%s Organiser"
#: templates/metadata.html.php:30 templates/organization.html.php:30
#: templates/signature.html.php:29
msgid "Metadata"
msgstr ""
#: templates/metadata.html.php:34
msgid "Language"
msgstr ""
#: templates/metadata.html.php:44 templates/metadata.html.php:86
msgid "Edit metadata"
msgstr ""
#: templates/metadata.html.php:45
msgid "Add, edit, or remove metadata from a PDF"
msgstr ""
#: templates/metadata.html.php:48 templates/metadata.html.php:49
#: templates/organization.html.php:38 templates/organization.html.php:39
#: templates/signature.html.php:39
msgid "Choose a PDF"
msgstr ""
#: templates/metadata.html.php:52 templates/organization.html.php:42
#: templates/signature.html.php:42
msgid "Test with a demo PDF"
msgstr ""
#: templates/metadata.html.php:58 templates/organization.html.php:48
#: templates/signature.html.php:48
msgid "Free open-source software"
msgstr ""
#: templates/metadata.html.php:58 templates/organization.html.php:48
#: templates/signature.html.php:48
msgid "under AGPL-3.0 license"
msgstr ""
#: templates/metadata.html.php:58 templates/organization.html.php:48
#: templates/signature.html.php:48
msgid "see the source code"
msgstr ""
#: templates/metadata.html.php:65
msgid "List of PDF metadata"
msgstr ""
#: templates/metadata.html.php:71
msgid "Add new metadata"
msgstr ""
#: templates/metadata.html.php:74
msgid "Key"
msgstr ""
#: templates/metadata.html.php:76
msgid "Value"
msgstr ""
#: templates/metadata.html.php:78
msgid "Add"
msgstr ""
#: templates/metadata.html.php:84
msgid "Close this PDF and return to the home page"
msgstr ""
#: templates/metadata.html.php:96
msgid "Save and download the PDF"
msgstr ""
#: templates/metadata.html.php:102 templates/signature.html.php:122
#: templates/signature.html.php:257
msgid "Download the PDF"
msgstr ""
#: templates/organization.html.php:13 templates/organization.html.php:34
msgid "Organize PDF"
msgstr ""
#: templates/organization.html.php:35
msgid "Merge, sort, rotate, delete, extract pages"
msgstr ""
#: templates/organization.html.php:38
msgid "The PDF must not exceed "
msgstr ""
#: templates/organization.html.php:38
msgid "Mb"
msgstr ""
#: templates/organization.html.php:40
msgid ""
"The PDF will be processed by the server without being retained or stored"
msgstr ""
#: templates/organization.html.php:53
msgid "Touch a page to select it"
msgstr ""
#: templates/organization.html.php:64
msgid "Close this PDF and return to home"
msgstr ""
#: templates/organization.html.php:66
msgid "PDF organization"
msgstr ""
#: templates/organization.html.php:66 templates/signature.html.php:69
msgid "This PDF is stored on your computer to be signed by you only"
msgstr ""
#: templates/organization.html.php:75 templates/organization.html.php:107
msgid "Add a PDF"
msgstr ""
#: templates/organization.html.php:80 templates/organization.html.php:111
msgid "No"
msgstr ""
#: templates/organization.html.php:80
msgid "page selected"
msgstr ""
#: templates/organization.html.php:82
msgid "Rotate 90°"
msgstr ""
#: templates/organization.html.php:83 templates/organization.html.php:114
msgid "Move"
msgstr ""
#: templates/organization.html.php:84 templates/organization.html.php:115
msgid "Delete"
msgstr ""
#: templates/organization.html.php:85
msgid "Extract and download"
msgstr ""
#: templates/organization.html.php:87
msgid "Cancel selection"
msgstr ""
#: templates/organization.html.php:95 templates/organization.html.php:121
msgid "Download the full PDF"
msgstr ""
#: templates/organization.html.php:111
msgid "page"
msgstr ""
#: templates/organization.html.php:111 templates/signature.html.php:188
msgid "Cancel"
msgstr ""
#: templates/organization.html.php:113
msgid "Turn"
msgstr ""
#: templates/organization.html.php:124
msgid "Download the selection"
msgstr ""
#: templates/organization.html.php:144
msgid "PDF documents"
msgstr ""
#: templates/signature.html.php:29 templates/organization.html.php:30
#: templates/metadata.html.php:30
msgid "%s Metadata"
msgstr "%s Metadonnées"
#: templates/signature.html.php:34
msgid "Sign a PDF"
msgstr ""
msgid "%s Sign a PDF"
msgstr "%s Signer un PDF"
#: templates/signature.html.php:35
msgid "Sign, initial, stamp, complete a document"
msgstr ""
msgstr "Signer, parapher, tamponner, compléter un document"
#: templates/signature.html.php:38 templates/signature.html.php:39
#: templates/organization.html.php:38 templates/organization.html.php:39
#: templates/metadata.html.php:48 templates/metadata.html.php:49
msgid "Choose a PDF"
msgstr "Choisir un PDF"
#: templates/signature.html.php:38
msgid ""
"Choose a PDF <small class=\"opacity-75\" style=\"cursor: help\" title=\"The "
"PDF should not exceed"
msgstr ""
msgid "The PDF should not exceed"
msgstr "Le PDF ne doit pas dépasser "
#: templates/signature.html.php:38
msgid "MB and"
msgstr ""
msgstr "Mo et"
#: templates/signature.html.php:38
msgid "pages\"><i class=\"bi bi-info-circle\"></i></small></label>"
msgstr ""
msgid "pages"
msgstr "page"
#: templates/signature.html.php:40
msgid "The PDF will be processed by the server without being stored or saved"
msgstr ""
msgstr "Le PDF sera traité par le serveur sans être conservé no stocké"
#: templates/signature.html.php:42 templates/organization.html.php:42
#: templates/metadata.html.php:52
msgid "Test with a demo PDF"
msgstr "Tester avec un PDF de démo"
#: templates/signature.html.php:48 templates/organization.html.php:48
#: templates/metadata.html.php:58
msgid "Free open-source software"
msgstr "Logiciel libre"
#: templates/signature.html.php:48 templates/organization.html.php:48
#: templates/metadata.html.php:58
msgid "under AGPL-3.0 license"
msgstr "sous license AGPL-3.0"
#: templates/signature.html.php:48 templates/organization.html.php:48
#: templates/metadata.html.php:58
msgid "see the source code"
msgstr "voir le code source"
#: templates/signature.html.php:55
msgid "How to sign?"
msgstr ""
msgstr "Comment signer ?"
#: templates/signature.html.php:56
msgid "By clicking directly on the document page"
msgstr ""
msgstr "En cliquant directement sur la page du document"
#: templates/signature.html.php:56
msgid "to insert the selected item in the right column"
msgstr ""
msgstr "pour insérer l'élément selectionné dans la colonne de droite"
#: templates/signature.html.php:56
msgid "signature, initial, text, stamp, etc ..."
msgstr ""
msgstr "signature, paraphe, texte, tampon, etc ..."
#: templates/signature.html.php:67
msgid "Close this PDF and return to the homepage"
msgstr ""
msgstr "Fermer ce PDF et retourner à l'accueil"
#: templates/signature.html.php:69
msgid "PDF Signature"
msgstr ""
msgstr "Signature du PDF"
#: templates/signature.html.php:69
msgid "This PDF is shared with others to be signed by multiple people"
msgstr "Ce PDF est partagé avec d'autres personnes pour être signé à plusieurs"
#: templates/signature.html.php:69 templates/organization.html.php:66
msgid "This PDF is stored on your computer to be signed by you only"
msgstr ""
"Ce PDF est stocké sur votre ordinateur pour être signé par vous uniquement"
#: templates/signature.html.php:76
msgid "Keep the selection active"
msgstr ""
msgstr "Garder la sélection active"
#: templates/signature.html.php:81
msgid "Signature"
msgstr ""
msgid "%s Signature"
msgstr "%s Signature"
#: templates/signature.html.php:81 templates/signature.html.php:86
#: templates/signature.html.php:91 templates/signature.html.php:189
msgid "Create"
msgstr ""
msgstr "Créer"
#: templates/signature.html.php:86
msgid "Initial"
msgstr ""
msgid "%s Initial"
msgstr "%s Paraphe"
#: templates/signature.html.php:91
msgid "Stamp"
msgstr ""
msgid "%s Stamp"
msgstr "%s Tampon"
#: templates/signature.html.php:95
msgid "Text"
msgstr ""
msgid "%s Text"
msgstr "%s Texte"
#: templates/signature.html.php:99
msgid "Check box"
msgstr ""
msgid "%s Check box"
msgstr "%s Case à cocher"
#: templates/signature.html.php:104
msgid "Create an element"
msgstr ""
msgid "%s Create an element"
msgstr "%s Créer un élément"
#: templates/signature.html.php:109
msgid "Share to sign <i class='bi bi-people-fill'></i> with multiple people"
msgstr ""
msgid "%s Share to sign %s with multiple people"
msgstr "%s Partager pour signer %s à plusieurs"
#: templates/signature.html.php:114 templates/signature.html.php:154
msgid "Download the signed PDF"
msgstr ""
msgstr "Télécharger le PDF signé"
#: templates/signature.html.php:119
msgid ""
"You are <span class='badge rounded-pill border border-dark text-dark'><span "
"class='nblayers'>0</span> <i class='bi bi-people-fill'></i></span> to have "
"signed this PDF"
msgstr ""
msgid "You are %s to have signed this PDF"
msgstr "Vous êtes %s à avoir signé ce PDF"
#: templates/signature.html.php:122
msgid "%s Download the PDF"
msgstr "%s Télécharger le PDF"
#: templates/signature.html.php:127 templates/signature.html.php:152
msgid "Transmit my signature"
msgstr ""
msgstr "Transmettre ma signature"
#: templates/signature.html.php:135
msgid "Select a signature"
msgstr ""
msgid "%s Select a signature"
msgstr "%s Sélectionner une signature"
#: templates/signature.html.php:164
msgid "Draw"
msgstr ""
msgstr "Dessiner"
#: templates/signature.html.php:164
msgid "freehand"
msgstr ""
msgstr "à main levée"
#: templates/signature.html.php:165
msgid "Enter"
msgstr ""
msgstr "Saisir"
#: templates/signature.html.php:165
msgid "text"
msgstr ""
msgstr "du texte"
#: templates/signature.html.php:166
msgid "Import"
msgstr ""
msgstr "Importer"
#: templates/signature.html.php:166
msgid "an image"
msgstr ""
msgstr "une image"
#: templates/signature.html.php:170
msgid "Clear signature"
msgstr ""
msgstr "Effacer la signature"
#: templates/signature.html.php:174
msgid "My signature"
msgstr ""
msgstr "Ma signature"
#: templates/signature.html.php:188 templates/organization.html.php:111
msgid "Cancel"
msgstr "Annuler"
#: templates/signature.html.php:200
msgid "Share this PDF to sign it with several people"
msgstr ""
msgid "%s Share this PDF to sign it with several people"
msgstr "%s Partager ce PDF pour le signer à plusieurs"
#: templates/signature.html.php:204
msgid ""
"By enabling PDF sharing, you will be able to provide a link to the people of "
"your choice so that they can sign this PDF."
msgstr ""
"En activant le partage de ce PDF vous allez pouvoir proposer un lien aux "
"personnes de votre choix pour qu'elles puissent signer ce PDF."
#: templates/signature.html.php:205
msgid ""
"This sharing requires the PDF to be transferred and stored on the server for "
"future signers to access."
msgstr ""
"%s This sharing requires the PDF to be transferred and stored on the server "
"for future signers to access."
msgstr "%s Ce partage nécessite que le PDF soit transféré et stocké sur le serveur "
"afin d'être accessible aux futurs signataires."
#: templates/signature.html.php:206
msgid ""
"The PDF will be kept <select name='duration' form='form_sharing'><option "
"value='+1 year'>for one year</option><option value='+6 month'>for six "
"months</option><option value='+1 month' selected='selected'>for one month</"
"option><option value='+1 week'>for one week</option><option value='+1 "
"day'>for one day</option><option value='+1 hour'>for one hour</option></"
"select> after the last signature."
msgstr ""
msgid "%s The PDF will be kept"
msgstr "%s Le PDF sera conservé"
#: templates/signature.html.php:206
msgid "for one year"
msgstr "pendant un an"
#: templates/signature.html.php:206
msgid "for six months"
msgstr "pendant six mois"
#: templates/signature.html.php:206
msgid "for one month"
msgstr "pendant un mois"
#: templates/signature.html.php:206
msgid "for one week"
msgstr "pendant une semaine"
#: templates/signature.html.php:206
msgid "for one day"
msgstr "pendant une journée"
#: templates/signature.html.php:206
msgid "for one hour"
msgstr "pendant une heure"
#: templates/signature.html.php:206
msgid "after the last signature."
msgstr "après la dernière signature"
#: templates/signature.html.php:212
msgid "Start sharing"
msgstr ""
msgid "%s Start sharing"
msgstr "%s Démarrer le partage"
#: templates/signature.html.php:224
msgid "Sign this PDF with multiple people"
msgstr ""
msgid "%s Sign this PDF with multiple people"
msgstr "%s Signer ce PDF à plusieurs"
#: templates/signature.html.php:228
msgid "Multiple people can sign this PDF simultaneously."
msgstr ""
msgstr "Plusieurs personnes peuvent signer ce PDF en même temps."
#: templates/signature.html.php:229
msgid ""
"To do so, simply share the link to this page with the people of your choice:"
msgstr ""
"Pour celà il vous suffit de partager avec les personnes de votre choix le "
"lien vers cette page :"
#: templates/signature.html.php:231
msgid "Sharing link"
msgstr ""
#: templates/signature.html.php:233
msgid "Copied !"
msgstr ""
#: templates/signature.html.php:233
msgid "Copy"
msgstr ""
msgstr "Lien à partager"
#: templates/signature.html.php:236
msgid ""
"Each of the signatories can download the latest version of the signed PDF at "
"any time."
msgstr ""
"Chacun des signataires pourra à tout moment télécharger la dernière version "
"du PDF signé."
#: templates/signature.html.php:239
msgid "Close"
msgstr ""
msgstr "Fermer"
#: templates/signature.html.php:250
msgid "Signed PDF"
msgstr ""
msgstr "PDF signé"
#: templates/signature.html.php:254
msgid "Your signature has been successfully recorded!"
msgstr ""
msgstr "Votre signature a bien été prise en compte !"
#: templates/signature.html.php:257 templates/metadata.html.php:102
msgid "Download the PDF"
msgstr "Télécharger le PDF"
#: templates/organization.html.php:13
msgid "Organize PDF"
msgstr "Organiser un PDF"
#: templates/organization.html.php:34
msgid "%s Organize PDF"
msgstr "%s Organiser des PDF"
#: templates/organization.html.php:35
msgid "Merge, sort, rotate, delete, extract pages"
msgstr "Fusionner, trier, pivoter, supprimer, extraire des pages"
#: templates/organization.html.php:38
msgid "The PDF must not exceed "
msgstr "Le PDF ne doit pas dépasser "
#: templates/organization.html.php:38
msgid "Mb"
msgstr "Mo"
#: templates/organization.html.php:40
msgid ""
"The PDF will be processed by the server without being retained or stored"
msgstr "Le PDF sera traité par le serveur sans être conservé ni stocké"
#: templates/organization.html.php:53
msgid "Touch a page to select it"
msgstr "Toucher une page pour la sélectionner"
#: templates/organization.html.php:64
msgid "Close this PDF and return to home"
msgstr "Fermer ce PDF et retourner à l'accueil"
#: templates/organization.html.php:66
msgid "PDF organization"
msgstr "Organisation de PDF"
#: templates/organization.html.php:75 templates/organization.html.php:107
msgid "%s Add a PDF"
msgstr "%s Ajouter un PDF"
#: templates/organization.html.php:80 templates/organization.html.php:111
msgid "No"
msgstr "Aucune"
#: templates/organization.html.php:80
msgid "page selected"
msgstr "page sélectionnée"
#: templates/organization.html.php:82
msgid "%s Rotate 90°"
msgstr "%s Tourner de 90°"
#: templates/organization.html.php:83 templates/organization.html.php:114
msgid "%s Move"
msgstr "%s Déplacer"
#: templates/organization.html.php:84 templates/organization.html.php:115
msgid "%s Delete"
msgstr "%s Supprimer"
#: templates/organization.html.php:85
msgid "%s Extract and download"
msgstr "%s Extraire et télécharger"
#: templates/organization.html.php:87
msgid "%s Cancel selection"
msgstr "%s Annuler la sélection"
#: templates/organization.html.php:95 templates/organization.html.php:121
msgid "%s Download the full PDF"
msgstr "%s Télécharger le PDF complet"
#: templates/organization.html.php:111
msgid "page"
msgstr "page"
#: templates/organization.html.php:113
msgid "%s Turn"
msgstr "%s Tourner"
#: templates/organization.html.php:124
msgid "Download the selection"
msgstr "Télécharger la sélection"
#: templates/organization.html.php:144
msgid "PDF documents"
msgstr "Documents PDF"
#: templates/metadata.html.php:13
msgid "Editing PDF metadata"
msgstr "Édition des métadonnées d'un PDF"
#: templates/metadata.html.php:34
msgid "Language"
msgstr "Langue"
#: templates/metadata.html.php:44
msgid "%s Edit metadata"
msgstr "%s Éditer les métadonnées"
#: templates/metadata.html.php:45
msgid "Add, edit, or remove metadata from a PDF"
msgstr "Ajouter, modifier ou supprimer les métadonnées d'un PDF"
#: templates/metadata.html.php:65
msgid "List of PDF metadata"
msgstr "Liste des métadonnées du PDF"
#: templates/metadata.html.php:71
msgid "Add new metadata"
msgstr "Ajouter une nouvelle métadonnée"
#: templates/metadata.html.php:74
msgid "Key"
msgstr "Clé"
#: templates/metadata.html.php:76
msgid "Value"
msgstr "Valeur"
#: templates/metadata.html.php:78
msgid "%s Add"
msgstr "%s Ajouter"
#: templates/metadata.html.php:84
msgid "Close this PDF and return to the home page"
msgstr "Fermer ce PDF et retourner à l'accueil"
#: templates/metadata.html.php:86
msgid "Edit metadata"
msgstr "Édition des métadonnées"
#: templates/metadata.html.php:96
msgid "Save and download the PDF"
msgstr "Enregistrer et télécharger le PDF"
#~ msgid "Sign"
#~ msgstr "Signer"
#~ msgid "Organize"
#~ msgstr "Organiser"
#~ msgid "Metadata"
#~ msgstr "Métadonnées"
#~ msgid "Signature"
#~ msgstr "Signature"
#~ msgid "Initial"
#~ msgstr "Initiales"
#~ msgid "Stamp"
#~ msgstr "Tampon"
#~ msgid "Text"
#~ msgstr "Texte"
#~ msgid "Check box"
#~ msgstr "Case à cocher"
#~ msgid "Create an element"
#~ msgstr "Créer un élément"
#~ msgid "Share to sign %s with multiple people"
#~ msgstr "Partager pour signer %s à plusieurs"
#~ msgid "Select a signature"
#~ msgstr "Sélectionner une signature"
#~ msgid "Share this PDF to sign it with several people"
#~ msgstr "Partager ce PDF pour le signer à plusieurs"
#~ msgid ""
#~ "This sharing requires the PDF to be transferred and stored on the server "
#~ "for future signers to access."
#~ msgstr ""
#~ "Ce partage nécessite que le PDF soit transféré et stocké sur le serveur "
#~ "afin d'être accessible aux futurs signataires."
#~ msgid "The PDF will be kept"
#~ msgstr "Le PDF sera stocké"
#~ msgid "Start sharing"
#~ msgstr "Démarrer le partage"
#~ msgid "Sign this PDF with multiple people"
#~ msgstr "Signer ce PDF à plusieurs"
#~ msgid "Add a PDF"
#~ msgstr "Ajouter un PDF"
#~ msgid "Rotate 90°"
#~ msgstr "Tourner de 90°"
#~ msgid "Move"
#~ msgstr "Déplacer"
#~ msgid "Delete"
#~ msgstr "Supprimer"
#~ msgid "Extract and download"
#~ msgstr "Extraire et télécharger"
#~ msgid "Cancel selection"
#~ msgstr "Annuler la sélection"
#~ msgid "Download the full PDF"
#~ msgstr "Télécharger le PDF complet"
#~ msgid "Turn"
#~ msgstr "Tourner"
#~ msgid "Add"
#~ msgstr "Ajouter"
#~ msgid "Share to sign"
#~ msgstr "Partager pour signer"
#~ msgid "with multiple people"
#~ msgstr "à plusieurs"
#~ msgid "You are"
#~ msgstr "Vous êtes"
#, fuzzy
#~ msgid "to have signed this PDF"
#~ msgstr "à avoir signé ce PDF"

View file

@ -21,17 +21,27 @@
<div id="page-upload">
<ul class="nav justify-content-center nav-tabs mt-2">
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"><i class="bi bi-vector-pen"></i> <?php echo _("Sign"); ?></a>
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"> <?php echo sprintf(_("%s Sign"), '<i class="bi bi-vector-pen"></i>'); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"><i class="bi bi-ui-checks-grid"></i> <?php echo _("Organize"); ?></a>
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"> <?php echo sprintf(_("%s Organize"), '<i class="bi bi-ui-checks-grid"></i>'); ?></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"><i class="bi bi-tags"></i> <?php echo _("Metadata"); ?></a>
<a class="nav-link active" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"> <?php echo sprintf(_("%s Metadata"), '<i class="bi bi-tags"></i>'); ?></a>
</li>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php echo _("Language"); ?>
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
</ul>
<div class="px-4 py-4 text-center">
<h1 class="display-5 fw-bold mb-0 mt-3"><i class="bi bi-tags"></i> <?php echo _("Edit metadata"); ?></h1>
<h1 class="display-5 fw-bold mb-0 mt-3"> <?php echo sprintf(_("%s Edit metadata"), '<i class="bi bi-tags"></i>'); ?></h1>
<p class="fw-light mb-3 subtitle text-dark text-nowrap" style="overflow: hidden; text-overflow: ellipsis;"><?php echo _("Add, edit, or remove metadata from a PDF"); ?></p>
<div class="col-md-6 col-lg-5 col-xl-4 col-xxl-3 mx-auto">
<div class="col-12">
@ -65,7 +75,7 @@
</div>
<input id="input_metadata_value" readonly="readonly" style="border-top: 0; border-top-right-radius: 0; border-top-left-radius: 0;" name="metadata_value" type="text" class="form-control bg-light opacity-50" value="" placeholder="<?php echo _("Value"); ?>" style="border-bottom-right-radius: 0; border-bottom-left-radius: 0;">
</div>
<button type="submit" type="button" class="btn btn-outline-secondary float-end"><i class="bi bi-plus-circle"></i> <?php echo _("Add"); ?></button>
<button type="submit" type="button" class="btn btn-outline-secondary float-end"><?php echo sprintf(_("%s Add"), '<i class="bi bi-plus-circle"></i>'); ?></button>
</form>
</div>
</div>
@ -73,7 +83,7 @@
<div style="width: 40%;" class="offcanvas offcanvas-end show d-none d-md-block shadow-sm" data-bs-backdrop="false" data-bs-scroll="true" data-bs-keyboard="false" tabindex="-1" id="sidebarTools" aria-labelledby="sidebarToolsLabel">
<a class="btn btn-close btn-sm position-absolute opacity-25 d-none d-sm-none d-md-block" title="<?php echo _("Close this PDF and return to the home page"); ?>" style="position: absolute; top: 2px; right: 2px; font-size: 10px;" href="/metadata"></a>
<div class="offcanvas-header d-block mb-0 pb-0 border-bottom">
<h5 class="mb-1 d-block w-100" id="sidebarToolsLabel"><?php echo _("Edit metadata<span class=\"float-end me-2\"><i class=\"bi bi-tags\"></i></span>"); ?></h5>
<h5 class="mb-1 d-block w-100" id="sidebarToolsLabel"><?php echo _("Edit metadata"); ?><span class=\"float-end me-2\"><i class=\"bi bi-tags\"></i></span></h5>
<button type="button" class="btn-close text-reset d-md-none" data-bs-dismiss="offcanvas" aria-label="Close"></button>
<p id="text_document_name" class="text-muted mb-2" style="text-overflow: ellipsis; white-space: nowrap; overflow: hidden;" title=""><i class="bi bi-files"></i> <span></span></p>
</div>

View file

@ -20,18 +20,18 @@
</noscript>
<div id="page-upload">
<ul class="nav justify-content-center nav-tabs mt-2">
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"><i class="bi bi-vector-pen"></i> <?php echo _("Sign"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"><i class="bi bi-ui-checks-grid"></i> <?php echo _("Organize"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"><i class="bi bi-tags"></i> <?php echo _("Metadata"); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"> <?php echo sprintf(_("%s Sign"), '<i class="bi bi-vector-pen"></i>'); ?></a>
</li>
<li class="nav-item">
<a class="nav-link active" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"> <?php echo sprintf(_("%s Organize"), '<i class="bi bi-ui-checks-grid"></i>'); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"> <?php echo sprintf(_("%s Metadata"), '<i class="bi bi-tags"></i>'); ?></a>
</li>
</ul>
<div class="px-4 py-4 text-center">
<h1 class="display-5 fw-bold mb-0 mt-3"><i class="bi bi-ui-checks-grid"></i><?php echo _("Organize PDF"); ?></h1>
<h1 class="display-5 fw-bold mb-0 mt-3"><?php echo sprintf(_("%s Organize PDF"), '<i class="bi bi-ui-checks-grid"></i>'); ?></h1>
<p class="fw-light mb-3 subtitle text-dark text-nowrap" style="overflow: hidden; text-overflow: ellipsis;"><?php echo _("Merge, sort, rotate, delete, extract pages"); ?></p>
<div class="col-md-6 col-lg-5 col-xl-4 col-xxl-3 mx-auto">
<div class="col-12">
@ -72,19 +72,19 @@
</ul>
</div>
<div class="d-grid gap-2 mt-2">
<button type="button" class="btn btn-sm btn-outline-dark" onclick="document.getElementById('input_pdf_upload_2').click();"><i class="bi bi-plus-circle"></i> <?php echo _("Add a PDF"); ?></button>
<button type="button" class="btn btn-sm btn-outline-dark" onclick="document.getElementById('input_pdf_upload_2').click();"><?php echo sprintf(_("%s Add a PDF"), '<i class="bi bi-plus-circle"></i>'); ?></button>
<input id="input_pdf_upload_2" class="form-control d-none" type="file" accept=".pdf,application/pdf" multiple="true">
</div>
<hr />
<div id="container_btn_select" class="opacity-50 card">
<div class="card-header small text-center p-1"><span><?php echo _("No"); ?></span> <?php echo _("page selected") ?> <button id="btn_cancel_select" type="button" class="btn-close btn-close-white float-end" aria-label="Close"></button></div>
<div class="card-body d-grid gap-2 p-2">
<button id="btn_rotate_select" disabled="disabled" type="button" class="btn btn-sm btn-outline-secondary"><i class="bi bi-arrow-clockwise"></i> <?php echo _("Rotate 90°"); ?></button>
<button id="btn_drag_select" disabled="disabled" type="button" class="btn btn-sm btn-outline-secondary"><i class="bi bi-arrows-move"></i> <?php echo _("Move"); ?></button>
<button id="btn_delete_select" disabled="disabled" type="button" class="btn btn-sm btn-outline-secondary"><i class="bi bi-trash"></i> <?php echo _("Delete"); ?></button>
<button id="save-select" class="btn btn-sm btn-outline-secondary" disabled="disabled" form="form_pdf" type="submit"><i class="bi bi-download"></i> <?php echo _("Extract and download") ?></button>
<button id="btn_rotate_select" disabled="disabled" type="button" class="btn btn-sm btn-outline-secondary"><?php echo sprintf(_("%s Rotate 90°"), '<i class="bi bi-arrow-clockwise"></i>'); ?></button>
<button id="btn_drag_select" disabled="disabled" type="button" class="btn btn-sm btn-outline-secondary"><?php echo sprintf(_("%s Move"), '<i class="bi bi-arrows-move"></i>'); ?></button>
<button id="btn_delete_select" disabled="disabled" type="button" class="btn btn-sm btn-outline-secondary"><?php echo sprintf(_("%s Delete"), '<i class="bi bi-trash"></i>'); ?></button>
<button id="save-select" class="btn btn-sm btn-outline-secondary" disabled="disabled" form="form_pdf" type="submit"><?php echo sprintf(_("%s Extract and download"), '<i class="bi bi-download"></i>'); ?></button>
</div>
<div class="card-footer d-none small text-center p-1 border-primary bg-primary bg-opacity-25"><a id="btn_cancel_select_footer" type="button" aria-label="Close" style="text-decoration: none;" class="text-primary"><i class="bi bi-x-lg"></i> <?php echo _("Cancel selection"); ?></a></div>
<div class="card-footer d-none small text-center p-1 border-primary bg-primary bg-opacity-25"><a id="btn_cancel_select_footer" type="button" aria-label="Close" style="text-decoration: none;" class="text-primary"><?php echo sprintf(_("%s Cancel selection"), '<i class="bi bi-x-lg"></i>'); ?></a></div>
</div>
<div class="position-absolute bottom-0 pb-2 ps-0 pe-4 w-100">
@ -92,7 +92,7 @@
<input id="input_pdf" name="pdf[]" type="file" class="d-none" />
<input id="input_pages" type="hidden" value="" name="pages" />
<div id="btn_container" class="d-grid gap-2 mt-2">
<button class="btn btn-primary" type="submit" id="save"><i class="bi bi-download"></i> <?php echo _("Download the full PDF"); ?></button>
<button class="btn btn-primary" type="submit" id="save"><?php echo sprintf(_("%s Download the full PDF"), '<i class="bi bi-download"></i>'); ?></button>
</div>
</form>
</div>
@ -104,24 +104,24 @@
<button id="btn_liste_pdf" type="button" data-bs-toggle="modal" data-bs-target="#modalFichier" class="btn btn-dark flex-grow-1 me-2" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
<i class="bi bi-files"></i> <span id="liste_pdf_titre_mobile"></span>
</button>
<button type="button" class="btn btn-outline-dark position-relative" style="padding-left: 30px;" onclick="document.getElementById('input_pdf_upload_2').click(); this.blur();"><i class="bi bi-plus-circle position-absolute" style="left: 10px;"></i> <?php echo _("Add a PDF"); ?></button>
<button type="button" class="btn btn-outline-dark position-relative" style="padding-left: 30px;" onclick="document.getElementById('input_pdf_upload_2').click(); this.blur();"><?php echo sprintf(_("%s Add a PDF"), '<i class="bi bi-plus-circle position-absolute" style="left: 10px;"></i>'); ?></button>
</div>
</div>
<div id="top_bar_action_selection" class="d-none">
<div id="top_bar_action_selection_recap" class="bg-primary text-white text-center rounded-top p-1 position-relative"><button id="btn_liste_pdf_bar" type="button" style="text-decoration: none;left: 0px; top:0px;" class="btn bg-white bg-opacity-50 text-primary position-absolute p-0 ps-1 pe-1 mt-1 ms-1"><i class="bi bi-files"></i>&nbsp;<span></span> PDF</button><span id="top_bar_action_selection_recap_nb_pages"><?php echo _("No"); ?>></span> <?php echo _("page"); ?><button id="btn_cancel_select_mobile" type="button" style="text-decoration: none;right: 0px; top:0px;" class="btn bg-white bg-opacity-50 text-primary position-absolute p-0 ps-1 pe-1 mt-1 me-1"><i class="bi bi-x-lg"></i>&nbsp;<?php echo _("Cancel"); ?>></button></div>
<div class="btn-group w-100">
<button id="btn_rotate_select_mobile" type="button" class="btn btn-outline-primary" style="border-top-left-radius: 0 !important;"><i class="bi bi-arrow-clockwise"></i> <?php echo _("Turn") ?></button>
<button id="btn_drag_select_mobile" type="button" class="btn btn-outline-primary"><i class="bi bi-arrows-move"></i><?php echo _("Move"); ?></button>
<button id="btn_delete_select_mobile" type="button" class="btn btn-outline-primary" style="border-top-right-radius: 0 !important;"><i class="bi bi-trash"></i> <?php echo _("Delete"); ?></button>
<button id="btn_rotate_select_mobile" type="button" class="btn btn-outline-primary" style="border-top-left-radius: 0 !important;"><?php echo sprintf(_("%s Turn"), '<i class="bi bi-arrow-clockwise"></i>'); ?></button>
<button id="btn_drag_select_mobile" type="button" class="btn btn-outline-primary"><?php echo sprintf(_("%s Move"), '<i class="bi bi-arrows-move"></i>'); ?></button>
<button id="btn_delete_select_mobile" type="button" class="btn btn-outline-primary" style="border-top-right-radius: 0 !important;"><?php echo sprintf(_("%s Delete"), '<i class="bi bi-trash"></i>'); ?></button>
</div>
</div>
</div>
<div id="bottom_bar" class="position-fixed bottom-0 start-0 bg-white w-100 p-2 shadow-sm d-md-none">
<div id="bottom_bar_action" class="d-grid gap-2">
<button class="btn btn-primary" type="submit" id="save_mobile"><i class="bi bi-download"></i> <?php echo _("Download the full PDF"); ?></button>
<button class="btn btn-primary" type="submit" id="save_mobile"><?php echo sprintf(_("%s Download the full PDF"), '<i class="bi bi-download"></i>'); ?></button>
</div>
<div id="bottom_bar_action_selection" class="d-grid gap-2 d-none">
<button id="save-select_mobile" class="btn btn-outline-primary" type="submit" form="form_pdf"><i class="bi bi-download"></i> <?php echo _("Download the selection"); ?>></button>
<button id="save-select_mobile" class="btn btn-outline-primary" type="submit" form="form_pdf"><?php echo sprintf(_("Download the selection"), '<i class="bi bi-download"></i>'); ?></button>
</div>
</div>
</div>

View file

@ -20,22 +20,22 @@
<?php if(!$disableOrganization): ?>
<ul class="nav justify-content-center nav-tabs mt-2">
<li class="nav-item">
<a class="nav-link active" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"><i class="bi bi-vector-pen"></i> <?php echo _("Sign") ?></a>
<a class="nav-link active" href="<?php echo $REVERSE_PROXY_URL; ?>/signature"> <?php echo sprintf(_("%s Sign"), '<i class="bi bi-vector-pen"></i>'); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"><i class="bi bi-ui-checks-grid"></i> <?php echo _("Organize") ?></a>
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/organization"> <?php echo sprintf(_("%s Organize"), '<i class="bi bi-ui-checks-grid"></i>'); ?></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"><i class="bi bi-tags"></i> <?php echo _("Metadata") ?></a>
<a class="nav-link" href="<?php echo $REVERSE_PROXY_URL; ?>/metadata"> <?php echo sprintf(_("%s Metadata"), '<i class="bi bi-tags"></i>'); ?></a>
</li>
</ul>
<?php endif; ?>
<div class="px-4 py-4 text-center">
<h1 class="display-5 fw-bold mb-0 mt-3"><i class="bi bi-vector-pen"></i> <?php echo _("Sign a PDF") ?></h1>
<h1 class="display-5 fw-bold mb-0 mt-3"><?php echo sprintf(_("%s Sign a PDF"), '<i class="bi bi-vector-pen"></i>'); ?></h1>
<p class="fw-light mb-3 subtitle text-dark text-nowrap" style="overflow: hidden; text-overflow: ellipsis;"><?php echo _("Sign, initial, stamp, complete a document") ?></p>
<div class="col-md-6 col-lg-5 col-xl-4 col-xxl-3 mx-auto">
<div class="col-12">
<label class="form-label mt-3" for="input_pdf_upload"><?php echo _("Choose a PDF <small class=\"opacity-75\" style=\"cursor: help\" title=\"The PDF should not exceed") . " " . round($maxSize / 1024 / 1024) . " " . _("MB and") . " " . $maxPage . _("pages\"><i class=\"bi bi-info-circle\"></i></small></label>") ?>
<label class="form-label mt-3" for="input_pdf_upload"><?php echo _("Choose a PDF"); ?> <small class="opacity-75" style="cursor: help" title="<?php echo _("The PDF should not exceed"); ?> <?php echo round($maxSize / 1024 / 1024) ?> <?php echo _("MB and"); ?> <?php echo $maxPage ?> <?php echo _("pages"); ?>"><i class="bi bi-info-circle"></i></small></label>
<input id="input_pdf_upload" placeholder="<?php echo _("Choose a PDF") ?>" class="form-control form-control-lg" type="file" accept=".pdf,application/pdf" />
<p class="mt-2 small fw-light text-dark"><?php echo _("The PDF will be processed by the server without being stored or saved") ?></p>
<?php if($PDF_DEMO_LINK): ?>
@ -78,35 +78,35 @@
<div id="svg_list_signature" class="list-item-add"></div>
<div class="d-grid gap-2 mb-2 list-item-add">
<input type="radio" class="btn-check" id="radio_svg_signature_add" name="svg_2_add" autocomplete="off" value="signature">
<label data-bs-toggle="modal" data-bs-target="#modalAddSvg" data-type="signature" class="btn btn-outline-secondary text-black text-start btn-add-svg-type" for="radio_svg_signature_add" id="label_svg_signature_add"><i class="bi bi-vector-pen"></i> <?php echo _("Signature"); ?> <small class="text-muted float-end"><?php echo _("Create"); ?></small></label>
<label data-bs-toggle="modal" data-bs-target="#modalAddSvg" data-type="signature" class="btn btn-outline-secondary text-black text-start btn-add-svg-type" for="radio_svg_signature_add" id="label_svg_signature_add"><?php echo sprintf(_("%s Signature"), '<i class="bi bi-vector-pen"></i>'); ?> <small class="text-muted float-end"><?php echo _("Create"); ?></small></label>
</div>
<div id="svg_list_initials" class="list-item-add"></div>
<div class="d-grid gap-2 mb-2 list-item-add">
<input type="radio" class="btn-check" id="radio_svg_initials_add" name="svg_2_add" autocomplete="off" value="intials">
<label data-bs-toggle="modal" data-bs-target="#modalAddSvg" data-type="initials" data-modalnav="#nav-type-tab" class="btn btn-outline-secondary text-black text-start btn-add-svg-type" for="radio_svg_initials_add" id="label_svg_initials_add"><i class="bi bi-type"></i> <?php echo _("Initial"); ?> <small class="text-muted float-end"><?php echo _("Create"); ?></small></label>
<label data-bs-toggle="modal" data-bs-target="#modalAddSvg" data-type="initials" data-modalnav="#nav-type-tab" class="btn btn-outline-secondary text-black text-start btn-add-svg-type" for="radio_svg_initials_add" id="label_svg_initials_add"><?php echo sprintf(_("%s Initial"), '<i class="bi bi-type"></i>'); ?> <small class="text-muted float-end"><?php echo _("Create"); ?></small></label>
</div>
<div id="svg_list_rubber_stamber" class="list-item-add"></div>
<div class="d-grid gap-2 mb-2 list-item-add">
<input type="radio" class="btn-check" id="radio_svg_rubber_stamber_add" name="svg_2_add" autocomplete="off" value="rubber_stamber">
<label data-bs-toggle="modal" data-bs-target="#modalAddSvg" data-type="rubber_stamber" data-modalnav="#nav-import-tab" class="btn btn-outline-secondary text-black text-start btn-add-svg-type" for="radio_svg_rubber_stamber_add" id="label_svg_rubber_stamber_add"><i class="bi bi-card-text"></i> <?php echo _("Stamp"); ?> <small class="text-muted float-end"><?php echo _("Create"); ?></small></label>
<label data-bs-toggle="modal" data-bs-target="#modalAddSvg" data-type="rubber_stamber" data-modalnav="#nav-import-tab" class="btn btn-outline-secondary text-black text-start btn-add-svg-type" for="radio_svg_rubber_stamber_add" id="label_svg_rubber_stamber_add"><?php echo sprintf(_("%s Stamp"), '<i class="bi bi-card-text"></i>'); ?> <small class="text-muted float-end"><?php echo _("Create"); ?></small></label>
</div>
<div class="d-grid gap-2 mb-2 list-item-add">
<input type="radio" class="btn-check" id="radio_svg_text" data-svg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktdGV4dGFyZWEtdCIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNMS41IDIuNUExLjUgMS41IDAgMCAxIDMgMWgxMGExLjUgMS41IDAgMCAxIDEuNSAxLjV2My41NjNhMiAyIDAgMCAxIDAgMy44NzRWMTMuNUExLjUgMS41IDAgMCAxIDEzIDE1SDNhMS41IDEuNSAwIDAgMS0xLjUtMS41VjkuOTM3YTIgMiAwIDAgMSAwLTMuODc0VjIuNXptMSAzLjU2M2EyIDIgMCAwIDEgMCAzLjg3NFYxMy41YS41LjUgMCAwIDAgLjUuNWgxMGEuNS41IDAgMCAwIC41LS41VjkuOTM3YTIgMiAwIDAgMSAwLTMuODc0VjIuNUEuNS41IDAgMCAwIDEzIDJIM2EuNS41IDAgMCAwLS41LjV2My41NjN6TTIgN2ExIDEgMCAxIDAgMCAyIDEgMSAwIDAgMCAwLTJ6bTEyIDBhMSAxIDAgMSAwIDAgMiAxIDEgMCAwIDAgMC0yeiIvPjxwYXRoIGQ9Ik0xMS40MzQgNEg0LjU2Nkw0LjUgNS45OTRoLjM4NmMuMjEtMS4yNTIuNjEyLTEuNDQ2IDIuMTczLTEuNDk1bC4zNDMtLjAxMXY2LjM0M2MwIC41MzctLjExNi42NjUtMS4wNDkuNzQ4VjEyaDMuMjk0di0uNDIxYy0uOTM4LS4wODMtMS4wNTQtLjIxLTEuMDU0LS43NDhWNC40ODhsLjM0OC4wMWMxLjU2LjA1IDEuOTYzLjI0NCAyLjE3MyAxLjQ5NmguMzg2TDExLjQzNCA0eiIvPjwvc3ZnPgo=" name="svg_2_add" autocomplete="off" value="text">
<label draggable="true" id="label_svg_text" class="btn btn-outline-secondary text-black text-start btn-svg" for="radio_svg_text"><i class="bi bi-textarea-t"></i> <?php echo _("Text"); ?></label>
<label draggable="true" id="label_svg_text" class="btn btn-outline-secondary text-black text-start btn-svg" for="radio_svg_text"><?php echo sprintf(_("%s Text"), '<i class="bi bi-textarea-t"></i>'); ?></label>
</div>
<div class="d-grid gap-2 mb-2 list-item-add">
<input type="radio" class="btn-check" id="radio_svg_check" data-height="18" name="svg_2_add" autocomplete="off" value="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktY2hlY2stbGciIHZpZXdCb3g9IjAgMCAxNiAxNiI+CiAgPHBhdGggZD0iTTEyLjczNiAzLjk3YS43MzMuNzMzIDAgMCAxIDEuMDQ3IDBjLjI4Ni4yODkuMjkuNzU2LjAxIDEuMDVMNy44OCAxMi4wMWEuNzMzLjczMyAwIDAgMS0xLjA2NS4wMkwzLjIxNyA4LjM4NGEuNzU3Ljc1NyAwIDAgMSAwLTEuMDYuNzMzLjczMyAwIDAgMSAxLjA0NyAwbDMuMDUyIDMuMDkzIDUuNC02LjQyNWEuMjQ3LjI0NyAwIDAgMSAuMDItLjAyMloiLz4KPC9zdmc+Cg==">
<label draggable="true" id="label_svg_check" class="btn btn-outline-secondary text-black text-start btn-svg" for="radio_svg_check"><i class="bi bi-check-square"></i> <?php echo _("Check box"); ?></label>
<label draggable="true" id="label_svg_check" class="btn btn-outline-secondary text-black text-start btn-svg" for="radio_svg_check"><?php echo sprintf(_("%s Check box"), '<i class="bi bi-check-square"></i>'); ?></label>
</div>
<div id="svg_list" class="d-grid gap-2 mt-2 mb-2 list-item-add"></div>
<div class="d-grid gap-2 mt-2">
<button type="button" id="btn-add-svg" class="btn btn-sm btn-light" data-bs-toggle="modal" data-bs-target="#modalAddSvg"><i class="bi bi-plus-circle"></i> <?php echo _("Create an element"); ?></button>
<button type="button" id="btn-add-svg" class="btn btn-sm btn-light" data-bs-toggle="modal" data-bs-target="#modalAddSvg"><?php echo sprintf(_("%s Create an element"), '<i class="bi bi-plus-circle"></i>'); ?></button>
</div>
<div id="form_block" class="position-absolute bottom-0 pb-2 ps-0 pe-4 w-100">
<?php if(!isset($hash)): ?>
<?php if(!isset($noSharingMode)): ?>
<button class="btn btn-outline-dark w-100" type="button" data-bs-toggle="modal" data-bs-target="#modal-start-share"><i class="bi bi-share"></i> <?php echo _("Share to sign <i class='bi bi-people-fill'></i> with multiple people"); ?></button>
<button class="btn btn-outline-dark w-100" type="button" data-bs-toggle="modal" data-bs-target="#modal-start-share"><?php echo sprintf(_("%s Share to sign %s with multiple people"), '<i class="bi bi-share"></i>',"<i class='bi bi-people-fill'></i>"); ?></button>
<?php endif; ?>
<form id="form_pdf" action="<?php echo $REVERSE_PROXY_URL; ?>/sign" method="post" enctype="multipart/form-data" class="d-none d-sm-none d-md-block">
<input id="input_pdf" name="pdf" type="file" class="d-none" />
@ -116,10 +116,10 @@
<?php elseif(!isset($noSharingMode)): ?>
<div class="d-none d-sm-none d-md-block position-relative">
<a id="btn-signature-help" class="position-absolute top-0 end-0 text-dark" href="" style="z-index: 5;"><i class="bi bi-question-circle"></i></a>
<p id="nblayers_text" class="small d-none mb-2 opacity-75"><?php echo _("You are <span class='badge rounded-pill border border-dark text-dark'><span class='nblayers'>0</span> <i class='bi bi-people-fill'></i></span> to have signed this PDF"); ?></p>
<p id="nblayers_text" class="small d-none mb-2 opacity-75"><?php echo sprintf(_("You are %s to have signed this PDF"), "<span class='badge rounded-pill border border-dark text-dark'><span class='nblayers'>0</span> <i class='bi bi-people-fill'></i></span>"); ?></p>
</div>
<div class="btn-group w-100">
<a id="btn_download" class="btn btn-outline-dark w-100" href="<?php echo $REVERSE_PROXY_URL; ?>/signature/<?php echo $hash ?>/pdf"><i class="bi bi-download"></i> <?php echo _("Download the PDF"); ?>></a>
<a id="btn_download" class="btn btn-outline-dark w-100" href="<?php echo $REVERSE_PROXY_URL; ?>/signature/<?php echo $hash ?>/pdf"><?php echo sprintf(_("%s Download the PDF"), '<i class="bi bi-download"></i>'); ?></a>
<button class="btn btn-outline-dark" type="button" id="btn_share" data-bs-toggle="modal" data-bs-target="#modal-share-informations"><i class="bi bi-share"></i></button>
</div>
<form id="form_pdf" action="<?php echo $REVERSE_PROXY_URL; ?>/signature/<?php echo $hash ?>/save" method="post" enctype="multipart/form-data" class="d-none d-sm-none d-md-block">
@ -132,7 +132,7 @@
</div>
<div class="position-fixed top-0 start-0 bg-white w-100 p-2 shadow-sm d-md-none">
<div class="d-grid gap-2">
<button id="btn_svn_select" class="btn btn-light btn-lg" data-bs-toggle="offcanvas" data-bs-target="#sidebarTools" aria-controls="sidebarTools"><i class="bi bi-hand-index"></i> <?php echo _("Select a signature"); ?></button>
<button id="btn_svn_select" class="btn btn-light btn-lg" data-bs-toggle="offcanvas" data-bs-target="#sidebarTools" aria-controls="sidebarTools"><?php echo sprintf(_("%s Select a signature"), '<i class="bi bi-hand-index"></i>'); ?></button>
</div>
<div id="svg_selected_container" class="text-center d-none position-relative">
<img id="svg_selected" src="" style="height: 48px;" class="img-fluid"/>
@ -197,19 +197,19 @@
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><i class="bi bi-share"></i> <?php echo _("Share this PDF to sign it with several people"); ?> </h5>
<h5 class="modal-title"><?php echo sprintf(_("%s Share this PDF to sign it with several people"), '<i class="bi bi-share"></i>'); ?> </h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p><?php echo _("By enabling PDF sharing, you will be able to provide a link to the people of your choice so that they can sign this PDF."); ?></p>
<p><i class="bi bi-hdd-network"></i> <?php echo _("This sharing requires the PDF to be transferred and stored on the server for future signers to access."); ?></p>
<p class="mb-0"><i class="bi bi-hourglass-split"></i> <?php echo _("The PDF will be kept <select name='duration' form='form_sharing'><option value='+1 year'>for one year</option><option value='+6 month'>for six months</option><option value='+1 month' selected='selected'>for one month</option><option value='+1 week'>for one week</option><option value='+1 day'>for one day</option><option value='+1 hour'>for one hour</option></select> after the last signature."); ?></p>
<p><?php echo sprintf(_("%s This sharing requires the PDF to be transferred and stored on the server for future signers to access."), '<i class="bi bi-hdd-network"></i>'); ?></p>
<p class="mb-0"><?php echo sprintf(_("%s The PDF will be kept"), '<i class="bi bi-hourglass-split"></i>'); ?> <select name='duration' form='form_sharing'><option value='+1 year'><?php echo _("for one year"); ?></option><option value='+6 month'><?php echo _("for six months"); ?></option><option value='+1 month' selected='selected'><?php echo _("for one month"); ?></option><option value='+1 week'><?php echo _("for one week"); ?></option><option value='+1 day'><?php echo _("for one day"); ?></option><option value='+1 hour'><?php echo _("for one hour"); ?></option></select> <?php echo _("after the last signature."); ?></p>
</div>
<div class="modal-footer text-center d-block">
<form id="form_sharing" clas action="<?php echo $REVERSE_PROXY_URL; ?>/share" method="post" enctype="multipart/form-data">
<input id="input_pdf_share" name="pdf" type="file" class="d-none" />
<input id="input_svg_share" name="svg[]" type="file" class="d-none" />
<button class="btn col-9 col-md-6 btn-primary" type="submit" id="save_share"><i class="bi bi-cloud-upload"></i> <?php echo _("Start sharing"); ?></button>
<button class="btn col-9 col-md-6 btn-primary" type="submit" id="save_share"><?php echo sprintf(_("%s Start sharing"), '<i class="bi bi-cloud-upload"></i>'); ?></button>
</form>
</div>
</div>
@ -221,7 +221,7 @@
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><i class="bi bi-people-fill"></i> <?php echo _("Sign this PDF with multiple people"); ?></h5>
<h5 class="modal-title"><?php echo sprintf(_("%s Sign this PDF with multiple people"), '<i class="bi bi-people-fill"></i>'); ?></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
@ -230,7 +230,7 @@
<div class="input-group mb-3">
<span class="input-group-text"><?php echo _("Sharing link"); ?></span>
<input id="input-share-link" type="text" onclick="this.select(); this.setSelectionRange(0, 99999);" readonly="readonly" class="form-control bg-light font-monospace" value="">
<button onclick="navigator.clipboard.writeText(document.getElementById('input-share-link').value); this.innerText = 'Copié !';" autofocus="autofocus" class="btn btn-primary" type="button" id="btn-copy-share-link"><i class="bi bi-clipboard"></i> <?php echo _("Copy"); ?></button>
<button onclick="navigator.clipboard.writeText(document.getElementById('input-share-link').value); this.innerText = 'Copié !';" autofocus="autofocus" class="btn btn-primary" type="button" id="btn-copy-share-link"><i class="bi bi-clipboard"></i> Copier</button>
<script>document.querySelector('#input-share-link').value = document.location.href.replace(/#.*/, '');</script>
</div>
<p class="mb-0"><?php echo _("Each of the signatories can download the latest version of the signed PDF at any time."); ?></p>