Add Remove Password UI into V2 (#4214)

# Description of Changes
- Add UI for Remove Password tool
- Fix more translation warnings that were being thrown in the console
- Add an encrypted PDF thumbnail and refactor thumbnail generation code
This commit is contained in:
James Brunton
2025-08-18 15:26:29 +01:00
committed by GitHub
parent 4c17c520d7
commit acbebd67a3
20 changed files with 806 additions and 163 deletions
+36 -12
View File
@@ -35,11 +35,20 @@
"true": "True",
"false": "False",
"unknown": "Unknown",
"app": {
"description": "The Free Adobe Acrobat alternative (10M+ Downloads)"
},
"save": "Save",
"saveToBrowser": "Save to Browser",
"download": "Download",
"editYourNewFiles": "Edit your new file(s)",
"close": "Close",
"fileSelected": "Selected: {{filename}}",
"filesSelected": "{{count}} files selected",
"files": {
"title": "Files",
"placeholder": "Select a PDF file in the main view to get started"
},
"noFavourites": "No favourites added",
"downloadComplete": "Download Complete",
"bored": "Bored Waiting?",
@@ -119,6 +128,7 @@
"page": "Page",
"pages": "Pages",
"loading": "Loading...",
"review": "Review",
"addToDoc": "Add to Document",
"reset": "Reset",
"apply": "Apply",
@@ -811,16 +821,6 @@
"removePages": {
"tags": "Remove pages,delete pages"
},
"removePassword": {
"tags": "secure,Decrypt,security,unpassword,delete password",
"title": "Remove password",
"header": "Remove password (Decrypt)",
"selectText": {
"1": "Select PDF to Decrypt",
"2": "Password"
},
"submit": "Remove"
},
"compressPdfs": {
"tags": "squish,small,tiny"
},
@@ -863,6 +863,7 @@
"ocr": {
"tags": "recognition,text,image,scan,read,identify,detection,editable",
"title": "OCR / Scan Cleanup",
"desc": "Cleanup scans and detects text from images within a PDF and re-adds it as text.",
"header": "Cleanup Scans / OCR (Optical Character Recognition)",
"selectText": {
"1": "Select languages that are to be detected within the PDF (Ones listed are the ones currently detected):",
@@ -1423,6 +1424,7 @@
},
"compress": {
"title": "Compress",
"desc": "Compress PDFs to reduce their file size.",
"header": "Compress PDF",
"credit": "This service uses qpdf for PDF Compress/Optimisation.",
"grayscale": {
@@ -1781,8 +1783,8 @@
"error": {
"failed": "An error occurred while encrypting the PDF."
},
"title": "Passwords & Encryption",
"passwords": {
"stepTitle": "Passwords & Encryption",
"completed": "Passwords configured",
"user": {
"label": "User Password",
@@ -1822,6 +1824,7 @@
"bullet3": "256-bit: Maximum security, requires modern viewers"
},
"permissions": {
"title": "Change Permissions",
"text": "These permissions control what users can do with the PDF. Most effective when combined with an owner password."
}
}
@@ -1831,7 +1834,6 @@
"desc": "Change document restrictions and permissions.",
"completed": "Permissions changed",
"submit": "Change Permissions",
"title": "Document Permissions",
"error": {
"failed": "An error occurred while changing PDF permissions."
},
@@ -1875,5 +1877,27 @@
"text": "To make these permissions unchangeable, use the Add Password tool to set an owner password."
}
}
},
"removePassword": {
"title": "Remove Password",
"desc": "Remove password protection from your PDF document.",
"tags": "secure,Decrypt,security,unpassword,delete password",
"password": {
"stepTitle": "Remove Password",
"label": "Current Password",
"placeholder": "Enter current password",
"completed": "Password configured"
},
"filenamePrefix": "decrypted",
"error": {
"failed": "An error occurred while removing the password from the PDF."
},
"tooltip": {
"description": "Removing password protection requires the password that was used to encrypt the PDF. This will decrypt the document, making it accessible without a password."
},
"submit": "Remove Password",
"results": {
"title": "Decrypted PDFs"
}
}
}
+36 -10
View File
@@ -35,11 +35,20 @@
"true": "True",
"false": "False",
"unknown": "Unknown",
"app": {
"description": "The Free Adobe Acrobat alternative (10M+ Downloads)"
},
"save": "Save",
"saveToBrowser": "Save to Browser",
"download": "Download",
"editYourNewFiles": "Edit your new file(s)",
"close": "Close",
"fileSelected": "Selected: {{filename}}",
"filesSelected": "{{count}} files selected",
"files": {
"title": "Files",
"placeholder": "Select a PDF file in the main view to get started"
},
"noFavourites": "No favorites added",
"downloadComplete": "Download Complete",
"bored": "Bored Waiting?",
@@ -119,6 +128,7 @@
"page": "Page",
"pages": "Pages",
"loading": "Loading...",
"review": "Review",
"addToDoc": "Add to Document",
"reset": "Reset",
"apply": "Apply",
@@ -752,16 +762,6 @@
"removePages": {
"tags": "Remove pages,delete pages"
},
"removePassword": {
"tags": "secure,Decrypt,security,unpassword,delete password",
"title": "Remove password",
"header": "Remove password (Decrypt)",
"selectText": {
"1": "Select PDF to Decrypt",
"2": "Password"
},
"submit": "Remove"
},
"compressPdfs": {
"tags": "squish,small,tiny"
},
@@ -804,6 +804,7 @@
"ocr": {
"tags": "recognition,text,image,scan,read,identify,detection,editable",
"title": "OCR / Scan Cleanup",
"desc": "Cleanup scans and detects text from images within a PDF and re-adds it as text.",
"header": "Cleanup Scans / OCR (Optical Character Recognition)",
"selectText": {
"1": "Select languages that are to be detected within the PDF (Ones listed are the ones currently detected):",
@@ -1635,6 +1636,8 @@
}
},
"addPassword": {
"title": "Add Password",
"desc": "Encrypt your PDF document with a password.",
"completed": "Password protection applied",
"submit": "Encrypt",
"filenamePrefix": "encrypted",
@@ -1686,6 +1689,7 @@
"bullet3": "256-bit: Maximum security, requires modern viewers"
},
"permissions": {
"title": "Change Permissions",
"text": "These permissions control what users can do with the PDF. Most effective when combined with an owner password."
}
}
@@ -1737,5 +1741,27 @@
"text": "To make these permissions unchangeable, use the Add Password tool to set an owner password."
}
}
},
"removePassword": {
"title": "Remove Password",
"desc": "Remove password protection from your PDF document.",
"tags": "secure,Decrypt,security,unpassword,delete password",
"password": {
"stepTitle": "Remove Password",
"label": "Current Password",
"placeholder": "Enter current password",
"completed": "Password configured"
},
"filenamePrefix": "decrypted",
"error": {
"failed": "An error occurred while removing the password from the PDF."
},
"tooltip": {
"description": "Removing password protection requires the password that was used to encrypt the PDF. This will decrypt the document, making it accessible without a password."
},
"submit": "Remove Password",
"results": {
"title": "Decrypted PDFs"
}
}
}