Skip to content

i18n(web,tray): localize residual Web UI and tray strings - #109

Draft
Dani6ca-T wants to merge 4 commits into
OpenstreamCo:masterfrom
Dani6ca-T:i18n/g2-webui-tray-locales
Draft

Dani6ca-T wants to merge 4 commits into
OpenstreamCo:masterfrom
Dani6ca-T:i18n/g2-webui-tray-locales

Conversation

@Dani6ca-T

@Dani6ca-T Dani6ca-T commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Extracts the residual Web UI / Tray localization fixes from the 22-locale source branch (a73e18b) into a standalone Draft PR based on current master (5ed6373).

  • Web UI — Hungarian about.subtitle translated (was English).
  • Tray — Italian state.Running translated (On → In esecuzione).
  • Tray window logs — the three hardcoded Spanish messages in Services/TrayApp/AppWindow.cs now use BackendText.Get(...); the matching keys app.webView2Unavailable, app.externalOpenFailed and app.themeApplyFailed are added to the 18 base backend catalogs. en_GB/en_US inherit from en, pt_BR from pt, zh_TW from zh via the existing parent fallback.
  • Tests — the two catalog-integrity tests now resolve effective catalogs through that fallback. This is required because the four regional catalogs intentionally do not duplicate the new keys, while the previous test asserted raw key-set equality.

Files (23 files, +105 / −30)

  • Core/wwwroot/locales/hu.json
  • Services/TrayApp/Locales/it.json
  • Services/TrayApp/AppWindow.cs
  • Services/Localization/Locales/{bg,cs,de,en,es,fr,hu,it,ja,ko,pl,pt,ru,sv,tr,uk,vi,zh}.json — 3 keys each
  • tests/i18n.test.cjs
  • tests/i18n-backend.test.cjs

Explicitly excluded

  • Sunshine WebRTC locales (G1 / PR i18n(sunshine): add WebRTC locale strings for 21 languages #108) — no Sunshine/ files.
  • Installer catalogs, generator, generated installer files — no Core/Installer/ or installer artifacts.
  • Safe-maintenance-mode — branch is not an ancestor; no related files.
  • Other backend C# localization work and unrelated changes — not included.
  • CI/workflow changes — no .github/ files.

Overlap and dependencies

Validation

  • dotnet build -c Release — succeeded with isolated .NET 10 SDK 10.0.404: 0 errors, 16 warnings; no warning is in a changed file. The system SDK (9.0.319) cannot target net10.0-windows, so the isolated SDK was used.
  • dotnet test -c Release --no-build — 210/210 pass, 0 failed, 0 skipped.
  • node --test tests/i18n.test.cjs — 18/18 pass.
  • node --test tests/i18n-backend.test.cjs — 20/20 pass.
  • Browser UI harness — 142 checks pass (66 page/language combinations, 22 switching/persistence checks, responsive cases, 3 fallback cases). Run with Playwright's bundled Chromium because this machine's Edge policy sets RemoteDebuggingAllowed=0; the checked-in harness still targets Edge and a temporary copy was used, so no test file was altered for this run.
  • Catalog validation — 2,848 assertions pass: JSON parse, effective key parity for all 22 backend catalogs, placeholder parity, duplicate-key/BOM checks, and value equality with the source branch.
  • git diff --check — clean.

Source mapping

  • 960219a3 → Hungarian web about subtitle.
  • e8cf9c5d → Italian tray running state.
  • b09f1667 + the 18 Add localized tray window log messages catalog commits → AppWindow.cs and the app.* keys.
  • 62030ca8, 66647b44, 2042afb4, 94b1f459, a73e18bf → effective-catalog test updates.

Opened as Draft for review; not marked ready and not merged.

Consolidates the source-branch test commits 62030ca, 66647b4, 2042afb, 94b1f45 and a73e18b, which validate effective backend catalogs through Core/Localization/locales.json and BackendText.cs and accept .NET composite format placeholders.

Required by the tray catalog keys added next: the regional catalogs en_GB, en_US, pt_BR and zh_TW intentionally inherit those keys from their parents instead of duplicating them.
Adds app.webView2Unavailable, app.externalOpenFailed and app.themeApplyFailed to the 18 base backend catalogs and replaces the three hardcoded Spanish log messages in AppWindow.cs with BackendText.Get. en_GB and en_US inherit from en, pt_BR from pt, and zh_TW from zh.

Extracted from source commits b09f166 and the 18 'Add localized tray window log messages' catalog commits (6dec6e9 through b2a29aa).
Replaces the English 'On' with 'In esecuzione' in the Italian tray catalog. Extracted from source commit e8cf9c5.
Replaces the English about subtitle with the Hungarian translation in the web UI catalog. Extracted from source commit 960219a.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant