fix(i18n): Notify-Summary-Toggle wird beim Lage-Edit ueberschrieben

app.js:1037-1043 setzte den Text der notify-summary-Checkbox dynamisch
auf Neues Lagebild / Neuer Recherchebericht und damit das data-i18n-
Attribut zurueck. Jetzt ueber T() mit Forschungs-/Lagebild-Varianten.
Neuer Key modal.notify.summary_research.
Dieser Commit ist enthalten in:
Claude Code
2026-05-13 22:09:06 +00:00
Ursprung 3a68097b4f
Commit 4fc3212e2c
4 geänderte Dateien mit 18 neuen und 3 gelöschten Zeilen

Datei anzeigen

@@ -729,7 +729,7 @@
<script src="/static/js/components.js?v=20260513d"></script> <script src="/static/js/components.js?v=20260513d"></script>
<script src="/static/js/layout.js?v=20260513f"></script> <script src="/static/js/layout.js?v=20260513f"></script>
<script src="/static/js/pipeline.js?v=20260513d"></script> <script src="/static/js/pipeline.js?v=20260513d"></script>
<script src="/static/js/app.js?v=20260514a"></script> <script src="/static/js/app.js?v=20260514b"></script>
<script src="/static/js/cluster-data.js?v=20260322f"></script> <script src="/static/js/cluster-data.js?v=20260322f"></script>
<script src="/static/js/tutorial.js?v=20260316z"></script> <script src="/static/js/tutorial.js?v=20260316z"></script>
<script src="/static/js/chat.js?v=20260422a"></script> <script src="/static/js/chat.js?v=20260422a"></script>

Datei anzeigen

@@ -80,6 +80,7 @@
"modal.field.notifications": "E-Mail-Benachrichtigungen", "modal.field.notifications": "E-Mail-Benachrichtigungen",
"modal.hint.notifications": "Per E-Mail benachrichtigen bei:", "modal.hint.notifications": "Per E-Mail benachrichtigen bei:",
"modal.notify.summary": "Neues Lagebild", "modal.notify.summary": "Neues Lagebild",
"modal.notify.summary_research": "Neuer Recherchebericht",
"modal.notify.new_articles": "Neue Artikel", "modal.notify.new_articles": "Neue Artikel",
"modal.notify.status_change": "Statusänderung Faktencheck", "modal.notify.status_change": "Statusänderung Faktencheck",
"aria.close": "Schließen", "aria.close": "Schließen",

Datei anzeigen

@@ -80,6 +80,7 @@
"modal.field.notifications": "Email notifications", "modal.field.notifications": "Email notifications",
"modal.hint.notifications": "Notify me by email about:", "modal.hint.notifications": "Notify me by email about:",
"modal.notify.summary": "New briefing", "modal.notify.summary": "New briefing",
"modal.notify.summary_research": "New research report",
"modal.notify.new_articles": "New articles", "modal.notify.new_articles": "New articles",
"modal.notify.status_change": "Fact-check status change", "modal.notify.status_change": "Fact-check status change",
"aria.close": "Close", "aria.close": "Close",

Datei anzeigen

@@ -1034,13 +1034,26 @@ const App = {
typeBadge.textContent = incident.type === 'research' ? 'Analyse' : 'Live'; typeBadge.textContent = incident.type === 'research' ? 'Analyse' : 'Live';
// Kachel-Label: 'Recherchebericht' fuer Recherche-Lagen, 'Lagebild' fuer Live-Monitoring // Kachel-Label: 'Recherchebericht' fuer Recherche-Lagen, 'Lagebild' fuer Live-Monitoring
const _lbLabel = incident.type === 'research' ? 'Recherchebericht' : 'Lagebild'; const _tI18n = (k, fb) => (typeof T === 'function') ? T(k, fb) : fb;
const _lbLabel = incident.type === 'research'
? _tI18n('tab.summary_report', 'Recherchebericht')
: _tI18n('card.summary', 'Lagebild');
const _cardTitle = document.querySelector('#panel-lagebild .card-title'); const _cardTitle = document.querySelector('#panel-lagebild .card-title');
if (_cardTitle) _cardTitle.textContent = _lbLabel; if (_cardTitle) _cardTitle.textContent = _lbLabel;
if (typeof LayoutManager !== 'undefined' && typeof LayoutManager.applyTypeLabels === 'function') { if (typeof LayoutManager !== 'undefined' && typeof LayoutManager.applyTypeLabels === 'function') {
LayoutManager.applyTypeLabels(incident.type); LayoutManager.applyTypeLabels(incident.type);
} }
{ const _nt = document.querySelector("#inc-notify-summary"); if (_nt) { const _ns = _nt.closest("label")?.querySelector(".toggle-text"); if (_ns) _ns.textContent = "Neues " + _lbLabel; } } {
const _nt = document.querySelector("#inc-notify-summary");
if (_nt) {
const _ns = _nt.closest("label")?.querySelector(".toggle-text");
if (_ns) {
_ns.textContent = incident.type === 'research'
? _tI18n('modal.notify.summary_research', 'Neuer Recherchebericht')
: _tI18n('modal.notify.summary', 'Neues Lagebild');
}
}
}
// Archiv-Button Text // Archiv-Button Text
this._updateArchiveButton(incident.status); this._updateArchiveButton(incident.status);