From 6d8ee6915a3eb56f60bca42e4ac6f0b247cb3990 Mon Sep 17 00:00:00 2001 From: tale-fau Date: Fri, 8 Sep 2023 12:22:29 +0200 Subject: [PATCH] change names for clarity + set up available language list (#48) --- app.php | 8 +- locale/application.pot | 419 ++++++++++++++++++ .../LC_MESSAGES/application.mo} | Bin .../LC_MESSAGES/application.po} | 0 4 files changed, 425 insertions(+), 2 deletions(-) create mode 100644 locale/application.pot rename locale/{fr_FR/LC_MESSAGES/myapp.mo => fr/LC_MESSAGES/application.mo} (100%) rename locale/{fr_FR/LC_MESSAGES/myapp.po => fr/LC_MESSAGES/application.po} (100%) diff --git a/app.php b/app.php index e19efff..fa83bc4 100644 --- a/app.php +++ b/app.php @@ -6,6 +6,10 @@ if(getenv("DEBUG")) { $f3->set('DEBUG', getenv("DEBUG")); } +$f3->set('LANGUAGES', + ['fr' => 'Français', + 'en' => 'English']); + $f3->set('XFRAME', null); // Allow use in an iframe $f3->set('ROOT', __DIR__); $f3->set('UI', $f3->get('ROOT')."/templates/"); @@ -30,8 +34,8 @@ if($f3->get('DISABLE_ORGANIZATION')) { $f3->set('disableOrganization', $f3->get('DISABLE_ORGANIZATION')); } -bindtextdomain('myapp', $f3->get('ROOT')."/locale/"); -textdomain('myapp'); +bindtextdomain('application', $f3->get('ROOT')."/locale/"); +textdomain('application'); $f3->route('GET /', diff --git a/locale/application.pot b/locale/application.pot new file mode 100644 index 0000000..afc8d5d --- /dev/null +++ b/locale/application.pot @@ -0,0 +1,419 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-09-08 10:41+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"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 +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" +msgstr "" + +#: templates/metadata.html.php:27 templates/organization.html.php:27 +#: templates/signature.html.php:26 +msgid "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 "Edit metadata" +msgstr "" + +#: templates/metadata.html.php:35 +msgid "Add, edit, or remove metadata from a PDF" +msgstr "" + +#: templates/metadata.html.php:38 templates/metadata.html.php:39 +#: templates/organization.html.php:38 templates/organization.html.php:39 +#: templates/signature.html.php:39 +msgid "Choose a PDF" +msgstr "" + +#: templates/metadata.html.php:42 templates/organization.html.php:42 +#: templates/signature.html.php:42 +msgid "Test with a demo PDF" +msgstr "" + +#: templates/metadata.html.php:48 templates/organization.html.php:48 +#: templates/signature.html.php:48 +msgid "Free open-source software" +msgstr "" + +#: templates/metadata.html.php:48 templates/organization.html.php:48 +#: templates/signature.html.php:48 +msgid "under AGPL-3.0 license" +msgstr "" + +#: templates/metadata.html.php:48 templates/organization.html.php:48 +#: templates/signature.html.php:48 +msgid "see the source code" +msgstr "" + +#: templates/metadata.html.php:55 +msgid "List of PDF metadata" +msgstr "" + +#: templates/metadata.html.php:61 +msgid "Add new metadata" +msgstr "" + +#: templates/metadata.html.php:64 +msgid "Key" +msgstr "" + +#: templates/metadata.html.php:66 +msgid "Value" +msgstr "" + +#: templates/metadata.html.php:68 +msgid "Add" +msgstr "" + +#: templates/metadata.html.php:74 +msgid "Close this PDF and return to the home page" +msgstr "" + +#: templates/metadata.html.php:76 +msgid "" +"Edit metadata" +msgstr "" + +#: templates/metadata.html.php:86 +msgid "Save and download the PDF" +msgstr "" + +#: templates/metadata.html.php:92 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:34 +msgid "Sign a PDF" +msgstr "" + +#: templates/signature.html.php:35 +msgid "Sign, initial, stamp, complete a document" +msgstr "" + +#: templates/signature.html.php:38 +msgid "" +"Choose a PDF " +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:55 +msgid "How to sign?" +msgstr "" + +#: templates/signature.html.php:56 +msgid "By clicking directly on the document page" +msgstr "" + +#: templates/signature.html.php:56 +msgid "to insert the selected item in the right column" +msgstr "" + +#: templates/signature.html.php:56 +msgid "signature, initial, text, stamp, etc ..." +msgstr "" + +#: templates/signature.html.php:67 +msgid "Close this PDF and return to the homepage" +msgstr "" + +#: templates/signature.html.php:69 +msgid "PDF Signature" +msgstr "" + +#: templates/signature.html.php:69 +msgid "This PDF is shared with others to be signed by multiple people" +msgstr "" + +#: templates/signature.html.php:76 +msgid "Keep the selection active" +msgstr "" + +#: templates/signature.html.php:81 +msgid "Signature" +msgstr "" + +#: templates/signature.html.php:81 templates/signature.html.php:86 +#: templates/signature.html.php:91 templates/signature.html.php:189 +msgid "Create" +msgstr "" + +#: templates/signature.html.php:86 +msgid "Initial" +msgstr "" + +#: templates/signature.html.php:91 +msgid "Stamp" +msgstr "" + +#: templates/signature.html.php:95 +msgid "Text" +msgstr "" + +#: templates/signature.html.php:99 +msgid "Check box" +msgstr "" + +#: templates/signature.html.php:104 +msgid "Create an element" +msgstr "" + +#: templates/signature.html.php:109 +msgid "Share to sign with multiple people" +msgstr "" + +#: templates/signature.html.php:114 templates/signature.html.php:154 +msgid "Download the signed PDF" +msgstr "" + +#: templates/signature.html.php:119 +msgid "" +"You are 0 to have " +"signed this PDF" +msgstr "" + +#: templates/signature.html.php:127 templates/signature.html.php:152 +msgid "Transmit my signature" +msgstr "" + +#: templates/signature.html.php:135 +msgid "Select a signature" +msgstr "" + +#: templates/signature.html.php:164 +msgid "Draw" +msgstr "" + +#: templates/signature.html.php:164 +msgid "freehand" +msgstr "" + +#: templates/signature.html.php:165 +msgid "Enter" +msgstr "" + +#: templates/signature.html.php:165 +msgid "text" +msgstr "" + +#: templates/signature.html.php:166 +msgid "Import" +msgstr "" + +#: templates/signature.html.php:166 +msgid "an image" +msgstr "" + +#: templates/signature.html.php:170 +msgid "Clear signature" +msgstr "" + +#: templates/signature.html.php:174 +msgid "My signature" +msgstr "" + +#: templates/signature.html.php:200 +msgid "Share this PDF to sign it with several people" +msgstr "" + +#: 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 "" + +#: 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 "" + +#: templates/signature.html.php:206 +msgid "" +"The PDF will be kept