InputLocale (microsoft-InputLocale) InputLocale (microsoft-windows-international-core-inputlocale)

InputLocale 指定输入语言和输入设备(例如键盘布局)的方法。InputLocale specifies the input language and the method for input devices, such as the keyboard layout. 输入法区域设置 (也称为输入语言) 是描述输入语言 (的每进程设置,例如,希腊语) 和输入法 (例如,键盘) 。The input locale (also called input language) is a per-process setting that describes an input language (for example, Greek) and an input method (for example, the keyboard).

可以安装多个输入区域设置,并且用户可以在它们之间进行切换。Multiple input locales can be installed, and the user can switch between them. 用户可以通过 "区域和语言" 控制面板的 "键盘和语言" 选项卡添加和删除输入法区域设置。Users can add and remove input locales through the Keyboard and Languages tab of the Region and Language Control Panel.

有关支持的语言、区域设置和标识符的列表,请参阅 支持的语言包和默认设置For a list of supported languages, locales, and identifiers, see Supported Language Packs and Default Settings.

Values

Input_localeInput_locale

指定 Windows 安装的输入语言和键盘布局。Specifies the input language and keyboard layout for a Windows installation.

Input_locale 可以是以下两个值之一:Input_locale can be one of two values:

  • 若要使用语言的默认输入法区域设置,请指定语言标识符。To use the default input locale for a language, specify the language identifier. 例如,若要使用与标准键盘对应的 "英语 (美国) 的默认键盘,则可以指定" en-us"值。For example, to use the default keyboard for English (United States) that corresponds with the QWERTY keyboard, you can specify the value en-US.

  • 指定区域设置 ID 和键盘布局十六进制值。Specify the locale ID and keyboard layout hexadecimal values. 例如,对于 en-us,请使用 0409:00000409For example, for en-US, use 0409:00000409. 第一个值 (0409) 是表示输入语言的区域设置 ID,第二个值 (00000409) 是键盘布局值。The first value (0409) is the locale ID that represents the input language and the second value (00000409) is the keyboard layout value.

如果要指定多个输入区域设置来添加对多个键盘类型的支持,可以指定用分号分隔的多个值。If you want to specify more than one input locale to add support for more than one keyboard type, you can specify multiple values separated by semicolons. 例如,可以指定添加对 <InputLocale>en-US; fr-FR; es-ES</InputLocale>) 、法语 (法国) 和西班牙语 (西班牙) 键盘的英语 (支持。For example, you can specify <InputLocale>en-US; fr-FR; es-ES</InputLocale> to add support for English (US), French (France), and Spanish (Spain) keyboards. 列出的第一个值用作默认键盘。The first value that is listed is used as the default keyboard.

可以在您的系统上配置的有效键盘布局在 HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts 注册表项中列出。The valid keyboard layouts that can be configured on your system are listed in the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layouts registry key.

有关默认输入法区域设置值的列表,请参阅 支持的语言包和默认设置For a list of default input locale values, see Supported Language Packs and Default Settings.

该字符串类型支持空元素。This string type supports empty elements.

父层次结构Parent Hierarchy

Microsoft-Windows-国际-核心 | InputLocaleMicrosoft-Windows-International-Core | InputLocale

有效的配置阶段Valid Configuration Passes

oobeSystemoobeSystem

specializespecialize

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-Windows-国际核心For a list of the Windows editions and architectures that this component supports, see Microsoft-Windows-International-Core.

XML 示例XML Example

下面的示例演示如何将输入法区域设置设置为英语 (US) Dvorak 键盘。The following example shows how to set the input locale to the English (US) Dvorak keyboard.

<InputLocale>0409:00010409</InputLocale>
<SystemLocale>en-US</SystemLocale> 
<UILanguage>en-US</UILanguage> 
<UserLocale>en-US</UserLocale>

下面的示例演示如何将输入法区域设置设置为英语国际 (美国国际) 键盘。The following example shows how to set the input locale to the English International (US International) keyboard.

<InputLocale>0409:00020409</InputLocale>
<SystemLocale>en-US</SystemLocale> 
<UILanguage>en-US</UILanguage> 
<UserLocale>en-US</UserLocale>

Microsoft-Windows-国际-核心 自动执行 OOBEMicrosoft-Windows-International-Core Automate OOBE