i18n: Englisch als Hauptsprache, Sprachpakete fuer Desktop und WebUI (#661)
Umbau durch Gemini Flash, Durchsicht und Nacharbeit durch Claude. Umfang: - Desktop: LocalizationManager (JSON-Pakete, Rueckfall auf Englisch, Umschalten zur Laufzeit), Localize-Markup-Erweiterung, Sprachwahl in den Einstellungen (AppSettings.Language, Vorgabe "en"); 317 Schluessel je Sprache - WebUI: alle Ansichten auf t()/data-i18n, 656 Schluessel je Sprache - Agenten-Werkzeuge: Beschreibungen, Schemata und Meldungen auf Englisch - Tests an die englischen Meldungen angepasst, keine Pruefung abgeschwaecht Nacharbeit bei der Durchsicht: - ~25 Kommentarbloecke mit Begruendungen waren ersatzlos entfallen, darunter sicherheitsrelevante (NTFS-Datenstrom beim shared:-Praefix, Bremse gegen Agentenschleifen, doppelter POST beim Anlegen einer Instanz). Wieder eingesetzt: auf Englisch, wo die Datei umgestellt ist, sonst im Wortlaut. - Drei WebUI-Schluessel fehlten (logs.paused, instances.instanceOfflineError, instances.noInstanceActiveError). Weil t() bei fehlendem Schluessel den Schluessel selbst liefert, griff der "|| err.message"-Rueckfall nie — die Oberflaeche haette den Schluesselnamen angezeigt. Geprueft: Schluesselgleichheit en/de, Platzhalter je Schluessel, jeder im Code benutzte Schluessel vorhanden, node --check fuer alle Module, 1.220 Tests gruen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
69718122f3
commit
ad71682c2d
@@ -123,7 +123,7 @@ public sealed class NachschauTests : IDisposable
|
||||
"""{"action":"append","path":"log.txt","content":"Zeile 2 ist nur halb angekommen\n"}""");
|
||||
|
||||
befund.Outcome.ShouldBe(ProbeOutcome.Partial);
|
||||
befund.Evidence.ShouldContain("von");
|
||||
befund.Evidence.ShouldContain("of");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -69,7 +69,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read_many","workspace":"shared","path":"wetter/stunden","pattern":"berlin_2026-09-20_*.txt"}""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain("24 von 24 Datei(en) gelesen");
|
||||
result.Content.ShouldContain("24 of 24 file(s) read");
|
||||
result.Content.ShouldContain("Temperatur 10 C");
|
||||
result.Content.ShouldContain("Temperatur 33 C");
|
||||
result.Content.ShouldNotContain("2026-09-19", Case.Sensitive);
|
||||
@@ -101,8 +101,8 @@ public sealed class SammelLesenTests : IDisposable
|
||||
""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain("1 von 2 Datei(en) gelesen");
|
||||
result.Content.ShouldContain("Nicht gefunden: wetter/stunden/berlin_2026-09-20_09-00.txt");
|
||||
result.Content.ShouldContain("1 of 2 file(s) read");
|
||||
result.Content.ShouldContain("Not found: wetter/stunden/berlin_2026-09-20_09-00.txt");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -113,9 +113,9 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read_many","workspace":"shared","path":"wetter/stunden"}""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain($"{FileRWTool.MaxDateienJeAufruf} von 60 Datei(en) gelesen");
|
||||
result.Content.ShouldContain("Nicht mehr gelesen");
|
||||
result.Content.ShouldContain("hole sie mit einem weiteren Aufruf");
|
||||
result.Content.ShouldContain($"{FileRWTool.MaxDateienJeAufruf} of 60 file(s) read");
|
||||
result.Content.ShouldContain("Skipped reading");
|
||||
result.Content.ShouldContain("fetch with an additional call");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -124,7 +124,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read_many","workspace":"shared","path":"wetter/stunden"}""");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("Keine passende Datei");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("No matching file");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -135,7 +135,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read_many","workspace":"shared","path":"wetter/stunden"}""", sharedLevel: "Denied");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("Zugriff verweigert");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("Access denied");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -144,7 +144,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read_many","workspace":"shared","paths":["../../geheim.txt"]}""");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("Zugriff verweigert");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("Access denied");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -156,7 +156,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read_many","workspace":"shared","path":"wetter/stunden"}""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain("2 von 2 Datei(en) gelesen");
|
||||
result.Content.ShouldContain("2 of 2 file(s) read");
|
||||
result.Content.ShouldNotContain("skript.exe");
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read","path":"wetter/stunden/berlin_2026-09-20_00-00.txt"}""");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("existiert im shared Workspace");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("exists in the shared workspace");
|
||||
result.ErrorMessage.ShouldContain("workspace: \"shared\"", Case.Sensitive);
|
||||
}
|
||||
|
||||
@@ -180,7 +180,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"list","path":"wetter/stunden"}""");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("existiert im shared Workspace");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("exists in the shared workspace");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -192,7 +192,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read","path":"wetter/stunden/berlin_2026-09-20_00-00.txt"}""", sharedLevel: "Denied");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldNotContain("existiert im");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldNotContain("exists in");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -201,7 +201,7 @@ public sealed class SammelLesenTests : IDisposable
|
||||
var result = await Run("""{"action":"read","workspace":"shared","path":"wetter/stunden/fehlt.txt"}""");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("Datei nicht gefunden");
|
||||
result.ErrorMessage.ShouldNotContain("existiert im");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("File not found");
|
||||
result.ErrorMessage.ShouldNotContain("exists in");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
var result = await Run("""{"action":"list","workspace":"shared","path":"wetter/stunden"}""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain("neueste zuerst");
|
||||
result.Content.ShouldContain("newest first");
|
||||
Namen(result.Content).First().ShouldBe("berlin_2026-09-21_05-00.txt");
|
||||
Namen(result.Content).Last().ShouldBe("berlin_2026-09-21_00-00.txt");
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
|
||||
var result = await Run("""{"action":"list","workspace":"shared","path":"wetter/stunden","sort":"modified","order":"asc"}""");
|
||||
|
||||
result.Content.ShouldContain("aelteste zuerst");
|
||||
result.Content.ShouldContain("oldest first");
|
||||
Namen(result.Content).First().ShouldBe("berlin_2026-09-21_00-00.txt");
|
||||
}
|
||||
|
||||
@@ -117,8 +117,8 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
|
||||
var result = await Run("""{"action":"list","workspace":"shared","path":"wetter/stunden"}""");
|
||||
|
||||
result.Content.ShouldContain($"{FileRWTool.StandardEintraege} von 72 Eintraegen");
|
||||
result.Content.ShouldContain("22 weitere nicht gezeigt");
|
||||
result.Content.ShouldContain($"{FileRWTool.StandardEintraege} of 72 entries");
|
||||
result.Content.ShouldContain("22 more not shown");
|
||||
result.Content.ShouldContain("'pattern'", Case.Sensitive, "der Agent soll wissen, wie er gezielt fragt");
|
||||
Namen(result.Content).Count.ShouldBe(FileRWTool.StandardEintraege);
|
||||
}
|
||||
@@ -130,7 +130,7 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
|
||||
var wenig = await Run("""{"action":"list","workspace":"shared","path":"wetter/stunden","limit":3}""");
|
||||
Namen(wenig.Content).Count.ShouldBe(3);
|
||||
wenig.Content.ShouldContain("3 von 10 Eintraegen");
|
||||
wenig.Content.ShouldContain("3 of 10 entries");
|
||||
|
||||
var zuviel = await Run("""{"action":"list","workspace":"shared","path":"wetter/stunden","limit":99999}""");
|
||||
Namen(zuviel.Content).Count.ShouldBe(10, "mehr als da ist gibt es nicht");
|
||||
@@ -147,8 +147,8 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
var result = await Run("""{"action":"list","workspace":"shared","path":"wetter/stunden","pattern":"berlin_2026-09-21_1?-00.txt"}""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain("10 von 10 Eintraegen");
|
||||
result.Content.ShouldContain("Muster:");
|
||||
result.Content.ShouldContain("10 of 10 entries");
|
||||
result.Content.ShouldContain("Pattern:");
|
||||
Namen(result.Content).ShouldAllBe(n => n.StartsWith("berlin_2026-09-21_1"));
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
var result = await Run("""{"action":"list","workspace":"shared","path":"wetter/stunden"}""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain("0 von 0 Eintraegen");
|
||||
result.Content.ShouldContain("0 of 0 entries");
|
||||
}
|
||||
|
||||
// ═══════════════════ Form ═══════════════════
|
||||
@@ -192,7 +192,7 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
var result = await Run($$"""{"action":"{{action}}","workspace":"shared","path":"wetter/stunden","pattern":"../*"}""");
|
||||
|
||||
result.Success.ShouldBeFalse("ein Muster ist ein Dateiname, kein Pfad");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("Muster");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("pattern", Case.Insensitive);
|
||||
(result.Content ?? "").ShouldNotContain("geheim");
|
||||
}
|
||||
|
||||
@@ -209,6 +209,6 @@ public sealed class VerzeichnisListeTests : IDisposable
|
||||
var result = await _tool.ExecuteAsync(input, Context(), CancellationToken.None);
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("kein Pfad");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("not a path");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,8 +53,8 @@ public sealed class MemoryToolTests : IDisposable
|
||||
abruf.Success.ShouldBeTrue();
|
||||
abruf.Content.ShouldContain("meldung-0001.html", customMessage: "der Anfang bleibt sichtbar");
|
||||
abruf.Content.ShouldContain("meldung-0250.html", customMessage: "das Ende - die neuesten Links - bleibt sichtbar");
|
||||
abruf.Content.ShouldContain("gekürzt");
|
||||
abruf.Content.ShouldNotContain("weitere Treffer ausgelassen");
|
||||
abruf.Content.ShouldContain("truncated");
|
||||
abruf.Content.ShouldNotContain("more results omitted");
|
||||
abruf.Content.Length.ShouldBeLessThanOrEqualTo(8_000);
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ public sealed class MemoryToolTests : IDisposable
|
||||
var abruf = await Aufruf(new { action = "recall", query = "gemeldet" });
|
||||
|
||||
abruf.Content.ShouldContain("meldung-0220.html");
|
||||
abruf.Content.ShouldContain("1 weitere Treffer ausgelassen");
|
||||
abruf.Content.ShouldContain("1 more results omitted");
|
||||
abruf.Content.Length.ShouldBeLessThanOrEqualTo(8_000);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ public sealed class MemoryToolTests : IDisposable
|
||||
|
||||
var abruf = await Aufruf(new { action = "recall", query = "gemeldet" });
|
||||
|
||||
abruf.Content.ShouldNotContain("gekürzt");
|
||||
abruf.Content.ShouldNotContain("truncated");
|
||||
abruf.Content.ShouldContain("meldung-0010.html");
|
||||
}
|
||||
|
||||
@@ -89,8 +89,8 @@ public sealed class MemoryToolTests : IDisposable
|
||||
var erster = await Aufruf(new { action = "remember", subject = "gemeldet", content = Linkliste(3) });
|
||||
var zweiter = await Aufruf(new { action = "remember", subject = "gemeldet", content = Linkliste(5) });
|
||||
|
||||
erster.Content.ShouldNotContain("Hinweis");
|
||||
zweiter.Content.ShouldContain("2 Einträge ohne Schlüssel");
|
||||
erster.Content.ShouldNotContain("Note:");
|
||||
zweiter.Content.ShouldContain("2 entries without a key");
|
||||
zweiter.Content.ShouldContain("key");
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ public sealed class MemoryToolTests : IDisposable
|
||||
await Aufruf(new { action = "remember", subject = "gemeldet", key = "gemeldete-links", content = Linkliste(3) });
|
||||
var zweiter = await Aufruf(new { action = "remember", subject = "gemeldet", key = "gemeldete-links", content = Linkliste(5) });
|
||||
|
||||
zweiter.Content.ShouldNotContain("Hinweis");
|
||||
zweiter.Content.ShouldNotContain("Note:");
|
||||
(await _repository.CountAsync(MemoryScope.Agent, "nachrichten", CancellationToken.None)).ShouldBe(1);
|
||||
}
|
||||
|
||||
@@ -109,6 +109,6 @@ public sealed class MemoryToolTests : IDisposable
|
||||
{
|
||||
var ergebnis = await Aufruf(new { action = "remember", subject = "gemeldet", key = "links", content = Linkliste(120) });
|
||||
|
||||
ergebnis.Content.ShouldContain("Zeichen lang");
|
||||
ergebnis.Content.ShouldContain("characters long");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ public sealed class DublettenTests : IDisposable
|
||||
var result = await Run("""{"action":"task_find","title":"Betriebsluecke: Eur Kurse nicht aktuell"}""");
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain("Keine offene Aufgabe ähnelt");
|
||||
result.Content.ShouldContain("No open task resembles");
|
||||
result.Content.ShouldContain("task_create");
|
||||
}
|
||||
|
||||
@@ -78,8 +78,8 @@ public sealed class DublettenTests : IDisposable
|
||||
|
||||
result.Success.ShouldBeTrue(result.ErrorMessage);
|
||||
result.Content.ShouldContain(vorhanden.Id);
|
||||
result.Content.ShouldContain("derselbe Sachverhalt");
|
||||
result.Content.ShouldContain("offen seit");
|
||||
result.Content.ShouldContain("same issue");
|
||||
result.Content.ShouldContain("open since");
|
||||
result.Content.ShouldContain("task_comment", Case.Sensitive, "der Agent soll ergaenzen, nicht neu anlegen");
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ public sealed class DublettenTests : IDisposable
|
||||
var result = await Run("""{"action":"task_find"}""");
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("'title' ist erforderlich");
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain("'title' is required");
|
||||
}
|
||||
|
||||
// ─── die Bremse beim Anlegen ───
|
||||
@@ -103,7 +103,7 @@ public sealed class DublettenTests : IDisposable
|
||||
|
||||
result.Success.ShouldBeFalse();
|
||||
result.ErrorMessage.ShouldNotBeNull().ShouldContain(erste.Id);
|
||||
result.ErrorMessage.ShouldContain("vermerkt");
|
||||
result.ErrorMessage.ShouldContain("recorded");
|
||||
|
||||
(await _board.ListAsync(new TaskQuery { Limit = 50 }, default)).Count
|
||||
.ShouldBe(1, "es bleibt bei der einen Aufgabe");
|
||||
@@ -117,7 +117,7 @@ public sealed class DublettenTests : IDisposable
|
||||
await Run("""{"action":"task_create","title":"Betriebsluecke: Nachrichten fehlen","assignee":"@human"}""");
|
||||
|
||||
var datei = await File.ReadAllTextAsync(Path.Combine(_board.TasksDirectory, (await _board.GetAsync(erste.Id, default))!.FileName));
|
||||
datei.ShouldContain("Erneut beobachtet");
|
||||
datei.ShouldContain("Observed again");
|
||||
datei.ShouldContain("hausmeister", Case.Insensitive);
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ public sealed class VorpruefungTests : IDisposable
|
||||
.Preflight(Json("""{"action":"delete","workspace":"shared","path":"Testplan.md"}"""),
|
||||
Kontext("dateipruefer", new() { ["sharedAccessLevel"] = level }))
|
||||
.ShouldNotBeNull()
|
||||
.ShouldContain("Zugriff verweigert");
|
||||
.ShouldContain("Access denied");
|
||||
|
||||
[Fact]
|
||||
public void FileRW_laesst_Loeschen_im_eigenen_Ordner_zur_Freigabe_durch()
|
||||
|
||||
@@ -146,7 +146,7 @@ public sealed class HtmlExtraktorTests
|
||||
var inhalt = HtmlExtraktor.Extrahiere(Artikelseite, Basis, "#gibt-es-nicht");
|
||||
|
||||
inhalt.Bereich.ShouldBe("article");
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("traf nichts");
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("matched nothing");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -155,7 +155,7 @@ public sealed class HtmlExtraktorTests
|
||||
var inhalt = HtmlExtraktor.Extrahiere(Artikelseite, Basis, "div[[[");
|
||||
|
||||
inhalt.Markdown.ShouldContain("Der Stadtrat hat am Montag");
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("ungueltig");
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("invalid");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -65,7 +65,7 @@ public sealed class JsonFilterTests
|
||||
{
|
||||
var inhalt = WebInhalt.Aufbereiten(DwdAehnlich(), "application/json", Quelle, AbrufModus.Auto, null, filter: "Muenchen");
|
||||
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("Keine Eintraege");
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("No entries");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -74,7 +74,7 @@ public sealed class JsonFilterTests
|
||||
var inhalt = WebInhalt.Aufbereiten("Das ist Text, kein JSON.", "text/plain", Quelle, AbrufModus.Auto, null, filter: "Berlin");
|
||||
|
||||
inhalt.Text.ShouldBe("Das ist Text, kein JSON.");
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("kein gueltiges JSON");
|
||||
inhalt.Hinweis.ShouldNotBeNull().ShouldContain("not valid JSON");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -27,7 +27,7 @@ public sealed class UrlGuardAufloesungTests
|
||||
() => UrlGuard.ResolveAllowedAsync("localtest.me", Aufloesung(adresse), default));
|
||||
|
||||
ex.Message.ShouldContain("localtest.me");
|
||||
ex.Message.ShouldContain("gesperrt");
|
||||
ex.Message.ShouldContain("blocked");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user