diff --git a/src/main/resources/messages.properties b/src/main/resources/messages.properties index e4dbc44c3..e69de29bb 100644 --- a/src/main/resources/messages.properties +++ b/src/main/resources/messages.properties @@ -1,4 +0,0 @@ -greeting=Hello! Welcome to our website! -lang.change=Change the language -lang.eng=English -lang.fr=French \ No newline at end of file diff --git a/src/main/resources/messages_en.properties b/src/main/resources/messages_en.properties new file mode 100644 index 000000000..41dfddca4 --- /dev/null +++ b/src/main/resources/messages_en.properties @@ -0,0 +1,203 @@ +########### +# Generic # +########### +pdfPrompt=Choose PDF +multiPdfPrompt=Choose PDFs (2+) +multiPdfDropPrompt=Select (or drag & drop) all PDFs you require +imgPrompt=Choose Image +genericSubmit=Submit +processTimeWarning=Warning: This process can take up to a minute depending on file-size +pageOrderPrompt=Page Order (Enter a comma-separated list of page numbers) : + +############# +# HOME-PAGE # +############# +home.desc=Your locally hosted one-stop-shop for all your PDF needs. + +home.merge.title=Merge PDFs +home.merge.desc=Easily merge multiple PDFs into one. + +home.split.title=Split PDFs +home.split.desc=Split PDFs into multiple documents + +home.rotate.title=Rotate PDFs +home.rotate.desc=Easily rotate your PDFs. + +home.imageToPdf.title=Image to PDF +home.imageToPdf.desc=Convert a images (PNG, JPEG, GIF) to PDF. + +home.pdfToImage.title=PDF to Image +home.pdfToImage.desc=Convert a PDF to a image. (PNG, JPEG, GIF) + +home.pdfOrganiser.title=PDF Organizer +home.pdfOrganiser.desc=Remove/Rearrange pages in any order + +home.addImage.title=Add image onto PDF +home.addImage.desc=Adds a image onto a set location on the PDF (Work in progress) + +home.watermark.title=Add Watermark +home.watermark.desc=Add a custom watermark to your PDF document. + +home.permissions.title=Change Permissions +home.permissions.desc=Change the permissions of your PDF document + +home.removePages.title=Remove Pages +home.removePages.desc=Delete unwanted pages from your PDF document. + +home.addPassword.title=Add Password +home.addPassword.desc=Encrypt your PDF document with a password. + +home.removePassword.title=Remove Password +home.removePassword.desc=Remove password protection from your PDF document. + +home.compressPdfs.title=Compress PDFs +home.compressPdfs.desc=Compress PDFs to reduce their file size. + + + +#Add image +addImage.title=Add Image +addImage.header=Add image to PDF (Work in progress) + +#compress +compress.title=Compress +compress.header=Compress PDF +compress.compressLevel=Value between 1 and 100 (1 being most reduced) + + + +#merge +merge.title=Merge +merge.header=Merge multiple PDFs (2+) + +#pdfOrganiser +pdfOrganiser.title=Page Organizer +pdfOrganiser.header=PDF Page Organizer +pdfOrganiser.submit=Rearrange Pages + + +#pageRemover +pageRemover.title=Page Remover +pageRemover.header=PDF Page remover +pageRemover.pagesToDelete=Pages to delete (Enter a comma-separated list of page numbers) : +pageRemover.submit=Delete Pages + +#rotate +rotate.title=Rotate +rotate.header=Rotate PDF +rotate.selectAngle=Select rotation angle (in multiples of 90 degrees): +rotate.submit=Rotate + + + + + + + + + + + +#merge +split.title=Split +split.header=Split PDF +split.desc.1=The numbers you select are the page number you wish to do a split on +split.desc.2=As such selecting 1,3,7-8 would split a 10 page document into 6 separate PDFS with: +split.desc.3=Document #1: Page 1 +split.desc.4=Document #2: Page 2 and 3 +split.desc.5=Document #3: Page 4, 5 and 6 +split.desc.6=Document #4: Page 7 +split.desc.7=Document #5: Page 8 +split.desc.8=Document #6: Page 9 and 10 +split.splitPages=Enter pages to split on: + + + +#merge +imageToPDF.title=Image to PDF +imageToPDF.header=Image to PDF +imageToPDF.submit=Convert + +#pdfToImage +pdfToImage.title=PDF to Image +pdfToImage.header=PDF to Image +pdfToImage.selectText=Image Format +pdfToImage.submit=Convert + +#addPassword +addPassword.title=Add Password +addPassword.header=Add password (Encrypt) +addPassword.selectText.1=Select PDF to encrypt +addPassword.selectText.2=Password +addPassword.selectText.3=Encryption Key Length +addPassword.selectText.4=Higher values are stronger, but lower values have better compatibility. +addPassword.selectText.5=Permissions to set +addPassword.selectText.6=Prevent assembly of document +addPassword.selectText.7=Prevent content extraction +addPassword.selectText.8=Prevent extraction for accessibility +addPassword.selectText.9=Prevent filling in form +addPassword.selectText.10=Prevent modification +addPassword.selectText.11=Prevent annotation modification +addPassword.selectText.12=Prevent printing +addPassword.selectText.13=Prevent printing different formats +addPassword.submit=Encrypt + +#merge +watermark.title=Add Watermark +watermark.header=Add Watermark +watermark.selectText.1=Select PDF to add watermark to: +watermark.selectText.1=Watermark Text: +watermark.selectText.1=Font Size: +watermark.selectText.1=Rotation (0-360): +watermark.selectText.1=widthSpacer (Space between each watermark horizontally): +watermark.selectText.1=heightSpacer (Space between each watermark vertically): +watermark.submit=Add Watermark + + +th:text="#{addPassword.selectText.1}" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/templates/add-image.html b/src/main/resources/templates/add-image.html index 111775dd7..4cb56ddae 100644 --- a/src/main/resources/templates/add-image.html +++ b/src/main/resources/templates/add-image.html @@ -2,7 +2,7 @@ - + @@ -14,7 +14,7 @@
-

Add image to PDF (Work in progress)

+

@@ -24,12 +24,12 @@
+ class="custom-file-label" for="fileInput" th:text="#{pdfPrompt}">
+ class="custom-file-label" for="fileInput2" th:text="#{imgPrompt}">
Y
- + diff --git a/src/main/resources/templates/compress-pdf.html b/src/main/resources/templates/compress-pdf.html index 7631ba4e6..23dda95fc 100644 --- a/src/main/resources/templates/compress-pdf.html +++ b/src/main/resources/templates/compress-pdf.html @@ -2,7 +2,7 @@ - +
@@ -13,25 +13,23 @@
-

Compress PDF

+

-

Warning: This process can take up to a minute depending on - file-size

+

+ class="custom-file-label" for="fileInput" th:text="#{pdfPrompt}">
-
- +
diff --git a/src/main/resources/templates/convert/img-to-pdf.html b/src/main/resources/templates/convert/img-to-pdf.html index 48d8427ba..cdb5bc049 100644 --- a/src/main/resources/templates/convert/img-to-pdf.html +++ b/src/main/resources/templates/convert/img-to-pdf.html @@ -1,7 +1,7 @@ - +
@@ -12,18 +12,18 @@
-

Image to PDF

+

+ class="custom-file-label" for="fileInput" th:text="#{imgPrompt}">


- +
diff --git a/src/main/resources/templates/convert/pdf-to-img.html b/src/main/resources/templates/convert/pdf-to-img.html index c37e0c812..291507b38 100644 --- a/src/main/resources/templates/convert/pdf-to-img.html +++ b/src/main/resources/templates/convert/pdf-to-img.html @@ -1,7 +1,7 @@ - +
@@ -13,23 +13,23 @@
-

PDF to Image

+

+ class="custom-file-label" for="fileInput" th:text="#{pdfPrompt}">
-
- +
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index d974f2664..c8904f6be 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -33,30 +33,29 @@

Stirling PDF

-

Your locally hosted one-stop-shop for all your - PDF needs. (Made 100% in ChatGPT in 1 day as a experiment)

+

-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
+
diff --git a/src/main/resources/templates/merge-pdfs.html b/src/main/resources/templates/merge-pdfs.html index 9337393a5..1d5d08f9b 100644 --- a/src/main/resources/templates/merge-pdfs.html +++ b/src/main/resources/templates/merge-pdfs.html @@ -1,7 +1,7 @@ - +
@@ -12,22 +12,22 @@
-

Merge multiple PDFs (2+)

+

- +
+ class="custom-file-label" th:text="#{pdfPrompt}">s
    - +
    diff --git a/src/main/resources/templates/pdf-organizer.html b/src/main/resources/templates/pdf-organizer.html index 10d7e1a85..01c5615c6 100644 --- a/src/main/resources/templates/pdf-organizer.html +++ b/src/main/resources/templates/pdf-organizer.html @@ -1,7 +1,7 @@ - +
    @@ -12,25 +12,21 @@
    -

    PDF Page Organizer

    - - - +

    +
    + class="custom-file-label" for="fileInput" th:text="#{pdfPrompt}">
    -
    - +
    diff --git a/src/main/resources/templates/remove-pages.html b/src/main/resources/templates/remove-pages.html index 06e6c25ee..ac6e573f5 100644 --- a/src/main/resources/templates/remove-pages.html +++ b/src/main/resources/templates/remove-pages.html @@ -1,7 +1,7 @@ - +
    @@ -12,23 +12,21 @@
    -

    PDF Page remover

    +

    + class="custom-file-label" for="fileInput" th:text="#{pdfPrompt}">
    -
    - +
    diff --git a/src/main/resources/templates/rotate-pdf.html b/src/main/resources/templates/rotate-pdf.html index cd17e8aaf..95a76ad5a 100644 --- a/src/main/resources/templates/rotate-pdf.html +++ b/src/main/resources/templates/rotate-pdf.html @@ -2,7 +2,7 @@ - +
    @@ -13,7 +13,7 @@
    -

    Rotate PDF

    +

    @@ -22,11 +22,10 @@
    + class="custom-file-label" for="fileInput" th:text="#{pdfPrompt}">
    - @@ -34,7 +33,7 @@
    - + diff --git a/src/main/resources/templates/security/add-password.html b/src/main/resources/templates/security/add-password.html index ee1064689..fca33e653 100644 --- a/src/main/resources/templates/security/add-password.html +++ b/src/main/resources/templates/security/add-password.html @@ -1,7 +1,7 @@ - +
    @@ -11,85 +11,78 @@
    -

    Add password (Encrypt)

    +

    - +
    + class="custom-file-label" th:text="#{pdfPrompt}">
    -
    - - Higher values are - stronger, but lower values have better compatibility. +
    - +
    + class="form-check-label" for="canAssembleDocument" th:text="#{addPassword.selectText.6}">
    + class="form-check-label" for="canExtractContent" th:text="#{addPassword.selectText.7}">
    + class="form-check-label" for="canExtractForAccessibility" th:text="#{addPassword.selectText.8}">
    + class="form-check-label" for="canFillInForm" th:text="#{addPassword.selectText.9}">
    + for="canModify" th:text="#{addPassword.selectText.10}">
    + class="form-check-label" for="canModifyAnnotations" th:text="#{addPassword.selectText.11}">
    + for="canPrint" th:text="#{addPassword.selectText.12}">
    + class="form-check-label" for="canPrintFaithful" th:text="#{addPassword.selectText.13}">

    - +
    diff --git a/src/main/resources/templates/security/add-watermark.html b/src/main/resources/templates/security/add-watermark.html index c67d8ee13..87974b323 100644 --- a/src/main/resources/templates/security/add-watermark.html +++ b/src/main/resources/templates/security/add-watermark.html @@ -1,7 +1,7 @@ - +
    @@ -11,39 +11,39 @@
    -

    Add Watermark

    +

    - +
    + class="custom-file-label" th:text="#{pdfPrompt}">
    - +
    - +
    - +
    - +
    - +
    - +
    diff --git a/src/main/resources/templates/security/remove-password.html b/src/main/resources/templates/security/remove-password.html index af3d61607..d760bb920 100644 --- a/src/main/resources/templates/security/remove-password.html +++ b/src/main/resources/templates/security/remove-password.html @@ -20,7 +20,7 @@
    + class="custom-file-label" th:text="#{pdfPrompt}">
    diff --git a/src/main/resources/templates/split-pdfs.html b/src/main/resources/templates/split-pdfs.html index 7239d9857..05a76086c 100644 --- a/src/main/resources/templates/split-pdfs.html +++ b/src/main/resources/templates/split-pdfs.html @@ -1,7 +1,7 @@ - + @@ -14,33 +14,31 @@
    -

    Split PDF

    -

    The numbers you select are the page number you wish to do a - split on

    -

    As such selecting 1,3,7-8 would split a 10 page document into - 6 separate PDFS with:

    -

    Document #1: Page 1

    -

    Document #2: Page 2 and 3

    -

    Document #3: Page 4, 5 and 6

    -

    Document #4: Page 7

    -

    Document #5: Page 8

    -

    Document #6: Page 9 and 10

    +

    +

    +

    +

    +

    +

    +

    +

    +

    + class="custom-file-label" for="fileInput" th:text="#{pdfPrompt}">
    -

    - +