R-516 items 7-10: one banner per drive, local times, te-form, health banners in the household's language

- item 7: the storage page shows the disconnect time in local time (fmtTimeStr), not the raw RFC3339 UTC.
- item 8: a disconnected drive no longer has two banners - the health check's warning for it is dropped
  when the dedicated alert.storage.disconnected banner was built (it stays on the wire).
- item 9: alert.deadapp.group says "nezd meg" (te-form); formal ceiling 14 -> 13.
- item 10: the disk/memory/CPU/temperature health banners show the dashboard's own sentence
  (health.* keys, hu + en) via HealthReport.WarningMsgs/IssueMsgs; the wire text is unchanged.
  checkResources split out of RunHealthCheck as the test seam.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
2026-10-06 01:42:16 +02:00
parent 0f2eab7a3e
commit e4774e6a06
10 changed files with 388 additions and 115 deletions
+3 -3
View File
@@ -194,10 +194,10 @@ func TestPluralEnglish(t *testing.T) {
hu7 := am.GetAlerts("hu")[0].Message
en7 := am.GetAlerts("en")[0].Message
if hu4 != "4 telepített alkalmazás nem fut — nézze meg a rendszermonitort" {
if hu4 != "4 telepített alkalmazás nem fut — nézd meg a rendszermonitort" { // R-516 item 9: te-form
t.Errorf("the Hungarian sentence moved: %q", hu4)
}
if hu7 != "7 telepített alkalmazás nem fut — nézze meg a rendszermonitort" {
if hu7 != "7 telepített alkalmazás nem fut — nézd meg a rendszermonitort" { // R-516 item 9: te-form
t.Errorf("the Hungarian sentence moved: %q", hu7)
}
if !strings.Contains(en4, "4 installed apps are not running") {
@@ -213,7 +213,7 @@ func TestPluralEnglish(t *testing.T) {
t.Errorf("English singular: %q", got)
}
// And Hungarian at 1 is the SAME single form — no .one, no change.
if got := b.Msgf("hu", "alert.deadapp.group", 1); got != "1 telepített alkalmazás nem fut — nézze meg a rendszermonitort" {
if got := b.Msgf("hu", "alert.deadapp.group", 1); got != "1 telepített alkalmazás nem fut — nézd meg a rendszermonitort" {
t.Errorf("Hungarian must have one form at every count: %q", got)
}
}