mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-18 10:02:16 +00:00
Update notification_templates.py
This commit is contained in:
@@ -727,7 +727,7 @@ TEMPLATES = {
|
|||||||
'default_enabled': True,
|
'default_enabled': True,
|
||||||
},
|
},
|
||||||
|
|
||||||
# ── Services events ─<EFBFBD><EFBFBD>
|
# ── Services events ──
|
||||||
'system_startup': {
|
'system_startup': {
|
||||||
'title': '{hostname}: {reason}',
|
'title': '{hostname}: {reason}',
|
||||||
'body': '{summary}',
|
'body': '{summary}',
|
||||||
@@ -1400,10 +1400,10 @@ DO NOT translate: hostnames, IPs, paths, VM/CT IDs, device names (/dev/sdX), tec
|
|||||||
1. Plain text only — NO markdown, no **bold**, no `code`, no bullet lists (use "• " for packages only)
|
1. Plain text only — NO markdown, no **bold**, no `code`, no bullet lists (use "• " for packages only)
|
||||||
2. Preserve severity: "failed" stays "failed", "warning" stays "warning" — never soften errors
|
2. Preserve severity: "failed" stays "failed", "warning" stays "warning" — never soften errors
|
||||||
3. Preserve structure: keep same fields and line order, only translate content
|
3. Preserve structure: keep same fields and line order, only translate content
|
||||||
4. Detail level "{detail_level}":
|
4. Detail level "{detail_level}" - controls AMOUNT OF EVENT INFO (not tips/suggestions):
|
||||||
- brief: 1-2 lines, essential facts only
|
- brief: 1-2 lines max. Only: what happened + where
|
||||||
- standard: short paragraph, key details and context
|
- standard: 3-6 lines. Include: what, where, cause, affected devices
|
||||||
- detailed: full report with all available information, step-by-step if applicable
|
- detailed: Full report with ALL info: what, where, cause, affected, logs, SMART data, history
|
||||||
5. DEDUPLICATION: merge duplicate facts from multiple sources into one clear statement
|
5. DEDUPLICATION: merge duplicate facts from multiple sources into one clear statement
|
||||||
6. EMPTY LISTS: write translated "none" after label, never leave blank
|
6. EMPTY LISTS: write translated "none" after label, never leave blank
|
||||||
7. Keep "hostname:" prefix in title — translate only the descriptive part
|
7. Keep "hostname:" prefix in title — translate only the descriptive part
|
||||||
|
|||||||
Reference in New Issue
Block a user