windows Terminal显示语言修改@powershell_语言设置与update-help更新失败问题@English-US help content is available and ca
文章目录
windows Terminal显示语言修改
ref
-
目前,windows terminal 还没有开放GUI的方式修改显示语言功能
-
我们可以使用setting.json来配置语言值
settings.json
-
可以用将vscode等编辑器设置为json文件的默认编辑器,放便编辑json文件
-
打开后
setting.json
,在其中写入一个字段 -
打开后,在
setting.json
中写入一个字段- 如果要设置为中文,写入:
'language':'zh-cn'
- 如果要设置为英文,写入:
'language':'en-us'
- 如果要设置为中文,写入:
语言设置
英文版
- 这样使用命令面板会更方便一些(用中文搜命令还是比较快捷)
powershell_语言设置与update-help更新失败问题@English-US help content is available and can be installed using…
症状分析
我在win11中将显示语言设置为英语,而在powershell(7.1+)上执行update-help
提示了类似于如下的错误:
Update-Help: Failed to update Help for the module(s) 'Dism, Get-NetView, Kds, NetQos, PcsvDevice, PKI, PSReadline, Whea, WindowsUpdate' with UI culture(s) {en-US} :
One or more errors occurred. (Response status code does not indicate success: 404 (The specified blob does not exist.).).
English-US help content is available and can be installed using: Update-Help -UICulture en-US.
更改显示语言
-
也可能和系统区域设置有关联(system locale)
-
我在另一个系统上(win10)显示语言为中文
执行update-help
的时候,顺利的执行完毕(仅使用普通网络环境)
查看windows系统信息
PS D:\repos\blogs> systeminfo.exe Host Name: CXXUWN11 OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22621 N/A Build 22621 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: cxxu Registered Organization: N/A Product ID: 00330-80000-00000-AA759 Original Install Date: 12/22/2022, 10:00:41 PM System Boot Time: 3/24/2023, 7:23:18 PM System Manufacturer: TIMI System Model: RedmiBook 14 System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 142 Stepping 11 GenuineIntel ~1992 Mhz BIOS Version: TIMI RMRWL400P0503, 11/13/2019 Windows Directory: C:\Windows System Directory: C:\Windows\system32 Boot Device: \Device\HarddiskVolume1 System Locale: en-us;English (United States) Input Locale: en-us;English (United States) Time Zone: (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi Total Physical Memory: 8,039 MB Available Physical Memory: 3,297 MB Virtual Memory: Max Size: 17,255 MB Virtual Memory: Available: 5,477 MB Virtual Memory: In Use: 11,778 MB Page File Location(s): D:\pagefile.sys Domain: WORKGROUP Logon Server: \\CXXUWN11 Hotfix(s): 4 Hotfix(s) Installed. [01]: KB5022497 [02]: KB5012170 [03]: KB5023706 [04]: KB5022948 Network Card(s): 5 NIC(s) Installed. [01]: Intel(R) Wireless-AC 9462 Connection Name: Wi-Fi DHCP Enabled: Yes DHCP Server: 192.168.231.189 IP address(es) [01]: 192.168.231.165 [02]: fe80::e018:c0ae:5684:362f [03]: 2409:8929:50a:1d68:6977:7376:1f40:680f [04]: 2409:8929:50a:1d68:fd37:9a2f:d840:3dc8 [02]: Sangfor SSL VPN CS Support System VNIC Connection Name: Ethernet Status: Media disconnected [03]: TAP-Windows Adapter V9 Connection Name: cfw-tap Status: Media disconnected [04]: VMware Virtual Ethernet Adapter for VMnet1 Connection Name: VMware Network Adapter VMnet1 DHCP Enabled: Yes DHCP Server: 192.168.169.254 IP address(es) [01]: 192.168.169.1 [02]: fe80::4cda:380c:cf69:da50 [05]: VMware Virtual Ethernet Adapter for VMnet8 Connection Name: VMware Network Adapter VMnet8 DHCP Enabled: Yes DHCP Server: 192.168.128.254 IP address(es) [01]: 192.168.128.1 [02]: fe80::2c4e:7417:db02:5af6 Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed. PS D:\repos\blogs>
找出时区信息
System Locale: en-us;English (United States) Input Locale: en-us;English (United States) Time Zone: (UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」