From b50f45c2b1757bff26f7b6609c429f7cb598c905 Mon Sep 17 00:00:00 2001 From: tale-fau Date: Mon, 18 Sep 2023 17:58:23 +0200 Subject: [PATCH] add js translation (#48) --- locale/application.pot | 41 +++++++++++++++++--- locale/fr/LC_MESSAGES/application.po | 56 ++++++++++++++++++++++++---- public/js/organization.js | 20 +++++----- templates/organization.html.php | 11 +++++- 4 files changed, 104 insertions(+), 24 deletions(-) diff --git a/locale/application.pot b/locale/application.pot index 1cde9b7..5b36aec 100644 --- a/locale/application.pot +++ b/locale/application.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-14 12:38+0200\n" +"POT-Creation-Date: 2023-09-18 17:56+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -168,12 +168,9 @@ msgstr "" msgid "%s Add a PDF" msgstr "" -#: templates/organization.html.php:91 templates/organization.html.php:122 -msgid "No" -msgstr "" - #: templates/organization.html.php:91 -msgid "page selected" +#, php-format +msgid "%s page(s) selected" msgstr "" #: templates/organization.html.php:93 @@ -206,6 +203,10 @@ msgstr "" msgid "%s Download the full PDF" msgstr "" +#: templates/organization.html.php:122 +msgid "No" +msgstr "" + #: templates/organization.html.php:122 msgid "page" msgstr "" @@ -228,6 +229,34 @@ msgstr "" msgid "PDF documents" msgstr "" +#: templates/organization.html.php:171 +msgid "Select this page" +msgstr "" + +#: templates/organization.html.php:172 +msgid "Delete this page" +msgstr "" + +#: templates/organization.html.php:173 +msgid "Restore this page" +msgstr "" + +#: templates/organization.html.php:174 +msgid "Move this page" +msgstr "" + +#: templates/organization.html.php:175 +msgid "Move here" +msgstr "" + +#: templates/organization.html.php:176 +msgid "Turn this page" +msgstr "" + +#: templates/organization.html.php:177 +msgid "Download this page" +msgstr "" + #: templates/signature.html.php:45 #, php-format msgid "%s Sign a PDF" diff --git a/locale/fr/LC_MESSAGES/application.po b/locale/fr/LC_MESSAGES/application.po index c662408..b285dac 100644 --- a/locale/fr/LC_MESSAGES/application.po +++ b/locale/fr/LC_MESSAGES/application.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-09-14 12:15+0200\n" +"POT-Creation-Date: 2023-09-18 17:56+0200\n" "PO-Revision-Date: 2023-09-07 13:19+0000\n" "Last-Translator: 24ème \n" "Language-Team: French '; pageHTML += ''; - pageHTML += '
'; - pageHTML += '
'; - pageHTML += '
'; - pageHTML += '
'; - pageHTML += '
'; - pageHTML += '
'; - pageHTML += '
'; - pageHTML += '
'; - pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; + pageHTML += '
'; pageHTML += '

Page '+page.pageNumber+' - '+filename+'

'; pageHTML += ''; pageHTML += ''; @@ -511,7 +511,7 @@ var updateGlobalState = function() { button.classList.remove('btn-outline-primary'); button.setAttribute('disabled', 'disabled'); }); - document.querySelector('#container_btn_select .card-header span').innerText = "Aucune"; + document.querySelector('#container_btn_select .card-header span').innerText = "0"; document.querySelector('#container_btn_select .card-footer').classList.add('d-none'); document.querySelector('#top_bar_action').classList.remove('d-none'); document.querySelector('#top_bar_action_selection').classList.add('d-none'); diff --git a/templates/organization.html.php b/templates/organization.html.php index abed63b..cec8eba 100644 --- a/templates/organization.html.php +++ b/templates/organization.html.php @@ -88,7 +88,7 @@
-
+
0'); ?>
@@ -167,6 +167,15 @@