Skip to content

Commit

Permalink
add translatable string
Browse files Browse the repository at this point in the history
  • Loading branch information
tale-fau committed Sep 25, 2023
1 parent bcc366f commit 42f30ac
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 32 deletions.
24 changes: 14 additions & 10 deletions locale/application.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-25 12:26+0200\n"
"POT-Creation-Date: 2023-09-25 15:43+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"
Expand All @@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#: app.php:59
#: app.php:60
msgid "en"
msgstr ""

Expand Down Expand Up @@ -46,6 +46,14 @@ msgstr ""
msgid "Choose a PDF"
msgstr ""

#: templates/compress.html.php:29 templates/organization.html.php:28
msgid "The PDF must not exceed "
msgstr ""

#: templates/compress.html.php:29 templates/organization.html.php:28
msgid "Mb"
msgstr ""

#: templates/compress.html.php:31 templates/signature.html.php:28
msgid "The PDF will be processed by the server without being stored or saved"
msgstr ""
Expand Down Expand Up @@ -150,14 +158,6 @@ msgstr ""
msgid "Merge, sort, rotate, delete, extract pages"
msgstr ""

#: templates/organization.html.php:28
msgid "The PDF must not exceed "
msgstr ""

#: templates/organization.html.php:28
msgid "Mb"
msgstr ""

#: templates/organization.html.php:30
msgid ""
"The PDF will be processed by the server without being retained or stored"
Expand Down Expand Up @@ -273,6 +273,10 @@ msgstr ""
msgid "Download this page"
msgstr ""

#: templates/organization.html.php:145
msgid "Page"
msgstr ""

#: templates/signature.html.php:22
#, php-format
msgid "%s Sign a PDF"
Expand Down
24 changes: 14 additions & 10 deletions locale/ar/LC_MESSAGES/application.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-25 12:26+0200\n"
"POT-Creation-Date: 2023-09-25 15:39+0200\n"
"PO-Revision-Date: 2023-09-25 08:01+0000\n"
"Last-Translator: ButterflyOfFire <boffire@users.noreply.hosted.weblate.org>\n"
"Language-Team: Arabic <https://hosted.weblate.org/projects/signature-pdf/"
Expand All @@ -20,7 +20,7 @@ msgstr ""
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
"X-Generator: Weblate 5.1-dev\n"

#: app.php:59
#: app.php:60
msgid "en"
msgstr "ar"

Expand Down Expand Up @@ -49,6 +49,14 @@ msgstr "تخفيف حجم ملف PDF"
msgid "Choose a PDF"
msgstr "إختر ملف PDF"

#: templates/compress.html.php:29 templates/organization.html.php:28
msgid "The PDF must not exceed "
msgstr "لا يجب أن يتجاوز حجم ملف الـ PDF "

#: templates/compress.html.php:29 templates/organization.html.php:28
msgid "Mb"
msgstr "ميغابايت"

#: templates/compress.html.php:31 templates/signature.html.php:28
msgid "The PDF will be processed by the server without being stored or saved"
msgstr "سيتم معالجة ملف الـ PDF على الخادم دون الاحتفاظ به أو تخزينه"
Expand Down Expand Up @@ -153,14 +161,6 @@ msgstr "%s تنظيم الـ PDF"
msgid "Merge, sort, rotate, delete, extract pages"
msgstr "دمج، فرز، تدوير، حذف، استخراج الصفحات"

#: templates/organization.html.php:28
msgid "The PDF must not exceed "
msgstr "لا يجب أن يتجاوز حجم ملف الـ PDF "

#: templates/organization.html.php:28
msgid "Mb"
msgstr "ميغابايت"

#: templates/organization.html.php:30
msgid ""
"The PDF will be processed by the server without being retained or stored"
Expand Down Expand Up @@ -276,6 +276,10 @@ msgstr "تدوير هذه الصفحة"
msgid "Download this page"
msgstr "تنزيل هذه الصفحة"

#: templates/organization.html.php:145
msgid "Page"
msgstr ""

#: templates/signature.html.php:22
#, php-format
msgid "%s Sign a PDF"
Expand Down
24 changes: 14 additions & 10 deletions locale/fr/LC_MESSAGES/application.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-25 12:26+0200\n"
"POT-Creation-Date: 2023-09-25 15:39+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/"
Expand All @@ -20,7 +20,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 5.0.1-dev\n"

#: app.php:59
#: app.php:60
msgid "en"
msgstr "fr"

Expand Down Expand Up @@ -49,6 +49,14 @@ msgstr "Réduire la taille d'un PDF"
msgid "Choose a PDF"
msgstr "Choisir un PDF"

#: templates/compress.html.php:29 templates/organization.html.php:28
msgid "The PDF must not exceed "
msgstr "Le PDF ne doit pas dépasser "

#: templates/compress.html.php:29 templates/organization.html.php:28
msgid "Mb"
msgstr "Mo"

#: templates/compress.html.php:31 templates/signature.html.php:28
msgid "The PDF will be processed by the server without being stored or saved"
msgstr "Le PDF sera traité par le serveur sans être conservé no stocké"
Expand Down Expand Up @@ -153,14 +161,6 @@ msgstr "%s Organiser des PDF"
msgid "Merge, sort, rotate, delete, extract pages"
msgstr "Fusionner, trier, pivoter, supprimer, extraire des pages"

#: templates/organization.html.php:28
msgid "The PDF must not exceed "
msgstr "Le PDF ne doit pas dépasser "

#: templates/organization.html.php:28
msgid "Mb"
msgstr "Mo"

#: templates/organization.html.php:30
msgid ""
"The PDF will be processed by the server without being retained or stored"
Expand Down Expand Up @@ -277,6 +277,10 @@ msgstr "Tourner cette page"
msgid "Download this page"
msgstr "Télécharger cette page"

#: templates/organization.html.php:145
msgid "Page"
msgstr "Page"

#: templates/signature.html.php:22
#, php-format
msgid "%s Sign a PDF"
Expand Down
2 changes: 1 addition & 1 deletion public/js/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ var loadPDF = async function(pdfBlob, filename, pdfIndex) {
pageHTML += '<div title="' + trad['Move here'] + '" class="position-absolute start-50 top-50 translate-middle p-2 ps-4 pe-4 container-resize btn-drag-here d-none"><i class="bi bi-arrows-expand-vertical"></i></div>';
pageHTML += '<div title="' + trad['Turn this page'] + '" class="position-absolute top-50 end-0 translate-middle-y p-2 ps-3 pe-3 me-2 rounded-circle container-rotate btn-rotate d-none"><i class="bi bi-arrow-clockwise"></i></div>';
pageHTML += '<div title="' + trad['Download this page'] + '" class="position-absolute bottom-0 start-50 translate-middle-x p-2 ps-3 pe-3 mb-3 rounded-circle btn-download d-none"><i class="bi bi-download"></i></div>';
pageHTML += '<p class="page-title position-absolute text-center w-100 ps-2 pe-2 pb-0 pt-0 mb-1 bg-white opacity-75 d-none" style="bottom: -4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;">Page '+page.pageNumber+' - '+filename+'</p>';
pageHTML += '<p class="page-title position-absolute text-center w-100 ps-2 pe-2 pb-0 pt-0 mb-1 bg-white opacity-75 d-none" style="bottom: -4px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;">' + trad['page'] + ' ' + page.pageNumber + ' - ' + filename + '</p>';
pageHTML += '<input form="form_pdf" class="checkbox-page d-none" role="switch" type="checkbox" checked="checked" value="'+pdfLetter+page.pageNumber+'" />';
pageHTML += '<input type="hidden" class="input-rotate" value="0" id="input_rotate_'+pageIndex+'" />';
pageHTML += '<input type="checkbox" class="input-select d-none" value="'+pdfLetter+page.pageNumber+'" id="input_select_'+pageIndex+'" />';
Expand Down
2 changes: 1 addition & 1 deletion templates/organization.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
'Move here' => _('Move here'),
'Turn this page' => _('Turn this page'),
'Download this page' => _('Download this page'),

'Page' => _('Page')
]); ?>;
</script>
<script src="<?php echo $REVERSE_PROXY_URL; ?>/js/organization.js?<?php echo ($COMMIT) ? $COMMIT : filemtime($ROOT."/public/js/organization.js") ?>"></script>
Expand Down

0 comments on commit 42f30ac

Please sign in to comment.