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:
Richard
2026-09-24 09:43:51 +02:00
co-authored by Claude Opus 5.5
parent 69718122f3
commit ad71682c2d
97 changed files with 4103 additions and 1928 deletions
@@ -15,11 +15,11 @@
<Border DockPanel.Dock="Bottom" BorderBrush="{DynamicResource DividerBrush}"
BorderThickness="0,1,0,0" Padding="0,12,0,0" Margin="0,16,0,0">
<StackPanel Orientation="Horizontal" Spacing="8" HorizontalAlignment="Right">
<Button Content="Verwerfen" Command="{Binding LoadFromHostCommand}" />
<Button Content="{Binding L[desktop.settings.discard]}" Command="{Binding LoadFromHostCommand}" />
<Button Classes="primary" Command="{Binding SaveSettingsCommand}">
<StackPanel Orientation="Horizontal" Spacing="6">
<ctrl:StrokeIcon Data="{StaticResource IconSave}" Width="14" Height="14" />
<TextBlock Text="Speichern" />
<TextBlock Text="{Binding L[desktop.settings.save]}" />
</StackPanel>
</Button>
</StackPanel>
@@ -30,39 +30,39 @@
<!-- ══════════════════ Instanz ══════════════════ -->
<StackPanel Spacing="14">
<TextBlock Classes="kicker" Text="INSTANZ" />
<TextBlock Classes="kicker" Text="{Binding L[desktop.settings.instance]}" />
<StackPanel>
<TextBlock Classes="label" Text="Instanz-Name" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.instanceName]}" />
<TextBox Text="{Binding InstanceName}" />
</StackPanel>
<StackPanel>
<TextBlock Classes="label" Text="OpenRouter API-Key" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.apiKey]}" />
<TextBox Text="{Binding OpenRouterApiKey}" PasswordChar="•" />
</StackPanel>
<StackPanel>
<CheckBox IsChecked="{Binding AutostartByManager}"
Content="Autostart durch Manager" />
Content="{Binding L[desktop.settings.autostart]}" />
<TextBlock Classes="caption" TextWrapping="Wrap" Margin="0,4,0,0"
Text="Der Instanzmanager startet diese Instanz, wenn er hochkommt, und wieder, wenn sie abstürzt. Nach mehreren Neustarts in kurzer Folge setzt er aus und meldet es." />
Text="{Binding L[desktop.settings.autostartHint]}" />
</StackPanel>
<StackPanel>
<TextBlock Classes="label" Text="Protokoll-Verzeichnis" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.logDir]}" />
<TextBox Text="{Binding LogDirectory}" />
<TextBlock Classes="caption" TextWrapping="Wrap" Margin="0,4,0,0"
Text="Gilt nur für diese Instanz. Leer heißt: Unterordner Logs im Instanzverzeichnis." />
Text="{Binding L[desktop.settings.logDirHint]}" />
</StackPanel>
<Grid ColumnDefinitions="*,16,*">
<StackPanel Grid.Column="0">
<TextBlock Classes="label" Text="Tagesbudget ($ USD)" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.dailyCost]}" />
<TextBox Text="{Binding InstanceDailyCostUsd}" />
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Classes="label" Text="Tagesbudget (Tokens)" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.dailyTokens]}" />
<TextBox Text="{Binding InstanceDailyTokens}" />
</StackPanel>
</Grid>
@@ -72,21 +72,33 @@
<!-- ══════════════════ Allgemein ══════════════════ -->
<StackPanel Spacing="14">
<TextBlock Classes="kicker" Text="ALLGEMEIN" />
<TextBlock Classes="kicker" Text="{Binding L[desktop.settings.general]}" />
<StackPanel>
<TextBlock Classes="label" Text="Instanzen-Verzeichnis" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.language]}" />
<ComboBox ItemsSource="{Binding AvailableLanguages}" SelectedItem="{Binding SelectedLanguageOption}"
HorizontalAlignment="Stretch">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
</StackPanel>
<StackPanel>
<TextBlock Classes="label" Text="{Binding L[desktop.settings.instancesDir]}" />
<TextBox Text="{Binding InstancesDirectory}" />
</StackPanel>
<Grid ColumnDefinitions="*,16,*">
<StackPanel Grid.Column="0">
<TextBlock Classes="label" Text="Minimaler Log-Level" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.minLogLevel]}" />
<ComboBox ItemsSource="{Binding LogLevels}" SelectedItem="{Binding MinimumLogLevel}"
HorizontalAlignment="Stretch" />
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Classes="label" Text="OpenRouter Base-URL" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.openRouterUrl]}" />
<TextBox Text="{Binding OpenRouterBaseUrl}" />
</StackPanel>
</Grid>
@@ -96,26 +108,26 @@
<!-- ══════════════════ Deploymentcenter ══════════════════ -->
<StackPanel Spacing="14">
<TextBlock Classes="kicker" Text="DEPLOYMENTCENTER &amp; LIZENZ" />
<TextBlock Classes="kicker" Text="{Binding L[desktop.settings.dcAndLicense]}" />
<StackPanel>
<TextBlock Classes="label" Text="Server-URL" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.dcUrl]}" />
<TextBox Text="{Binding DeploymentcenterUrl}" />
</StackPanel>
<StackPanel>
<TextBlock Classes="label" Text="Master-Token" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.dcToken]}" />
<TextBox Text="{Binding DeploymentcenterToken}" PasswordChar="•" />
</StackPanel>
<Grid ColumnDefinitions="*,16,*">
<StackPanel Grid.Column="0">
<TextBlock Classes="label" Text="Update-Kanal" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.updateChannel]}" />
<ComboBox ItemsSource="{Binding UpdateChannels}" SelectedItem="{Binding UpdateChannel}"
HorizontalAlignment="Stretch" />
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Classes="label" Text="Umgebung" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.dcEnv]}" />
<ComboBox ItemsSource="{Binding Environments}"
SelectedItem="{Binding DeploymentcenterEnvironment}"
HorizontalAlignment="Stretch" />
@@ -123,14 +135,14 @@
</Grid>
<StackPanel>
<TextBlock Classes="label" Text="Lizenzschlüssel" />
<TextBlock Classes="label" Text="{Binding L[desktop.settings.licenseKey]}" />
<TextBox Text="{Binding LicenseKey}" PasswordChar="•" />
</StackPanel>
<StackPanel Spacing="10" Margin="0,4,0,0">
<CheckBox Content="Fehler automatisch an Deploymentcenter melden"
<CheckBox Content="{Binding L[desktop.settings.errorReporting]}"
IsChecked="{Binding ErrorReportingEnabled}" />
<CheckBox Content="Beim Start automatisch auf Updates prüfen"
<CheckBox Content="{Binding L[desktop.settings.updateCheck]}"
IsChecked="{Binding UpdateCheckEnabled}" />
</StackPanel>
</StackPanel>