From 9ee465dd596cc613efca25709a75e4b5e3f534da Mon Sep 17 00:00:00 2001 From: Jeremy Kirsch Date: Mon, 18 May 2026 16:35:41 +0200 Subject: [PATCH] translate --- public/index.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/public/index.html b/public/index.html index 08eb169..f4ce463 100644 --- a/public/index.html +++ b/public/index.html @@ -2595,18 +2595,18 @@ } async function approveSub(id) { - try { await api('PATCH', `/admin/submissions/${id}`, { status: 'approved' }); toast("Angenommen βœ“", "success"); renderAdmin(); } + try { await api('PATCH', `/admin/submissions/${id}`, { status: 'approved' }); toast("Accepted βœ“", "success"); renderAdmin(); } catch (e) { toast(e.message, "danger"); } } async function rejectSub(id) { - try { await api('PATCH', `/admin/submissions/${id}`, { status: 'rejected' }); toast("Abgelehnt.", "danger"); renderAdmin(); } + try { await api('PATCH', `/admin/submissions/${id}`, { status: 'rejected' }); toast("Rejected βœ•", "danger"); renderAdmin(); } catch (e) { toast(e.message, "danger"); } } async function injectSub(id, ghostName) { try { await api('PATCH', `/admin/submissions/${id}`, { status: 'approved' }); } catch { } const g = ghosts.find(x => x.name === ghostName); openGhostForm(g?.id || null); - setTimeout(() => toast("πŸ’‘ Submission-Info anzeigen: prΓΌfe den Tip!", "info"), 300); + setTimeout(() => toast("πŸ’‘ Show submission info: check the tip!", "info"), 300); renderAdmin(); } @@ -2614,8 +2614,8 @@ function openGhostForm(id) { const g = id ? ghosts.find(x => x.id === id) : null; editingId = id || null; - document.getElementById('em-title').textContent = g ? `Bearbeiten: ${g.name}` : 'Neuen Geist erstellen'; - document.getElementById('em-sub').textContent = g ? `Admin Β· Ghost Editor Β· ID: ${g.id}` : 'Admin Β· Ghost Editor Β· Neu'; + document.getElementById('em-title').textContent = g ? `Edit: ${g.name}` : 'New Ghost'; + document.getElementById('em-sub').textContent = g ? `Admin Β· Ghost Editor Β· ID: ${g.id}` : 'Admin Β· Ghost Editor Β· New'; document.getElementById('ef-name').value = g?.name || ''; document.getElementById('ef-sanity').value = g?.sanity ?? 50; document.getElementById('ef-hunt').value = g?.hunt || 'mid'; @@ -2692,19 +2692,19 @@ const ul = document.getElementById('user-sub-list'); try { const subs = await api('GET', '/api/submissions/mine'); - if (!subs.length) { ul.innerHTML = '
πŸ“­ Du hast noch nichts eingereicht.
'; return; } + if (!subs.length) { ul.innerHTML = '
πŸ“­ You have not submitted anything yet.
'; return; } ul.innerHTML = ''; subs.forEach(sub => { const tl = sub.type === 'tip' ? 'πŸ’‘ Tip' : sub.type === 'edit' ? '✏️ Korrektur' : 'πŸ†• Neuer Geist'; const sc = sub.status === 'approved' ? 'ssa' : sub.status === 'rejected' ? 'ssr' : 'ssp'; - const sl = sub.status === 'approved' ? 'βœ“ Angenommen' : sub.status === 'rejected' ? 'βœ• Abgelehnt' : '⏳ Ausstehend'; + const sl = sub.status === 'approved' ? 'βœ“ Accepted' : sub.status === 'rejected' ? 'βœ• Rejected' : '⏳ Waiting'; const d = document.createElement('div'); d.className = 'usi'; d.innerHTML = `
${escH(sub.ghost_name || 'Allgemein')}${tl}${sl}${fmtTime(sub.created_at)}
${escH(sub.content)}
${sub.admin_note ? `
Admin: ${escH(sub.admin_note)}
` : ''}`; ul.appendChild(d); }); const approved = subs.filter(s => s.status === 'approved').length; const ub = document.getElementById('badge-user'); ub.textContent = approved; ub.classList.toggle('show', approved > 0); - } catch { ul.innerHTML = '
Fehler beim Laden.
'; } + } catch { ul.innerHTML = '
Failed to load.
'; } } /* ── EXPORT ── */