From b4ff66615f0048e0accb62e3a4e81b4c26ea7376 Mon Sep 17 00:00:00 2001 From: Dogfather Date: Sun, 2 Aug 2026 11:31:51 +0200 Subject: [PATCH] creator.html: Rendering ebenfalls auf dogiFeld() umgestellt (Zukunftssicherheit) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CREATORS ist aktuell noch leer, aber role/quote werden jetzt konsistent mit team-scouts.html/team-modis.html über dogiFeld() aufgelöst, damit künftige Creator-Profile automatisch mehrsprachig funktionieren, sobald sie in data-creator.js ergänzt werden. --- creator.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/creator.html b/creator.html index a529a3e..b41a279 100644 --- a/creator.html +++ b/creator.html @@ -94,16 +94,21 @@ document.addEventListener("DOMContentLoaded", () => { ``).join(""); } + const feld = (x) => (window.dogiFeld ? window.dogiFeld(x) : x || ""); + function draw(filter) { const items = filter === "alle" ? list : list.filter((c) => c.category === filter); - grid.innerHTML = items.map((c) => ` + grid.innerHTML = items.map((c) => { + const quoteText = feld(c.quote); + return `
${(c.avatar || c.photo) ? `${c.name}` : `${c.name.charAt(0).toUpperCase()}`}

${c.name}

-
${c.role}
- ${c.quote ? `

„${c.quote}"

` : ""} +
${feld(c.role)}
+ ${quoteText ? `

„${quoteText}"

` : ""} ${uebersetzen("crt_profil_btn")} -
`).join(""); + `; + }).join(""); } filterBar.addEventListener("click", (e) => {