From 2f413766fd44a0b0ce0b35280d620daa5179f8ad Mon Sep 17 00:00:00 2001 From: MrUnknownDE Date: Tue, 23 Dec 2025 20:17:14 +0100 Subject: [PATCH] fix: move to en lang --- static/script.js | 24 ++++++++++++------------ templates/index.html | 36 ++++++++++++++++++------------------ 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/static/script.js b/static/script.js index d0d621c..9bfb971 100644 --- a/static/script.js +++ b/static/script.js @@ -91,7 +91,7 @@ document.addEventListener('DOMContentLoaded', () => { if (detected) { dom.platformInput.value = detected.name; - dom.detectedText.textContent = detected.name + " erkannt"; + dom.detectedText.textContent = detected.name + " detected"; dom.detectedIcon.className = `fab ${detected.icon}`; dom.detectionArea.style.opacity = '1'; dom.detectionArea.style.transform = 'translateY(0)'; @@ -156,7 +156,7 @@ document.addEventListener('DOMContentLoaded', () => { currentJobId = data.job_id; startPolling(); } else { - throw new Error(data.error || "Start fehlgeschlagen"); + throw new Error(data.error || "Start failed"); } } catch (err) { showError(err.message); @@ -168,7 +168,7 @@ document.addEventListener('DOMContentLoaded', () => { try { if(!currentJobId) return; const res = await fetch(`/status?job_id=${currentJobId}`); - if (res.status === 404) { showError("Job nicht gefunden"); return; } + if (res.status === 404) { showError("Job not found"); return; } const status = await res.json(); @@ -235,7 +235,7 @@ document.addEventListener('DOMContentLoaded', () => { function loadHistory() { const raw = localStorage.getItem('mdl_history'); if(!raw) { - dom.historyTableBody.innerHTML = 'Kein Verlauf vorhanden'; + dom.historyTableBody.innerHTML = 'No history available'; return; } @@ -258,9 +258,9 @@ document.addEventListener('DOMContentLoaded', () => { tr.innerHTML = ` ${time} ${item.platform} - ${item.title || 'Unbekannt'} + ${item.title || 'Unknown'} - + @@ -276,25 +276,25 @@ document.addEventListener('DOMContentLoaded', () => { function saveHistory(resultUrl) { const pf = dom.platformInput.value; - const sourceUrl = dom.urlInput.value; // Hole die Original-URL aus dem Input + const sourceUrl = dom.urlInput.value; // Capture source URL const entry = { - url: resultUrl, // Der fertige S3 Download Link - source: sourceUrl, // Der ursprüngliche YouTube/etc Link + url: resultUrl, + source: sourceUrl, platform: pf, - title: pf + " Download", // (Backend sendet Titel aktuell nicht im finalen Status, daher generisch) + title: pf + " Download", ts: Date.now() }; let data = JSON.parse(localStorage.getItem('mdl_history') || '[]'); data.unshift(entry); - if(data.length > 20) data.pop(); // Max 20 Einträge + if(data.length > 20) data.pop(); // Max 20 entries localStorage.setItem('mdl_history', JSON.stringify(data)); loadHistory(); } function clearHistory() { - if(confirm("Verlauf wirklich löschen?")) { + if(confirm("Really clear history?")) { localStorage.removeItem('mdl_history'); loadHistory(); } diff --git a/templates/index.html b/templates/index.html index 42421fd..a48ed17 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,4 @@ - + @@ -25,7 +25,7 @@
unknownMedien.dl
- @@ -38,7 +38,7 @@

Media Downloader

- Einfach Link einfügen. Wir übernehmen den Rest. + Simply paste your link. We handle the rest.

@@ -64,7 +64,7 @@ - SoundCloud erkannt + SoundCloud detected @@ -84,7 +84,7 @@
- + @@ -98,7 +98,7 @@
- Kompatibilität (H.264) + Compatibility (H.264)
@@ -118,7 +118,7 @@
-

INITIALISIERUNG...

+

INITIALIZING...

@@ -145,16 +145,16 @@
-

Fertig!

-

Deine Datei steht bereit.

+

Done!

+

Your file is ready.

- Herunterladen + Download
@@ -168,7 +168,7 @@