From 6662115d10a4b855bd8282a9bdb9842b3467fa8c Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sun, 5 Feb 2023 12:54:48 +0000 Subject: [PATCH] Lang setup (#35) --- .gitignore | 3 +- HowToAddNewLanguage.md | 29 +++ .../stirling/software/SPDF/config/Beans.java | 35 +++ src/main/resources/messages.properties | 0 src/main/resources/messages_en_GB.properties | 209 ++++++++++++++++++ src/main/resources/messages_en_US.properties | 209 ++++++++++++++++++ src/main/resources/templates/add-image.html | 10 +- .../resources/templates/compress-pdf.html | 14 +- .../templates/convert/img-to-pdf.html | 8 +- .../templates/convert/pdf-to-img.html | 10 +- .../resources/templates/fragments/card.html | 2 +- .../resources/templates/fragments/navbar.html | 97 +++++--- src/main/resources/templates/home.html | 29 ++- src/main/resources/templates/merge-pdfs.html | 10 +- .../resources/templates/pdf-organizer.html | 16 +- .../resources/templates/remove-pages.html | 12 +- src/main/resources/templates/rotate-pdf.html | 11 +- .../templates/security/add-password.html | 41 ++-- .../templates/security/add-watermark.html | 20 +- .../security/change-permissions.html | 39 ++-- .../templates/security/remove-password.html | 14 +- src/main/resources/templates/split-pdfs.html | 28 ++- 22 files changed, 674 insertions(+), 172 deletions(-) create mode 100644 HowToAddNewLanguage.md create mode 100644 src/main/java/stirling/software/SPDF/config/Beans.java create mode 100644 src/main/resources/messages.properties create mode 100644 src/main/resources/messages_en_GB.properties create mode 100644 src/main/resources/messages_en_US.properties diff --git a/.gitignore b/.gitignore index c8a31d91..474d7cc6 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,8 @@ local.properties .settings/ .loadpath .recommenders - +.classpath +.project # Gradle .gradle diff --git a/HowToAddNewLanguage.md b/HowToAddNewLanguage.md new file mode 100644 index 00000000..8f7a6998 --- /dev/null +++ b/HowToAddNewLanguage.md @@ -0,0 +1,29 @@ +
Your locally hosted one-stop-shop for all your - PDF needs. (Made 100% in ChatGPT in 1 day as a experiment)
+