From 1a75580c1d1cec7052a6bd79702c997066e082ab Mon Sep 17 00:00:00 2001 From: Dani6ca-T Date: Mon, 30 Nov 2026 13:09:30 +0200 Subject: [PATCH 1/4] test(i18n): validate regional backend catalog inheritance Consolidates the source-branch test commits 62030ca8, 66647b44, 2042afb4, 94b1f459 and a73e18bf, 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. --- tests/i18n-backend.test.cjs | 17 ++++++++++++----- tests/i18n.test.cjs | 17 +++++++++++++++-- 2 files changed, 27 insertions(+), 7 deletions(-) diff --git a/tests/i18n-backend.test.cjs b/tests/i18n-backend.test.cjs index 2c1d66bd..54f5bd5e 100644 --- a/tests/i18n-backend.test.cjs +++ b/tests/i18n-backend.test.cjs @@ -195,23 +195,30 @@ const backendTextCode = fs.readFileSync(path.join(root, 'Services/Localization/B // We need to test the actual compiled code. Let's create a test that runs the actual .NET code. // For now, test the catalog integrity. -test('All 22 backend catalogs have exactly the English keys', () => { +const regionalParents = { en_GB: 'en', en_US: 'en', pt_BR: 'pt', zh_TW: 'zh' }; +function effectiveBackendCatalog(lang) { + const parent = regionalParents[lang]; + return parent ? { ...backendCatalogs[parent], ...backendCatalogs[lang] } : backendCatalogs[lang]; +} + +test('All 22 backend catalogs resolve to exactly the English keys', () => { const codes = Object.keys(backendCatalogs).sort(); assert.equal(codes.length, 22); const english = Object.keys(backendCatalogs.en).sort(); for (const [lang, table] of Object.entries(backendCatalogs)) { - assert.deepEqual(Object.keys(table).sort(), english, lang); for (const [key, value] of Object.entries(table)) { assert.equal(typeof value, 'string', lang + ':' + key); assert.ok(value.length > 0, lang + ':' + key + ' is empty'); } + assert.deepEqual(Object.keys(effectiveBackendCatalog(lang)).sort(), english, lang); } }); -test('Backend catalogs have matching placeholders', () => { +test('Effective backend catalogs have matching placeholders', () => { // Cada placeholder una vez: una traducción puede repetir {0} (string.Format lo admite). - const placeholders = value => [...new Set([...value.matchAll(/\{(\w+)\}/g)].map(m => m[1]))].sort(); - for (const [lang, table] of Object.entries(backendCatalogs)) { + const placeholders = value => [...new Set([...value.matchAll(/\{(\d+)(?:,[^}:]+)?(?::[^}]+)?\}/g)].map(m => m[1]))].sort(); + for (const lang of Object.keys(backendCatalogs)) { + const table = effectiveBackendCatalog(lang); for (const [key, value] of Object.entries(table)) { const ph = placeholders(value); const enPh = placeholders(backendCatalogs.en[key]); diff --git a/tests/i18n.test.cjs b/tests/i18n.test.cjs index d7ed0fa0..3bbc9e39 100644 --- a/tests/i18n.test.cjs +++ b/tests/i18n.test.cjs @@ -200,15 +200,28 @@ test('missing driver log translations fall back to English with intact parameter assert.equal(e.I18n.driverLog('[01:02:03] Instalador salió con código 1603.'), '[01:02:03] Installer exited with code 1603.'); }); -test('tray, installer and backend catalogs have matching keys, formatting and no empty translations', () => { +test('tray, installer and backend catalogs have matching effective keys, formatting and no empty translations', () => { const codes=Object.keys(catalogs); + const localeParents=JSON.parse(fs.readFileSync(path.join(root,'Core/Localization/locales.json'),'utf8')).parents; + const backendText=fs.readFileSync(path.join(root,'Services/Localization/BackendText.cs'),'utf8'); + for (const [child,parent] of Object.entries(localeParents)) { + assert.ok(backendText.includes('["'+child+'"] = "'+parent+'"'), 'BackendText parent fallback: '+child); + } for (const folder of ['Services/TrayApp/Locales','Core/Installer/messages','Services/Localization/Locales']) { const english=JSON.parse(fs.readFileSync(path.join(root,folder,'en.json'),'utf8')); for (const lang of codes) { const table=JSON.parse(fs.readFileSync(path.join(root,folder,lang+'.json'),'utf8')); - assert.deepEqual(Object.keys(table).sort(),Object.keys(english).sort(),folder+':'+lang); for (const [key,value] of Object.entries(table)) { + assert.ok(Object.hasOwn(english,key),folder+':'+lang+' unexpected key '+key); + assert.equal(typeof value,'string',folder+':'+lang+':'+key); assert.ok(value.trim(),lang+':'+key); + } + const parent=folder==='Services/Localization/Locales' ? localeParents[lang] : null; + const effective=parent + ? {...JSON.parse(fs.readFileSync(path.join(root,folder,parent+'.json'),'utf8')),...table} + : table; + assert.deepEqual(Object.keys(effective).sort(),Object.keys(english).sort(),folder+':'+lang); + for (const [key,value] of Object.entries(effective)) { // Mismos placeholders, cada uno una vez: una traducción puede repetir {0} o %1. const marks=v=>[...new Set(v.match(/\{\w+\}|%[n1-9]/g)||[])].sort(); assert.deepEqual(marks(value),marks(english[key]),lang+':'+key); From c166791f528c17682c4741a91c418357e122e4d2 Mon Sep 17 00:00:00 2001 From: Dani6ca-T Date: Mon, 30 Nov 2026 13:09:33 +0200 Subject: [PATCH 2/4] i18n(tray): localize tray window log messages 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 b09f1667 and the 18 'Add localized tray window log messages' catalog commits (6dec6e96 through b2a29aa7). --- Services/Localization/Locales/bg.json | 5 ++++- Services/Localization/Locales/cs.json | 5 ++++- Services/Localization/Locales/de.json | 5 ++++- Services/Localization/Locales/en.json | 5 ++++- Services/Localization/Locales/es.json | 5 ++++- Services/Localization/Locales/fr.json | 5 ++++- Services/Localization/Locales/hu.json | 5 ++++- Services/Localization/Locales/it.json | 5 ++++- Services/Localization/Locales/ja.json | 5 ++++- Services/Localization/Locales/ko.json | 5 ++++- Services/Localization/Locales/pl.json | 5 ++++- Services/Localization/Locales/pt.json | 5 ++++- Services/Localization/Locales/ru.json | 5 ++++- Services/Localization/Locales/sv.json | 5 ++++- Services/Localization/Locales/tr.json | 5 ++++- Services/Localization/Locales/uk.json | 5 ++++- Services/Localization/Locales/vi.json | 5 ++++- Services/Localization/Locales/zh.json | 5 ++++- Services/TrayApp/AppWindow.cs | 7 ++++--- 19 files changed, 76 insertions(+), 21 deletions(-) diff --git a/Services/Localization/Locales/bg.json b/Services/Localization/Locales/bg.json index 6069ca15..49536d64 100644 --- a/Services/Localization/Locales/bg.json +++ b/Services/Localization/Locales/bg.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Този каталог не е в списъка.", "ext.catalogEntryMissing": "Каталогът вече не съдържа {0}.", "ext.invalidPackage": "Пакетът не е валидно разширение: {0}", - "ext.noManifest": "Пакетът няма {0}." + "ext.noManifest": "Пакетът няма {0}.", + "app.webView2Unavailable": "WebView2 не е наличен; панелът ще се отвори в браузъра по подразбиране: {0}", + "app.externalOpenFailed": "Неуспешно отваряне на {0}: {1}", + "app.themeApplyFailed": "Неуспешно прилагане на темата на прозореца: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/cs.json b/Services/Localization/Locales/cs.json index 216fcc2c..41a63f1b 100644 --- a/Services/Localization/Locales/cs.json +++ b/Services/Localization/Locales/cs.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Tento katalog v seznamu není.", "ext.catalogEntryMissing": "Katalog už neuvádí {0}.", "ext.invalidPackage": "Balíček není platné rozšíření: {0}", - "ext.noManifest": "Balíček neobsahuje {0}." + "ext.noManifest": "Balíček neobsahuje {0}.", + "app.webView2Unavailable": "WebView2 není k dispozici; panel se otevře ve výchozím prohlížeči: {0}", + "app.externalOpenFailed": "Nepodařilo se otevřít {0}: {1}", + "app.themeApplyFailed": "Nepodařilo se použít motiv okna: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/de.json b/Services/Localization/Locales/de.json index cbfa5bba..10dfc77d 100644 --- a/Services/Localization/Locales/de.json +++ b/Services/Localization/Locales/de.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Dieser Katalog ist nicht in der Liste.", "ext.catalogEntryMissing": "Der Katalog führt {0} nicht mehr.", "ext.invalidPackage": "Das Paket ist keine gültige Erweiterung: {0}", - "ext.noManifest": "Das Paket enthält kein {0}." + "ext.noManifest": "Das Paket enthält kein {0}.", + "app.webView2Unavailable": "WebView2 ist nicht verfügbar; das Bedienfeld wird im Standardbrowser geöffnet: {0}", + "app.externalOpenFailed": "{0} konnte nicht geöffnet werden: {1}", + "app.themeApplyFailed": "Das Fensterthema konnte nicht angewendet werden: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/en.json b/Services/Localization/Locales/en.json index ac47cade..65e463d2 100644 --- a/Services/Localization/Locales/en.json +++ b/Services/Localization/Locales/en.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "That catalog isn't in the list.", "ext.catalogEntryMissing": "The catalog no longer lists {0}.", "ext.invalidPackage": "The package isn't a valid extension: {0}", - "ext.noManifest": "The package has no {0}." + "ext.noManifest": "The package has no {0}.", + "app.webView2Unavailable": "WebView2 is unavailable; opening the panel in the default browser: {0}", + "app.externalOpenFailed": "Could not open {0}: {1}", + "app.themeApplyFailed": "Could not apply the window theme: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/es.json b/Services/Localization/Locales/es.json index 96e45ccb..79794cb5 100644 --- a/Services/Localization/Locales/es.json +++ b/Services/Localization/Locales/es.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Ese catálogo no está en la lista.", "ext.catalogEntryMissing": "El catálogo ya no incluye {0}.", "ext.invalidPackage": "El paquete no es una extensión válida: {0}", - "ext.noManifest": "El paquete no tiene {0}." + "ext.noManifest": "El paquete no tiene {0}.", + "app.webView2Unavailable": "WebView2 no está disponible; se abrirá el panel en el navegador predeterminado: {0}", + "app.externalOpenFailed": "No se pudo abrir {0}: {1}", + "app.themeApplyFailed": "No se pudo aplicar el tema de la ventana: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/fr.json b/Services/Localization/Locales/fr.json index c7d8e45f..fc82e083 100644 --- a/Services/Localization/Locales/fr.json +++ b/Services/Localization/Locales/fr.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Ce catalogue n'est pas dans la liste.", "ext.catalogEntryMissing": "Le catalogue ne liste plus {0}.", "ext.invalidPackage": "Le paquet n'est pas une extension valide : {0}", - "ext.noManifest": "Le paquet ne contient pas de {0}." + "ext.noManifest": "Le paquet ne contient pas de {0}.", + "app.webView2Unavailable": "WebView2 n’est pas disponible ; ouverture du panneau dans le navigateur par défaut : {0}", + "app.externalOpenFailed": "Impossible d’ouvrir {0} : {1}", + "app.themeApplyFailed": "Impossible d’appliquer le thème de la fenêtre : {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/hu.json b/Services/Localization/Locales/hu.json index 6f44ca00..1ad81016 100644 --- a/Services/Localization/Locales/hu.json +++ b/Services/Localization/Locales/hu.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Ez a katalógus nem szerepel a listában.", "ext.catalogEntryMissing": "A katalógus már nem tartalmazza ezt: {0}.", "ext.invalidPackage": "A csomag nem érvényes bővítmény: {0}", - "ext.noManifest": "A csomagban nincs {0}." + "ext.noManifest": "A csomagban nincs {0}.", + "app.webView2Unavailable": "A WebView2 nem érhető el; a panel megnyitása az alapértelmezett böngészőben: {0}", + "app.externalOpenFailed": "Nem sikerült megnyitni: {0}. Hiba: {1}", + "app.themeApplyFailed": "Nem sikerült alkalmazni az ablak témáját: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/it.json b/Services/Localization/Locales/it.json index 43ec084a..a22fcc09 100644 --- a/Services/Localization/Locales/it.json +++ b/Services/Localization/Locales/it.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Questo catalogo non è nell'elenco.", "ext.catalogEntryMissing": "Il catalogo non elenca più {0}.", "ext.invalidPackage": "Il pacchetto non è un'estensione valida: {0}", - "ext.noManifest": "Il pacchetto non contiene {0}." + "ext.noManifest": "Il pacchetto non contiene {0}.", + "app.webView2Unavailable": "WebView2 non è disponibile; apertura del pannello nel browser predefinito: {0}", + "app.externalOpenFailed": "Impossibile aprire {0}: {1}", + "app.themeApplyFailed": "Impossibile applicare il tema della finestra: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/ja.json b/Services/Localization/Locales/ja.json index 927f7801..042ab9c9 100644 --- a/Services/Localization/Locales/ja.json +++ b/Services/Localization/Locales/ja.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "そのカタログは一覧にありません。", "ext.catalogEntryMissing": "カタログに {0} が含まれなくなりました。", "ext.invalidPackage": "パッケージは有効な拡張機能ではありません: {0}", - "ext.noManifest": "パッケージに {0} がありません。" + "ext.noManifest": "パッケージに {0} がありません。", + "app.webView2Unavailable": "WebView2 を利用できません。既定のブラウザーでパネルを開きます: {0}", + "app.externalOpenFailed": "{0} を開けませんでした: {1}", + "app.themeApplyFailed": "ウィンドウのテーマを適用できませんでした: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/ko.json b/Services/Localization/Locales/ko.json index 8124d5a1..ebe74e4b 100644 --- a/Services/Localization/Locales/ko.json +++ b/Services/Localization/Locales/ko.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "해당 카탈로그가 목록에 없습니다.", "ext.catalogEntryMissing": "카탈로그에 더 이상 {0}이(가) 없습니다.", "ext.invalidPackage": "패키지가 유효한 확장이 아닙니다: {0}", - "ext.noManifest": "패키지에 {0}이(가) 없습니다." + "ext.noManifest": "패키지에 {0}이(가) 없습니다.", + "app.webView2Unavailable": "WebView2를 사용할 수 없어 기본 브라우저에서 패널을 엽니다: {0}", + "app.externalOpenFailed": "{0}을(를) 열 수 없습니다: {1}", + "app.themeApplyFailed": "창 테마를 적용할 수 없습니다: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/pl.json b/Services/Localization/Locales/pl.json index 16ceb206..58143cb1 100644 --- a/Services/Localization/Locales/pl.json +++ b/Services/Localization/Locales/pl.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Tego katalogu nie ma na liście.", "ext.catalogEntryMissing": "Katalog nie zawiera już {0}.", "ext.invalidPackage": "Pakiet nie jest prawidłowym rozszerzeniem: {0}", - "ext.noManifest": "Pakiet nie zawiera {0}." + "ext.noManifest": "Pakiet nie zawiera {0}.", + "app.webView2Unavailable": "WebView2 jest niedostępne; panel zostanie otwarty w domyślnej przeglądarce: {0}", + "app.externalOpenFailed": "Nie można otworzyć {0}: {1}", + "app.themeApplyFailed": "Nie można zastosować motywu okna: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/pt.json b/Services/Localization/Locales/pt.json index 094e1503..3ccdf225 100644 --- a/Services/Localization/Locales/pt.json +++ b/Services/Localization/Locales/pt.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Esse catálogo não está na lista.", "ext.catalogEntryMissing": "O catálogo já não inclui {0}.", "ext.invalidPackage": "O pacote não é uma extensão válida: {0}", - "ext.noManifest": "O pacote não tem {0}." + "ext.noManifest": "O pacote não tem {0}.", + "app.webView2Unavailable": "O WebView2 não está disponível; a abrir o painel no navegador predefinido: {0}", + "app.externalOpenFailed": "Não foi possível abrir {0}: {1}", + "app.themeApplyFailed": "Não foi possível aplicar o tema da janela: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/ru.json b/Services/Localization/Locales/ru.json index c101684a..f33725d3 100644 --- a/Services/Localization/Locales/ru.json +++ b/Services/Localization/Locales/ru.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Этого каталога нет в списке.", "ext.catalogEntryMissing": "В каталоге больше нет {0}.", "ext.invalidPackage": "Пакет не является допустимым расширением: {0}", - "ext.noManifest": "В пакете нет {0}." + "ext.noManifest": "В пакете нет {0}.", + "app.webView2Unavailable": "WebView2 недоступен; панель будет открыта в браузере по умолчанию: {0}", + "app.externalOpenFailed": "Не удалось открыть {0}: {1}", + "app.themeApplyFailed": "Не удалось применить тему окна: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/sv.json b/Services/Localization/Locales/sv.json index 7f75996d..c92c6556 100644 --- a/Services/Localization/Locales/sv.json +++ b/Services/Localization/Locales/sv.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Den katalogen finns inte i listan.", "ext.catalogEntryMissing": "Katalogen listar inte längre {0}.", "ext.invalidPackage": "Paketet är inte ett giltigt tillägg: {0}", - "ext.noManifest": "Paketet saknar {0}." + "ext.noManifest": "Paketet saknar {0}.", + "app.webView2Unavailable": "WebView2 är inte tillgängligt; panelen öppnas i standardwebbläsaren: {0}", + "app.externalOpenFailed": "Det gick inte att öppna {0}: {1}", + "app.themeApplyFailed": "Det gick inte att använda fönstrets tema: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/tr.json b/Services/Localization/Locales/tr.json index ef9d50de..d12494b7 100644 --- a/Services/Localization/Locales/tr.json +++ b/Services/Localization/Locales/tr.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Bu katalog listede yok.", "ext.catalogEntryMissing": "Katalog artık {0} içermiyor.", "ext.invalidPackage": "Paket geçerli bir uzantı değil: {0}", - "ext.noManifest": "Pakette {0} yok." + "ext.noManifest": "Pakette {0} yok.", + "app.webView2Unavailable": "WebView2 kullanılamıyor; panel varsayılan tarayıcıda açılıyor: {0}", + "app.externalOpenFailed": "{0} açılamadı: {1}", + "app.themeApplyFailed": "Pencere teması uygulanamadı: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/uk.json b/Services/Localization/Locales/uk.json index 43e7d664..c6303347 100644 --- a/Services/Localization/Locales/uk.json +++ b/Services/Localization/Locales/uk.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Цього каталогу немає у списку.", "ext.catalogEntryMissing": "У каталозі більше немає {0}.", "ext.invalidPackage": "Пакет не є дійсним розширенням: {0}", - "ext.noManifest": "У пакеті немає {0}." + "ext.noManifest": "У пакеті немає {0}.", + "app.webView2Unavailable": "WebView2 недоступний; панель буде відкрито у браузері за замовчуванням: {0}", + "app.externalOpenFailed": "Не вдалося відкрити {0}: {1}", + "app.themeApplyFailed": "Не вдалося застосувати тему вікна: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/vi.json b/Services/Localization/Locales/vi.json index 4d4a4829..bde61734 100644 --- a/Services/Localization/Locales/vi.json +++ b/Services/Localization/Locales/vi.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "Danh mục đó không có trong danh sách.", "ext.catalogEntryMissing": "Danh mục không còn liệt kê {0}.", "ext.invalidPackage": "Gói không phải là tiện ích mở rộng hợp lệ: {0}", - "ext.noManifest": "Gói không có {0}." + "ext.noManifest": "Gói không có {0}.", + "app.webView2Unavailable": "WebView2 không khả dụng; đang mở bảng điều khiển trong trình duyệt mặc định: {0}", + "app.externalOpenFailed": "Không thể mở {0}: {1}", + "app.themeApplyFailed": "Không thể áp dụng giao diện cửa sổ: {0}" } \ No newline at end of file diff --git a/Services/Localization/Locales/zh.json b/Services/Localization/Locales/zh.json index 9234f961..d89ab80d 100644 --- a/Services/Localization/Locales/zh.json +++ b/Services/Localization/Locales/zh.json @@ -112,5 +112,8 @@ "ext.catalogNotFound": "该目录不在列表中。", "ext.catalogEntryMissing": "目录中已不再列出 {0}。", "ext.invalidPackage": "软件包不是有效的扩展:{0}", - "ext.noManifest": "软件包中没有 {0}。" + "ext.noManifest": "软件包中没有 {0}。", + "app.webView2Unavailable": "WebView2 不可用;正在默认浏览器中打开控制面板:{0}", + "app.externalOpenFailed": "无法打开 {0}:{1}", + "app.themeApplyFailed": "无法应用窗口主题:{0}" } \ No newline at end of file diff --git a/Services/TrayApp/AppWindow.cs b/Services/TrayApp/AppWindow.cs index e915fa24..e0277eaa 100644 --- a/Services/TrayApp/AppWindow.cs +++ b/Services/TrayApp/AppWindow.cs @@ -3,6 +3,7 @@ using System.Windows.Forms; using Microsoft.Web.WebView2.Core; using Microsoft.Web.WebView2.WinForms; +using OpenStreamMS.Services.Localization; namespace OpenStreamMS.Services.TrayApp; @@ -70,7 +71,7 @@ private async Task InitAsync() } catch (Exception ex) { - Logger.Warning($"[App] WebView2 no disponible, se abre el navegador: {ex.Message}"); + Logger.Warning(BackendText.Get("app.webView2Unavailable", ex.Message)); OpenExternal(_baseUri.AbsoluteUri); Close(); return; @@ -123,7 +124,7 @@ private static void OpenExternal(string uri) { if (!Uri.TryCreate(uri, UriKind.Absolute, out var u) || u.Scheme is not ("http" or "https")) return; try { Process.Start(new ProcessStartInfo(u.AbsoluteUri) { UseShellExecute = true }); } - catch (Exception ex) { Logger.Warning($"[App] No se pudo abrir {u.AbsoluteUri}: {ex.Message}"); } + catch (Exception ex) { Logger.Warning(BackendText.Get("app.externalOpenFailed", u.AbsoluteUri, ex.Message)); } } // ── Barra de título del color del tema ────────────────────────────────────── @@ -159,7 +160,7 @@ private void OnThemeMessage(string json) BackColor = color; ApplyCaption(color, dark); } - catch (Exception ex) { Logger.Warning($"[App] Tema de la ventana no aplicado: {ex.Message}"); } + catch (Exception ex) { Logger.Warning(BackendText.Get("app.themeApplyFailed", ex.Message)); } } /// Modo oscuro de la barra (Windows 10/11) y, en Windows 11, su color y el del texto. From c013b098791819f8d68aed93fd0b66e310dc0d83 Mon Sep 17 00:00:00 2001 From: Dani6ca-T Date: Mon, 30 Nov 2026 13:09:35 +0200 Subject: [PATCH 3/4] i18n(tray): translate Italian tray running state Replaces the English 'On' with 'In esecuzione' in the Italian tray catalog. Extracted from source commit e8cf9c5d. --- Services/TrayApp/Locales/it.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/TrayApp/Locales/it.json b/Services/TrayApp/Locales/it.json index af08f471..1ceb58a4 100644 --- a/Services/TrayApp/Locales/it.json +++ b/Services/TrayApp/Locales/it.json @@ -11,7 +11,7 @@ "open": "Apri OpenStreamMS", "exit": "Esci", "offline": "OpenStreamMS: il servizio non risponde", - "state.Running": "On", + "state.Running": "In esecuzione", "state.Starting": "Inizio...", "state.Stopping": "Arresto...", "state.Stopped": "Spento", From 08c2769a0a3313ca40e4558284da1cec78636d87 Mon Sep 17 00:00:00 2001 From: Dani6ca-T Date: Mon, 30 Nov 2026 13:09:38 +0200 Subject: [PATCH 4/4] i18n(web): translate Hungarian about subtitle Replaces the English about subtitle with the Hungarian translation in the web UI catalog. Extracted from source commit 960219a3. --- Core/wwwroot/locales/hu.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/wwwroot/locales/hu.json b/Core/wwwroot/locales/hu.json index 8b652716..6658b53e 100644 --- a/Core/wwwroot/locales/hu.json +++ b/Core/wwwroot/locales/hu.json @@ -284,7 +284,7 @@ "log.last_1000": "Utolsó 1000 sor", "log.close": "Bezárás", "about.title": "Körülbelül", - "about.subtitle": "Game Streaming Service for Windows", + "about.subtitle": "Játékstreaming-szolgáltatás Windowsra", "about.description_html": "Windows szolgáltatás, amely izolált munkameneteket hoz létre és kezel a Sunshine és Moonlight számokkal, valamint helyi munkaállomásokkal, így többen is használhatják ugyanazt a számítógépet. Mindent webes felületről vagy REST API vezérelhet.", "about.feat1.title": "Izolált RDP ülések", "about.feat1.desc": "Minden munkamenet a saját Windows felhasználója alatt fut egy független Sunshine",