将语言添加到 Windows 映像Add languages to Windows images

备注

要将语言添加到个人电脑,请转到“设置” > “时间和语言” > “语言”,然后选择要安装的语言 。To add a language to your personal PC, go to Settings > Time & Language > Language, and choose a language to install. 了解详细信息Learn more

可将语言和区域支持添加到 Windows 10(Windows 10 家庭单语言版和 Windows 10 Home 国家/地区特定版本除外)和 Windows Server。You can add languages and regional support to Windows 10 (except for Windows 10 Home Single Language and Windows 10 Home Country Specific editions), and Windows Server.

使用至少一种语言包及其语言组件进行 Windows 安装。Windows installations start with at least one language pack and its language components. 可以添加:You can add:

  • 语言包:Windows 本地化包以 .cab 文件形式提供,例如,Microsoft-Windows-Client-Language-Pack_x64_es-es.cab。Language packs: Localization packages for Windows, delivered as a .cab file, for example, Microsoft-Windows-Client-Language-Pack_x64_es-es.cab. 包括 UI 元素,如对话框文本、菜单项和帮助文件。Includes UI elements like text for dialog boxes, menu items, and help files.
  • 语言界面包 (LIP):部分本地化的语言包。Language Interface Packs (LIPs): Partially-localized language pack. 需要基本语言包。Requires a base language pack. 在 Windows 10 版本 1809 中,LIP 以本地体验包 (LXP) .appx 文件形式提供,例如,LanguageExperiencePack.am-et.neutral.appx。In Windows 10, version 1809, LIPs are delivered as Local Experience Packs (LXPs) .appx files, for example, LanguageExperiencePack.am-et.neutral.appx. 对于以前版本的 Windows 10,LIP 以 .cab 文件形式提供,例如,C:\Languages\es-ES\lp.cab。For previous versions of Windows 10, LIPs are delivered as .cab files, for example, C:\Languages\es-ES\lp.cab.
  • 按需功能:功能包括语言基本内容(如拼写检查)、字体、光学字符识别、手写、文本到语音转换和语音识别。Features On Demand: Features include language basics (like spell checking), fonts, optical character recognition, handwriting, text-to-speech, and speech recognition. 可通过选择不在映像中包含某些语言组件来节省磁盘空间。You can save disk space by choosing not to include some language components in your image. 虽然这种映像大小减少对于使用小型存储的低成本设备的映像创建非常有用,但这会导致语言体验不完整。While this reduction in image size can be helpful when creating images for lower-cost devices with small storage, it does lead to an incomplete language experience. 以 .cab 文件形式提供,例如,Microsoft-Windows-LanguageFeatures-Basic-fr-fr-Package。Delivered as .cab files, for example, Microsoft-Windows-LanguageFeatures-Basic-fr-fr-Package.
  • 恢复语言:Windows 恢复环境 (WinRE) 的 UI 文本。Recovery languages: UI text for the Windows Recovery Environment (WinRE). 以 .cab 文件形式提供。Delivered as .cab files. 例如:lp.cab、WinPE-Rejuv_fr-fr.cab 等。Example: lp.cab, WinPE-Rejuv_fr-fr.cab, and more.

获取语言资源:语言包 ISO 和按需功能 ISOGet language resources: Language Pack ISO and Feature on Demand ISO

  • 具有 Microsoft 软件许可条款的 OEM 和系统构建者可以从 Microsoft OEM 站点设备合作伙伴中心下载语言包 ISO 和按需功能 ISO 。OEMs and System Builders with Microsoft Software License Terms can download the Language Pack ISO and Feature on Demand ISO from the Microsoft OEM site or the Device Partner Center.

    • 对于 Windows 10 版本 1809,LIP .appx 文件及其关联的许可证文件位于语言包 ISO 上的 LocalExperiencePack 文件夹中。For Windows 10, version 1809, LIP .appx files and their associated license files are in the LocalExperiencePack folder on the Language Pack ISO.
    • 对于以前版本的 Windows,语言界面包可单独下载。For previous versions of Windows, Language Interface Packs are available as a separate download.
    • WinRE 语言包分布于语言包 ISO。WinRE language packs are distributed on the Language Pack ISO. 请勿使用 ADK 随附的 WinPE 语言包。Don't use the WinPE language packs that ship with the ADK.
  • IT 专业人员可从Microsoft 新一代批量许可站点下载语言包 。IT Professionals can download language packs from the Microsoft Next Generation Volume Licensing Site.

  • 安装 Windows 后,用户可通过选择“设置” > “时间和语言” > “语言” > “添加语言”来下载和安装更多语言 。After Windows is installed, users can download and install more languages by selecting Settings > Time & language > Language > Add a language.

注意:Notes:

  • 语言组件必须与 Windows 的版本相匹配。Language components must match the version of Windows. 例如,不能将 Windows 10 版本 1809 语言包添加到 Windows 10 版本 1803。For example, you can't add a Windows 10, version 1809 language pack to Windows 10, version 1803.
  • Windows Server:不可与 Windows 10 互换完整的语言包,但某些 LIP 可以。Windows Server: Full language packs are not interchangeable with Windows 10, but some LIPs are. 例如,可将 Windows 10 版本 1809 LIP 添加到 Windows Server 2019。For example, you can add Windows 10, version 1809 LIPs to Windows Server 2019.

注意事项Considerations

  • 安装语言,然后安装更新和应用Install languages, then updates and apps. 如果要向已包含应用或更新的映像(例如,服务堆栈更新 (SSU) 或累积更新 (CU))添加语言,请重新安装应用和更新。If you're adding languages to an image that already contains apps or updates (for example, servicing stack updates (SSU) or cumulative updates (CU), reinstall the apps and updates.

  • 大小和性能Size and performance

    • 可将多个语言和组件安装到同一个 Windows 映像中。You can install multiple languages and components onto the same Windows image. 如果安装过多内容,则会影响磁盘空间,还会影响性能,尤其是在更新和维护 Windows 时。Having too many affects disk space, and can affect performance, especially while updating and servicing Windows.
    • 某些语言比其他语言需要更多的硬盘空间。Some languages require more hard-disk space than others.
    • 创建 Windows 映像时,可以在部署到非英语地区时删除英语组件,以节约空间。When creating Windows images, you can remove English language components when deploying to non-English regions to save space. 你需要采用与它们的添加顺序相反的顺序来卸载它们。You'll need to uninstall them in the reverse order from how you add them.
    • 开箱即用体验 (OOBE) 完成后,将无法删除默认语言。After the Out-Of-Box-Experience (OOBE) is complete, the default language cannot be removed. 默认的 UI 语言是在开箱即用体验 (OOBE) 期间选择的,也可以使用 DISM 或无人参与的应答文件在映像中预先选择。The default UI language is selected either during the Out-Of-Box-Experience (OOBE), or can be preselected in the image using DISM or an unattended answer file.
    • 在 OOBE 之后的某个时间,将自动删除未使用的任何预安装语言。Some time after OOBE, any preinstalled languages that haven't been used are removed automatically. 语言包删除任务不会删除 LIP。The language-pack removal task does not remove LIPs.
  • 不支持跨语言升级Cross-language upgrades are not supported. 这意味着,在升级或迁移期间,如果要升级或迁移安装了多个语言包的操作系统,则只能升级或迁移到系统默认的 UI 语言。This means that during upgrades or migrations, if you upgrade or migrate an operating system that has multiple language packs installed, you can upgrade or migrate to the system default UI language only. 例如,如果默认语言是英语,则只能升级或迁移到英语。For example, if English is the default language, you can upgrade or migrate only to English.

添加和删除语言包、LIP 和按需功能Add and remove language packs, LIPs, and features on demand

我们将安装法语,然后添加一种将法语作为其基本语言的 LIP 语言(卢森堡语)。We'll install the French language, and then add a LIP language (Luxembourgish) that uses French for its base language.

为节省空间,可在部署到非英语地区时删除英语组件,其方法为按照与添加语言组件相反的顺序卸载它们。To save space, you can remove English language components when deploying to non-English regions by uninstalling the language components in the reverse order from how you add them.

准备修改映像:安装方法Prepare to modify your images: Installation methods

  • 脱机:修改计划使用 Windows PE 或 Windows 安装程序部署的映像 (install.wim)Offline: Modify an image (install.wim) that you plan to deploy using Windows PE or Windows Setup:

    装载 Windows 映像:Mount the Windows image:

    md C:\mount\windows
    Dism /Mount-Image /ImageFile:install.wim /Index:1 /MountDir:"C:\mount\windows"
    
  • 联机:修改运行的 Windows 安装(例如,处于审核模式的安装)Online: Modify a running Windows installation (for example, in audit mode)

    可以从语言包 ISO 和按需功能 ISO 打开包并按照说明完成安装来安装语言和 LIP。You can install languages and LIPs by opening the packages from the Language Pack ISO and Feature on Demand ISO and following the instructions to complete the installation.

    可使用“设置” > “时间和语言”来修改设置或从 Windows 更新下载语言 。You can use the Settings > Time & Language to modify the settings or download languages from Windows Update.

    要使用脚本运行这些相同的更新,请使用本主题中的说明,将 /Image:"C:\mount\windows" 替换为 /OnlineTo run these same updates using a script, use the instructions in this topic, replacing /Image:"C:\mount\windows" with /Online.

    要更新恢复环境,请参阅将语言添加到恢复环境To update the recovery environment, see Add languages to the recovery environemnt.

添加和删除语言包、LIP (LXP) 和按需功能Add and remove language packs, LIPs (LXPs), and Features on Demand

通过为所有预安装语言添加语言包及其相关按需功能来预安装语言,如果要添加 LIP 语言则包括基本语言。Preinstall languages by adding the language packs and their related Features on Demand for all preinstalled languages, including the base languages if you're adding a LIP language.

  1. 使用文件资源管理器装载语言包 ISO 和按需功能 ISO。Mount the Language Pack ISO and the Features on Demand ISO with File Explorer. 这会为它们分配驱动器号。This will assign them drive letters.

  2. 添加语言包Add a language pack:

    Dism /Image:"C:\mount\windows" /Add-Package /PackagePath="D:\x64\langpacks\Microsoft-Windows-Client-Language-Pack_x64_fr-fr.cab"
    

    其中 D:\ 是语言包 ISO。Where D:\ is the Language Pack ISO.

    确保它位于映像中:Verify that it's in the image:

    Dism /Image:"C:\mount\windows" /Get-Packages
    
  3. 添加 LIP 语言Add LIP languages. 在此示例中,我们添加了卢森堡语,它需要 fr-FR 基本语言:In this example, we add Luxembourgish, which requires the fr-FR base language:

    • 对于 Windows 10 版本 1809 及更高版本,LIP 语言以 LXP 的形式提供:For Windows 10, version 1809 and later, LIP languages are delivered as LXPs:

      DISM /Image:"C:\mount\windows" /Add-ProvisionedAppxPackage /PackagePath="D:\LocalExperiencePack\lb-lu\LanguageExperiencePack.lb-LU.Neutral.appx /LicensePath:"D:\LocalExperiencePack\lb-lu\License.xml"
      

      其中 D:\ 是语言包 ISOWhere D:\ is the Language Pack ISO

      确保它位于映像中:Verify that it's in the image:

      DISM /Image:"C:\mount\windows" get-provisionedappxpackages
      
    • 对于早期版本的 Windows 10,LIP 语言以 .cab 文件形式提供:For earlier versions of Windows 10, LIP languages are delivered as .cab files:

      Dism /Image:C:\mount\windows /add-package /packagepath:C:\LanguagePack\LIPs\ca-ES\LIP_ca-ES64bit.cab
      
  4. 添加语言和区域按需功能以支持语言包和 LIP 。Add language and region Features on Demand to support your language packs and LIPs. 建议将基本内容、字体、OCR、文本到语音转换和语音识别 FOD 包含在内(如果它们适用于你预安装的语言)。We recommend including the Basic, Fonts, OCR, Text-to-speech, and Speech recognition FODs if they're available for the languages you’re preinstalling. 此外,如果交付的设备附带笔,还应包括手写语言组件 FOD。Additionally, include the handwriting language component FOD if you’re shipping a device with a pen.

    并非所有 LIP 语言都具有所有语言组件。Not all LIP languages have all language components. 例如,卢森堡语 (lb-LU) 仅具有基本内容和手写 FOD。Luxembourgish (lb-LU), for example, only has basic and handwriting FODs. 如需了解适用于语言的 FOD,请参阅 LP 到 FOD 映射电子表格You can learn which FODs are available for languages in the LP to FOD mapping spreadsheet

    例如:将基本内容、OCR、文本到语音转换和语音识别添加到 fr-fr:Example: adding Basic, OCR, Text-to-Speech, and Speech Recognition to fr-fr:

    Dism /Image:"C:\mount\windows" /Add-Package /PackagePath:E:\Microsoft-Windows-LanguageFeatures-Basic-fr-fr-Package~31bf3856ad364e35~amd64~~.cab /PackagePath:E:\Microsoft-Windows-LanguageFeatures-OCR-fr-fr-Package~31bf3856ad364e35~amd64~~.cab /PackagePath:E:\Microsoft-Windows-LanguageFeatures-Handwriting-fr-fr-Package~31bf3856ad364e35~amd64~~.cab /PackagePath:E:\Microsoft-Windows-LanguageFeatures-TextToSpeech-fr-fr-Package~31bf3856ad364e35~amd64~~.cab /PackagePath:E:\Microsoft-Windows-LanguageFeatures-Speech-fr-fr-Package~31bf3856ad364e35~amd64~~.cab
    

    其中 E:\ 是按需功能 ISO。Where E:\ is the Feature on Demand ISO.

    例如:将基本内容和手写添加到 lb-LU:Example: adding Basic and Handwriting to lb-LU:

    DISM /Image:"C:\mount\windows" /Add-Package /PackagePath:E:\Microsoft-Windows-LanguageFeatures-Basic-lb-lu-Package~31bf3856ad364e35~amd64~~.cab /PackagePath:E:\Microsoft-Windows-LanguageFeatures-Handwriting-lb-lu-Package~31bf3856ad364e35~amd64~~.cab
    

    例如:添加泰语字体(首先需要添加 th-TH 语言包和基本内容)。Example: adding Thai fonts (requires adding th-TH language pack and Basic first).

    Dism /Image:"C:\mount\windows" Add-Capability /CapabilityName:Language.Fonts.Thai~~~und-THAI~0.0.1.0 /Source:E:
    Dism /Get-Capabilities /Image:"C:\mount\windows"
    

    确保它们位于映像中:Verify that they're in the image:

    Dism /Image:"C:\mount\windows" /Get-Packages
    Dism /Image:"C:\mount\windows" /Get-Capabilities
    
  5. 删除语言、LIP、LXP 和按需功能Remove languages, LIPs, LXPs, and Features on Demand.

    重要

    如果有挂起的联机操作,则不能从脱机 Windows 映像中删除语言包。You cannot remove a language pack from an offline Windows image if there are pending online actions. Windows 映像应为最近安装并捕获的映像。The Windows image should be a recently installed and captured image. 这将保证 Windows 映像没有任何需要重新启动的挂起的联机操作。This will guarantee that the Windows image does not have any pending online actions that require a reboot.

    获取映像中安装的包和功能列表:Get a list of packages and features installed in your image:

    Dism /Image:"C:\mount\windows" /Get-Packages
    Dism /Image:"C:\mount\windows" /Get-Capabilities
    

    删除语言、基于 .cab 的 LIP 和按需功能:Remove languages, .cab-based LIPs, and Features On Demand:

    Dism /Image:"C:\mount\windows" /Remove-Package /PackageName:<language pack name> /PackageName:<feature on demand name> ...
    

    删除通过 LXP 添加的 LIP:Remove LIPs added through LXPs:

    Dism /remove-provisionedappxpackage /packagename:Microsoft.LanguageExperiencePack<lang_version>_neutral__8wekyb3d8bbwe
    

    确保它们不再位于映像中:Verify that they're no longer in your image:

    Dism /Image:"C:\mount\windows" /Get-Packages
    Dism /Image:"C:\mount\windows" /Get-Capabilities
    
  6. 更改默认语言、区域设置和其他国际设置Change your default language, locale, and other international settings:

    • 对于脱机映像,只能指定语言包和基于 .cab 的 LIP,而不能指定以基于 .appx 的 LXP 形式提供的语言。For offline images, you can only specify language packs and .cab-based LIPs, not languages delivered as .appx-based LXPs.

    • 如果使用 .cab 文件安装 LIP 并将其指定为默认系统 UI 语言,则系统会将 LIP 语言设置为默认的 UI 语言(或系统区域设置),并将母语设置为默认系统 UI 语言(或安装语言)。If you install a LIP by using a .cab file and specify it as the default system UI language, the LIP language will be set as the default UI language (or system locale) and the parent language will be set as the default system UI language (or install language).

      Dism /Image:"C:\mount\windows" /Set-AllIntl:fr-fr
      

      查看可用的语言设置:See which language settings are available:

      Dism /Image:"C:\mount\windows" /Get-Intl
      
    • 对于联机映像,请使用“控制面板”或国际设置 PowerShell cmdletsGet-WinSystemLocaleSet-WinSystemLocale <language>For online images, use Control Panel, or the International Settings PowerShell cmdlets: Get-WinSystemLocale and Set-WinSystemLocale <language>. 这适用于以 LXP 形式提供的语言。This works with languages delivered as LXPs.

    有关更多选项,请参阅For more options, see

将语言添加到恢复环境 (Windows RE) Add languages to the recovery environment (Windows RE)

对于添加到 Windows 的任何语言,请尽可能将语言添加到 Windows 恢复环境 (WinRE)For any language you add to Windows, add the language to the Windows Recovery Environment (WinRE), whenever possible.

并非所有语言或 LIP 都有本地化的恢复映像。Not all languages or LIPs have localized recovery images.

使用语言包 ISO 中的语言而不是 Windows 10 ADK 中的语言来本地化 WinRE。Use languages from the Language Pack ISO, not from the Windows 10 ADK, to localize WinRE.

备注

已知问题:Windows 10 2018 年 10 月更新包含的 Windows RE 泰语映像(en-US 基础语言 + th-th 语言包)随附的问题,即最终用户只能在 Windows 恢复环境中看到没有泰语文本的 UI 组件(或英语)、恢复过程显示的文本(按钮重置)和/或功能更新的重新启动过程中的某些屏幕。Known issue: Windows RE included with Windows 10 October 2018 Update Thai language image (en-US base language + th-th language pack) shipped with an issue in which an end user will only see UI components (or English) without Thai language text in the Windows Recovery Environment, the text displayed during recovery (Push-button reset), and/or certain screens during the reboot process of feature updates. 要解决此问题,请预安装 2018.11D 质量更新。To fix this issue pre-install the 2018.11D Quality Update.

  1. 装载恢复映像。Mount the recovery image.

    • 脱机:恢复映像位于 Windows 映像中:Offline: the recovery image is inside the Windows image:

      md C:\mount\winre
      Dism /Mount-Image /ImageFile:"C:\mount\windows\Windows\System32\Recovery\winre.wim" /index:1 /MountDir:"C:\mount\winre"
      
    • 联机Online:

      md C:\mount\winre
      Dism /Mount-Image /ImageFile:"C:\Windows\System32\Recovery\winre.wim" /index:1 /MountDir:"C:\mount\winre"
      

      请注意,Windows RE 一直位于 Windows 映像中,直到开箱即用体验出现之后才会被移动到单独的恢复分区。Note, Windows RE is inside the Windows image until the Out of Box Experience, after which it is moved to a separate recovery partition.

  2. 添加语言:Add languages:

    D:
    cd D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\lp.cab" 
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-Rejuv_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-EnhancedStorage_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-Scripting_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-SecureStartup_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-SRT_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-WDS-Tools_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-WMI_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-StorageWMI_fr-fr.cab"
    Dism /Image:"C:\mount\winre" /Add-Package /PackagePath:"D:\Windows Preinstallation Environment\x64\WinPE_OCs\fr-fr\WinPE-HTA_fr-fr.cab"
    

    其中 D:\ 是语言包 ISO。Where D:\ is the Language Pack ISO.

  3. 确保它们位于映像中:Verify that they're in the image:

    Dism /Get-Packages /Image:"C:\mount\winre"
    

    /Get-Packages 的示例输出:Example output from /Get-Packages:

    Package Identity : Microsoft-Windows-WinPE-Rejuv_fr-fr ... fr-FR~10.0.9926.0 State : Installed
    
  4. 将更改提交到恢复映像:Commit changes to the recovery image:

    Dism /Commit-Image /MountDir:"C:\mount\winre"
    

    对于联机映像,还应删除装载文件夹:For online images, also remove the mount folder:

    rmdir /s "C:\mount\winre"
    

捕获更改Capture the changes

  • 脱机:适用于 Windows 映像 (install.wim)Offline: For Windows images (install.wim)

    将更改提交到 Windows 映像:Commit changes to the Windows image:

    Dism /Commit-Image /MountDir:"C:\mount\windows"
    
  • 联机:修改运行的 Windows 安装Online: Modify a running Windows installation

    通用化并捕获映像:Generalize and capture the image:

    %WINDIR%\system32\sysprep\sysprep.exe /generalize /shutdown /oobe
    

    如需了解详细信息,请参阅通用化To learn more, see generalize.

后续步骤:Next steps:

本地化更多 Windows 内容:Localize more of Windows:

本地化安装过程Localize the installation process

相关主题Related topics

相关主题Related topics

本地化 WindowsLocalize Windows

使用 DISM 为 Windows 映像提供服务Service a Windows Image Using DISM

DISM - Windows 的部署映像服务和管理技术参考DISM - Deployment Image Servicing and Management Technical Reference for Windows

DISM 语言和国际服务命令行选项DISM Languages and International Servicing Command-Line Options

DISM 无人参与服务命令行选项DISM Unattended Servicing Command-Line Options

Windows 系统映像管理器技术参考Windows System Image Manager Technical Reference