JS Translation

This commit is contained in:
loulous27 2025-11-22 23:04:59 +01:00
parent 76b9f58f68
commit ccbf1b7d36
6 changed files with 98 additions and 4 deletions

View file

@ -49,7 +49,7 @@ submitbtn = document.getElementById('submit-id-submit');
var ctnbtn = document.createElement("input");
ctnbtn.classList = submitbtn.classList;
ctnbtn.value="Continious Upload";
ctnbtn.value=gettext("Continious Upload");
ctnbtn.type = "button";
async function uplaodfnc() {
@ -59,7 +59,7 @@ async function uplaodfnc() {
submitbtn.disabled = true;
ctnbtn.disabled = true;
actual = 0;
ctnbtn.value = "Please be patient 0% (" + actual + "/" + files.length + ")";
ctnbtn.value = gettext("Please be patient")+" 0% (" + actual + "/" + files.length + ")";
csrfvalue = document.getElementsByName("csrfmiddlewaretoken")[0].value;
@ -110,7 +110,7 @@ async function uplaodfnc() {
if (!okpass) {
window.alert("Error with " + file.name + "code" + await response.code);
}
ctnbtn.value = "Please be patient " + Math.round(100 * actual / total) + "% (" + actual + "/" + files.length + ")";
ctnbtn.value = gettext("Please be patient")+" " + Math.round(100 * actual / total) + "% (" + actual + "/" + files.length + ")";
} catch (e) {
console.error(e);
@ -136,7 +136,7 @@ async function uplaodfnc() {
});
returned = await response.json();
ctnbtn.value = "Upload Complete Please reload the page";
ctnbtn.value = gettext("Upload Complete Please reload the page");
}