diff --git a/src/main/resources/messages_ar_AR.properties b/src/main/resources/messages_ar_AR.properties
index 9d6a0a71..290cec4c 100644
--- a/src/main/resources/messages_ar_AR.properties
+++ b/src/main/resources/messages_ar_AR.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_ca_CA.properties b/src/main/resources/messages_ca_CA.properties
index 99725d38..99075d55 100644
--- a/src/main/resources/messages_ca_CA.properties
+++ b/src/main/resources/messages_ca_CA.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_de_DE.properties b/src/main/resources/messages_de_DE.properties
index e1e31632..43c24f65 100644
--- a/src/main/resources/messages_de_DE.properties
+++ b/src/main/resources/messages_de_DE.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties
index d1abe2d4..05a4bd91 100644
--- a/src/main/resources/messages_en_GB.properties
+++ b/src/main/resources/messages_en_GB.properties
@@ -308,6 +308,15 @@ showJS.tags=Redact,Hide,black out,black,marker,hidden
# WEB PAGES #
# #
###########################
+#login
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties
index 96f082ff..dc7c93f8 100644
--- a/src/main/resources/messages_en_US.properties
+++ b/src/main/resources/messages_en_US.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_es_ES.properties b/src/main/resources/messages_es_ES.properties
index 73e2c53e..8ece9c78 100644
--- a/src/main/resources/messages_es_ES.properties
+++ b/src/main/resources/messages_es_ES.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_eu_ES.properties b/src/main/resources/messages_eu_ES.properties
index 554bfad2..75edb5a4 100644
--- a/src/main/resources/messages_eu_ES.properties
+++ b/src/main/resources/messages_eu_ES.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_fr_FR.properties b/src/main/resources/messages_fr_FR.properties
index 1f3bcc2c..dad35713 100644
--- a/src/main/resources/messages_fr_FR.properties
+++ b/src/main/resources/messages_fr_FR.properties
@@ -299,9 +299,6 @@ home.showJS.title=Afficher le JavaScript
home.showJS.desc=Recherche et affiche tout JavaScript injecté dans un PDF.
showJS.tags=afficher,javascript,js
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=afficher,javascript,js
@@ -311,10 +308,19 @@ showJS.tags=afficher,javascript,js
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_it_IT.properties b/src/main/resources/messages_it_IT.properties
index aed51bb0..0f150f8c 100644
--- a/src/main/resources/messages_it_IT.properties
+++ b/src/main/resources/messages_it_IT.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_ja_JP.properties b/src/main/resources/messages_ja_JP.properties
index b9e2506a..46a45d48 100644
--- a/src/main/resources/messages_ja_JP.properties
+++ b/src/main/resources/messages_ja_JP.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_ko_KR.properties b/src/main/resources/messages_ko_KR.properties
index 5b5fbd48..50a8a7d0 100644
--- a/src/main/resources/messages_ko_KR.properties
+++ b/src/main/resources/messages_ko_KR.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_nl_NL.properties b/src/main/resources/messages_nl_NL.properties
index e3953ed3..331ecd89 100644
--- a/src/main/resources/messages_nl_NL.properties
+++ b/src/main/resources/messages_nl_NL.properties
@@ -299,9 +299,6 @@ home.showJS.title=Toon Javascript
home.showJS.desc=Zoekt en toont ieder script dat in een PDF is geïnjecteerd
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_pl_PL.properties b/src/main/resources/messages_pl_PL.properties
index 7cd0d36c..bac7aa5f 100644
--- a/src/main/resources/messages_pl_PL.properties
+++ b/src/main/resources/messages_pl_PL.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_pt_BR.properties b/src/main/resources/messages_pt_BR.properties
index c9b1807d..3a89624e 100644
--- a/src/main/resources/messages_pt_BR.properties
+++ b/src/main/resources/messages_pt_BR.properties
@@ -299,9 +299,6 @@ home.showJS.title=Mostrar Javascript
home.showJS.desc=Procura e exibe qualquer JavaScript injetado em um PDF
showJS.tags=JavaScript
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JavaScript
@@ -311,10 +308,19 @@ showJS.tags=JavaScript
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_ro_RO.properties b/src/main/resources/messages_ro_RO.properties
index 9a49a2ff..bc038897 100644
--- a/src/main/resources/messages_ro_RO.properties
+++ b/src/main/resources/messages_ro_RO.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_ru_RU.properties b/src/main/resources/messages_ru_RU.properties
index 869a74b8..7e4121ee 100644
--- a/src/main/resources/messages_ru_RU.properties
+++ b/src/main/resources/messages_ru_RU.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_sv_SE.properties b/src/main/resources/messages_sv_SE.properties
index 769c3d9b..139c9ca2 100644
--- a/src/main/resources/messages_sv_SE.properties
+++ b/src/main/resources/messages_sv_SE.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/messages_zh_CN.properties b/src/main/resources/messages_zh_CN.properties
index 6cb2ef35..3bfdab32 100644
--- a/src/main/resources/messages_zh_CN.properties
+++ b/src/main/resources/messages_zh_CN.properties
@@ -299,9 +299,6 @@ home.showJS.title=Show Javascript
home.showJS.desc=Searches and displays any JS injected into a PDF
showJS.tags=JS
-##########################
-### TODO: Translate ###
-##########################
home.autoRedact.title=Auto Redact
home.autoRedact.desc=Auto Redacts(Blacks out) text in a PDF based on input text
showJS.tags=JS
@@ -311,10 +308,19 @@ showJS.tags=JS
# WEB PAGES #
# #
###########################
-#auto-redact
+#login
##########################
### TODO: Translate ###
##########################
+login.title=Sign in
+login.signin=Sign in
+login.rememberme=Remember me
+login.invalid=Invalid username or password.
+login.locked=Your account has been locked.
+login.signinTitle=Please sign in
+
+
+#auto-redact
autoRedact.title=Auto Redact
autoRedact.header=Auto Redact
autoRedact.textsToRedactLabel=Text to Redact (line-separated)
diff --git a/src/main/resources/static/js/darkmode.js b/src/main/resources/static/js/darkmode.js
index fe239583..ebf9c683 100644
--- a/src/main/resources/static/js/darkmode.js
+++ b/src/main/resources/static/js/darkmode.js
@@ -16,6 +16,8 @@ function getElements() {
}
function setMode(mode) {
+ var event = new CustomEvent('modeChanged', { detail: mode });
+ document.dispatchEvent(event);
elements.lightModeStyles.disabled = mode !== "off";
elements.darkModeStyles.disabled = mode !== "on";
elements.rainbowModeStyles.disabled = mode !== "rainbow";
diff --git a/src/main/resources/static/js/languageSelection.js b/src/main/resources/static/js/languageSelection.js
index 3da819b3..c554c2a7 100644
--- a/src/main/resources/static/js/languageSelection.js
+++ b/src/main/resources/static/js/languageSelection.js
@@ -1,4 +1,5 @@
document.addEventListener('DOMContentLoaded', function() {
+ setLanguageForDropdown('.lang_dropdown-item');
const defaultLocale = document.documentElement.lang || 'en_GB';
const storedLocale = localStorage.getItem('languageCode') || defaultLocale;
const dropdownItems = document.querySelectorAll('.lang_dropdown-item');
@@ -13,6 +14,21 @@ document.addEventListener('DOMContentLoaded', function() {
}
});
+function setLanguageForDropdown(dropdownClass) {
+ const defaultLocale = document.documentElement.lang || 'en_GB';
+ const storedLocale = localStorage.getItem('languageCode') || defaultLocale;
+ const dropdownItems = document.querySelectorAll(dropdownClass);
+
+ for (let i = 0; i < dropdownItems.length; i++) {
+ const item = dropdownItems[i];
+ item.classList.remove('active');
+ if (item.dataset.languageCode === storedLocale) {
+ item.classList.add('active');
+ }
+ item.addEventListener('click', handleDropdownItemClick);
+ }
+}
+
function handleDropdownItemClick(event) {
event.preventDefault();
const languageCode = event.currentTarget.dataset.bsLanguageCode; // change this to event.currentTarget
diff --git a/src/main/resources/templates/fragments/langAndDarkMode.html b/src/main/resources/templates/fragments/langAndDarkMode.html
deleted file mode 100644
index 8c6b0ea3..00000000
--- a/src/main/resources/templates/fragments/langAndDarkMode.html
+++ /dev/null
@@ -1,75 +0,0 @@
-