如何在 Windows 10 中下载并安装所有可用语言?

如何在 Windows 10 中下载并安装所有可用语言?

为了测试目的,我需要在 Windows 10 上安装所有语言,如果我们有一个批处理脚本或来自 Microsoft 的捆绑安装程序,那就太好了?

答案1

要下载所有语言包,您需要有 Windows 语言包 ISO。如果您有 MSDN,您可以在那里获取。如果没有,这是我通过 Google 找到的一个 - 关联

获得 ISO 后,打开它并将所有语言包复制到一个文件夹中,其文件名类似于lp*.cab

您可以通过 Windows 自带的 lpksetup 命令安装所有包:

lpksetup.exe /i * /p <path>

有些语言包需要重启电脑。有些语言包则需要你没有合适的键盘。我怀疑安装了这么多包后,你会遇到一些新问题。

了解更多信息 :

答案2

您可以使用Install-LanguagePowerShell cmdlet 安装部分或全部可用的语言包适用于您的 Windows 版本。它将自动通过 Internet 从 Microsoft 的服务器获取语言包文件,而无需您在“设置”中点击数百次或手动下载仅供 OEM、设备合作伙伴和批量许可证持有者使用的 ISO 文件。

# for Windows 10, see https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/available-language-packs-for-windows?view=windows-10
# all Windows 11 language packs:
$allLanguages = @("af-ZA", "am-ET", "ar-SA", "as-IN", "az-Latn-AZ", "be-BY",
    "bg-BG", "bn-IN", "bs-Latn-BA", "ca-ES", "ca-ES-valencia", "chr-CHER-US",
    "cs-CZ", "cy-GB", "da-DK", "de-DE", "el-GR", "en-GB", "en-US", "es-ES",
    "es-MX", "et-EE", "eu-ES", "fa-IR", "fi-FI", "fil-PH", "fr-CA", "fr-FR",
    "ga-IE", "gd-GB", "gl-ES", "gu-IN", "he-IL", "hi-IN", "hr-HR", "hu-HU",
    "hy-AM", "id-ID", "is-IS", "it-IT", "ja-JP", "ka-GE", "kk-KZ", "km-KH",
    "kn-IN", "kok-IN", "ko-KR", "lb-LU", "lo-LA", "lt-LT", "lv-LV", "mi-NZ",
    "mk-MK", "ml-IN", "mr-IN", "ms-MY", "mt-MT", "nb-NO", "ne-NP", "nl-NL",
    "nn-NO", "or-IN", "pa-IN", "pl-PL", "pt-BR", "pt-PT", "quz-PE", "ro-RO",
    "ru-RU", "sk-SK", "sl-SI", "sq-AL", "sr-Cyrl-BA", "sr-Cyrl-RS", "sr-Latn-RS",
    "sv-SE", "ta-IN", "te-IN", "th-TH", "tr-TR", "tt-RU", "ug-CN", "uk-UA",
    "ur-PK", "uz-Latn-UZ", "vi-VN", "zh-CN", "zh-TW")

echo "Installing $($allLanguages.Count) languages"

foreach ($language in $allLanguages) {
    if ((Get-InstalledLanguage $language).Count -eq 0) {
        echo "Installing language $language"
        Install-Language $language -ExcludeFeatures
    } else {
        echo "Skipping language $language because it is already installed"
    }
}

echo "There are $((Get-InstalledLanguage).Count) languages installed"

要查看安装了哪些语言包,你可以运行Get-InstalledLanguage

PS> Get-InstalledLanguage

Language Language Packs  Language Features
-------- --------------  -----------------
af-ZA    LXP             BasicTyping
am-ET    LXP             BasicTyping
ar-SA    LpCab           BasicTyping, OCR
...

您还可以计算当前安装了多少个语言包:

PS> (Get-InstalledLanguage).Count
108

即使有快速的互联网连接、CPU 和 SSD,安装每个语言包也需要数十 GB 的驱动器空间和数十个小时。

Valencia 语言界面包 ( ca-ES-valencia) 似乎从未成功安装。

相关内容