From 7d286ede0945643b9e2f162e86c48360eb983252 Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Sun, 11 Oct 2026 20:41:03 +0200 Subject: [PATCH] fix: update Bing News references to Microsoft News and enhance descriptions across multiple languages (#810) --- Config/Apps.json | 12 ++---------- Config/Languages/en-US/Apps.json | 8 ++------ Config/Languages/it-IT/Apps.json | 8 ++------ Config/Languages/it-IT/Features.json | 7 +++++++ Config/Languages/ja-JP/Apps.json | 8 ++------ Config/Languages/nl-NL/Apps.json | 8 ++------ Config/Languages/pt-BR/Apps.json | 8 ++------ Config/Languages/pt-BR/Features.json | 7 +++++++ Config/Languages/zh-CN/Apps.json | 8 ++------ Tests/MainWindow-AppSelection.Tests.ps1 | 14 ++++++++++---- 10 files changed, 38 insertions(+), 50 deletions(-) diff --git a/Config/Apps.json b/Config/Apps.json index d92e404..f0f21b4 100644 --- a/Config/Apps.json +++ b/Config/Apps.json @@ -50,9 +50,9 @@ "RemovalMethod": "Appx" }, { - "FriendlyName": "Bing News", + "FriendlyName": "Microsoft News", "AppId": "Microsoft.BingNews", - "Description": "News aggregator via Bing (discontinued)", + "Description": "News aggregator app. Brings together breaking news, personalized article feeds, and global current events", "SelectedByDefault": true, "Recommendation": "safe", "RemovalMethod": "Appx" @@ -193,14 +193,6 @@ "Recommendation": "safe", "RemovalMethod": "Appx" }, - { - "FriendlyName": "Microsoft News", - "AppId": "Microsoft.News", - "Description": "Microsoft News app for Windows", - "SelectedByDefault": true, - "Recommendation": "safe", - "RemovalMethod": "Appx" - }, { "FriendlyName": "OneNote", "AppId": "Microsoft.Office.OneNote", diff --git a/Config/Languages/en-US/Apps.json b/Config/Languages/en-US/Apps.json index 12c7fa2..15b6b8a 100644 --- a/Config/Languages/en-US/Apps.json +++ b/Config/Languages/en-US/Apps.json @@ -24,8 +24,8 @@ "Description": "Health and fitness tracking/news via Bing (discontinued)" }, "Microsoft.BingNews": { - "FriendlyName": "Bing News", - "Description": "News aggregator via Bing (discontinued)" + "FriendlyName": "Microsoft News", + "Description": "News aggregator app. Brings together breaking news, personalized article feeds, and global current events" }, "Microsoft.BingSports": { "FriendlyName": "Bing Sports", @@ -95,10 +95,6 @@ "FriendlyName": "Network Speed Test", "Description": "Internet connection speed test utility" }, - "Microsoft.News": { - "FriendlyName": "Microsoft News", - "Description": "Microsoft News app for Windows" - }, "Microsoft.Office.OneNote": { "FriendlyName": "OneNote", "Description": "Digital note-taking app (Universal Windows Platform version)" diff --git a/Config/Languages/it-IT/Apps.json b/Config/Languages/it-IT/Apps.json index 7c056a2..4130726 100644 --- a/Config/Languages/it-IT/Apps.json +++ b/Config/Languages/it-IT/Apps.json @@ -24,8 +24,8 @@ "Description": "Monitoraggio e notizie su salute e fitness tramite Bing (discontinuato)" }, "Microsoft.BingNews": { - "FriendlyName": "Bing News", - "Description": "Aggregatore di notizie Bing (discontinuato)" + "FriendlyName": "Microsoft News", + "Description": "App di aggregazione di notizie. Riunisce le ultime notizie, feed di articoli personalizzati e notizie di attualità da tutto il mondo" }, "Microsoft.BingSports": { "FriendlyName": "Bing Sports", @@ -95,10 +95,6 @@ "FriendlyName": "Network Speed Test", "Description": "Utilità per testare la velocità della connessione Internet" }, - "Microsoft.News": { - "FriendlyName": "Microsoft News", - "Description": "App Microsoft News per Windows" - }, "Microsoft.Office.OneNote": { "FriendlyName": "OneNote", "Description": "App per prendere appunti digitali (versione Universal Windows Platform)" diff --git a/Config/Languages/it-IT/Features.json b/Config/Languages/it-IT/Features.json index 082ec29..57f4797 100644 --- a/Config/Languages/it-IT/Features.json +++ b/Config/Languages/it-IT/Features.json @@ -202,6 +202,13 @@ "UndoLabel": "Abilita le funzionalità IA in Microsoft Edge", "ApplyUndoText": "Abilitazione delle funzionalità IA in Microsoft Edge" }, + "DisableChromeAI": { + "Label": "Disabilita le funzionalità IA in Google Chrome", + "ToolTip": "Disattiva gli strumenti e le integrazioni IA incorporati in Google Chrome, tra cui Gemini, ricerca e suggerimenti basati sull'IA, assistenza alla scrittura, compilazione automatica e altro. Rimuove anche i modelli IA locali. Questa funzionalità utilizza criteri che bloccheranno alcune impostazioni.", + "ApplyText": "Disabilitazione delle funzionalità IA in Google Chrome", + "UndoLabel": "Abilita le funzionalità IA in Google Chrome", + "ApplyUndoText": "Abilitazione delle funzionalità IA in Google Chrome" + }, "DisablePaintAI": { "Label": "Disabilita le funzionalità IA in Paint", "ToolTip": "Disattiva le funzionalità IA in Paint, come gli strumenti basati sull'IA per la generazione e la modifica delle immagini. Questa funzionalità utilizza criteri che bloccheranno alcune impostazioni.", diff --git a/Config/Languages/ja-JP/Apps.json b/Config/Languages/ja-JP/Apps.json index e49d025..c0fe162 100644 --- a/Config/Languages/ja-JP/Apps.json +++ b/Config/Languages/ja-JP/Apps.json @@ -24,8 +24,8 @@ "Description": "Bing による健康・フィットネスの記録とニュースです (提供終了)" }, "Microsoft.BingNews": { - "FriendlyName": "Bing News", - "Description": "Bing によるニュース アグリゲーターです (提供終了)" + "FriendlyName": "Microsoft ニュース", + "Description": "ニュースを集約するアプリです。速報、パーソナライズされた記事フィード、世界の時事ニュースをまとめて提供します" }, "Microsoft.BingSports": { "FriendlyName": "Bing Sports", @@ -95,10 +95,6 @@ "FriendlyName": "Network Speed Test", "Description": "インターネット接続速度のテスト ユーティリティです" }, - "Microsoft.News": { - "FriendlyName": "Microsoft ニュース", - "Description": "Windows 向け Microsoft ニュース アプリです" - }, "Microsoft.Office.OneNote": { "FriendlyName": "OneNote", "Description": "デジタル ノート アプリです (ユニバーサル Windows プラットフォーム版)" diff --git a/Config/Languages/nl-NL/Apps.json b/Config/Languages/nl-NL/Apps.json index 8aea6ee..5846d34 100644 --- a/Config/Languages/nl-NL/Apps.json +++ b/Config/Languages/nl-NL/Apps.json @@ -24,8 +24,8 @@ "Description": "Houdt je gezondheid en conditie bij en toont nieuws via Bing (niet meer ondersteund)" }, "Microsoft.BingNews": { - "FriendlyName": "Bing News", - "Description": "Nieuws via Bing (niet meer beschikbaar)" + "FriendlyName": "Microsoft Nieuws", + "Description": "Nieuwsapp die het laatste nieuws, gepersonaliseerde artikelfeeds en actualiteiten uit de hele wereld samenbrengt" }, "Microsoft.BingSports": { "FriendlyName": "Bing Sport", @@ -95,10 +95,6 @@ "FriendlyName": "Network Speed Test", "Description": "Meet de snelheid van je internetverbinding" }, - "Microsoft.News": { - "FriendlyName": "Microsoft Nieuws", - "Description": "Microsoft News-app voor Windows" - }, "Microsoft.Office.OneNote": { "FriendlyName": "OneNote", "Description": "Digitale notitie-app (UWP-versie)" diff --git a/Config/Languages/pt-BR/Apps.json b/Config/Languages/pt-BR/Apps.json index 5448525..44519eb 100644 --- a/Config/Languages/pt-BR/Apps.json +++ b/Config/Languages/pt-BR/Apps.json @@ -24,8 +24,8 @@ "Description": "Acompanhamento de saúde e condicionamento físico, além de notícias, pelo Bing (descontinuado)" }, "Microsoft.BingNews": { - "FriendlyName": "Bing News", - "Description": "Agregador de notícias pelo Bing (substituído por Microsoft News/Start)" + "FriendlyName": "Microsoft News", + "Description": "App agregador de notícias. Reúne notícias de última hora, feeds personalizados de artigos e acontecimentos atuais de todo o mundo" }, "Microsoft.BingSports": { "FriendlyName": "Bing Sports", @@ -95,10 +95,6 @@ "FriendlyName": "Network Speed Test", "Description": "Utilitário para testar a velocidade da conexão com a internet" }, - "Microsoft.News": { - "FriendlyName": "Microsoft News", - "Description": "Agregador de notícias (substituiu o Bing News, agora integrado ao Microsoft Start)" - }, "Microsoft.Office.OneNote": { "FriendlyName": "OneNote", "Description": "App de anotações digitais (versão da Plataforma Universal do Windows)" diff --git a/Config/Languages/pt-BR/Features.json b/Config/Languages/pt-BR/Features.json index a041bec..05ab435 100644 --- a/Config/Languages/pt-BR/Features.json +++ b/Config/Languages/pt-BR/Features.json @@ -202,6 +202,13 @@ "UndoLabel": "Habilitar funcionalidades de IA no Microsoft Edge", "ApplyUndoText": "Habilitando funcionalidades de IA no Microsoft Edge" }, + "DisableChromeAI": { + "Label": "Desabilitar funcionalidades de IA no Google Chrome", + "ToolTip": "Desabilita as ferramentas e integrações de IA incorporadas ao Google Chrome, incluindo Gemini, pesquisa e sugestões com IA, assistência à escrita, preenchimento automático e muito mais. Também remove os modelos locais de IA. Esta funcionalidade usa políticas, que bloqueiam certas configurações.", + "ApplyText": "Desabilitando funcionalidades de IA no Google Chrome", + "UndoLabel": "Habilitar funcionalidades de IA no Google Chrome", + "ApplyUndoText": "Habilitando funcionalidades de IA no Google Chrome" + }, "DisablePaintAI": { "Label": "Desabilitar funcionalidades de IA no Paint", "ToolTip": "Isto desabilitará funcionalidades de IA no Paint, como a geração e edição de imagens com IA. Esta funcionalidade usa políticas, que bloqueiam certas configurações.", diff --git a/Config/Languages/zh-CN/Apps.json b/Config/Languages/zh-CN/Apps.json index 3e6892e..87f57df 100644 --- a/Config/Languages/zh-CN/Apps.json +++ b/Config/Languages/zh-CN/Apps.json @@ -24,8 +24,8 @@ "Description": "必应健康与健身记录及资讯(已停止维护)" }, "Microsoft.BingNews": { - "FriendlyName": "必应资讯", - "Description": "通过必应聚合新闻(已停止支持)" + "FriendlyName": "Microsoft 资讯", + "Description": "新闻聚合应用,汇集突发新闻、个性化文章推送和全球时事资讯" }, "Microsoft.BingSports": { "FriendlyName": "必应体育", @@ -95,10 +95,6 @@ "FriendlyName": "网络速度测试", "Description": "互联网连接速度测试工具" }, - "Microsoft.News": { - "FriendlyName": "Microsoft 资讯", - "Description": "适用于 Windows 的 Microsoft 新闻应用" - }, "Microsoft.Office.OneNote": { "FriendlyName": "笔记(OneNote)", "Description": "数字笔记应用(通用 Windows 平台版本)" diff --git a/Tests/MainWindow-AppSelection.Tests.ps1 b/Tests/MainWindow-AppSelection.Tests.ps1 index 507ee39..7d58a4f 100644 --- a/Tests/MainWindow-AppSelection.Tests.ps1 +++ b/Tests/MainWindow-AppSelection.Tests.ps1 @@ -30,19 +30,25 @@ Describe 'Invoke-AppDetailsFromJsonAsync' { BeforeEach { $script:GuiWindow = [PSCustomObject]@{} } It 'resolves translated FriendlyName and Description inside the background runspace' { - $appDefinitions = (Get-Content -LiteralPath $script:AppsListFilePath -Raw -Encoding UTF8 | ConvertFrom-Json).Apps + $appCatalog = Import-JsonFile -filePath $script:AppsListFilePath $result = @(Invoke-AppDetailsFromJsonAsync -OnlyInstalled:$false) - $result.Count | Should -Be @($appDefinitions).Count + $result.Count | Should -Be @($appCatalog.Apps).Count $clipchamp = $result | Where-Object { $_.AppId -contains 'Clipchamp.Clipchamp' } $clipchamp.FriendlyName | Should -Be 'Clipchamp' $clipchamp.Description | Should -Be 'Video editor from Microsoft' } It 'does not return null entries when OnlyInstalled filters the runspace results' { - $result = @(Invoke-AppDetailsFromJsonAsync -OnlyInstalled:$true -InstalledList @()) + $result = Invoke-AppDetailsFromJsonAsync -OnlyInstalled:$true -InstalledList @() - @($result | Where-Object { -not $_ }).Count | Should -Be 0 + # The async helper returns $null when no installed apps match. + if ($null -eq $result) { + $result | Should -BeNullOrEmpty + } + else { + @($result | Where-Object { -not $_ }).Count | Should -Be 0 + } } }