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:
@@ -729,7 +729,7 @@
|
||||
<script src="/static/js/components.js?v=20260513d"></script>
|
||||
<script src="/static/js/layout.js?v=20260513f"></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/tutorial.js?v=20260316z"></script>
|
||||
<script src="/static/js/chat.js?v=20260422a"></script>
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
"modal.field.notifications": "E-Mail-Benachrichtigungen",
|
||||
"modal.hint.notifications": "Per E-Mail benachrichtigen bei:",
|
||||
"modal.notify.summary": "Neues Lagebild",
|
||||
"modal.notify.summary_research": "Neuer Recherchebericht",
|
||||
"modal.notify.new_articles": "Neue Artikel",
|
||||
"modal.notify.status_change": "Statusänderung Faktencheck",
|
||||
"aria.close": "Schließen",
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
"modal.field.notifications": "Email notifications",
|
||||
"modal.hint.notifications": "Notify me by email about:",
|
||||
"modal.notify.summary": "New briefing",
|
||||
"modal.notify.summary_research": "New research report",
|
||||
"modal.notify.new_articles": "New articles",
|
||||
"modal.notify.status_change": "Fact-check status change",
|
||||
"aria.close": "Close",
|
||||
|
||||
@@ -1034,13 +1034,26 @@ const App = {
|
||||
typeBadge.textContent = incident.type === 'research' ? 'Analyse' : 'Live';
|
||||
|
||||
// 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');
|
||||
if (_cardTitle) _cardTitle.textContent = _lbLabel;
|
||||
if (typeof LayoutManager !== 'undefined' && typeof LayoutManager.applyTypeLabels === 'function') {
|
||||
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
|
||||
this._updateArchiveButton(incident.status);
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren