你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

本地化字符串 ID

注意

在 Azure Active Directory B2C 中,自定义策略主要用于解决复杂的情况。 在大多数情况下,建议你使用内置用户流。 如果尚未这样做,请从 Active Directory B2C 中的自定义策略入门了解自定义策略新手包。

Localization 元素使你能够在用户旅程的策略中支持多个区域设置或语言。 本文提供了可在策略中使用的本地化 ID 列表。 有关 UI 本地化的详细信息,请参阅本地化

注册或登录页面元素

以下 ID 用于 ID 为 api.signuporsignin 的内容定义和自断言技术配置文件

ID 默认值 页面布局版本
forgotpassword_link 忘记密码了? All
createaccount_intro 没有帐户? All
button_signin 登录 All
social_intro 使用社交帐户登录 All
remember_me 使我保持登录状态。 All
unknown_error 登录时遇到问题。 请稍后再试。 All
divider_title OR All
local_intro_email 使用现有帐户登录 < 2.0.0
logonIdentifier_email 电子邮件地址 < 2.0.0
requiredField_email 请输入电子邮件地址 < 2.0.0
invalid_email 请输入有效的电子邮件地址 < 2.0.0
email_pattern ^[a-zA-Z0-9.!#$%&'*+\/=?^_`\{\|\}~\-]+@[a-zA-Z0-9\-]+(?:\\.[a-zA-Z0-9\-]+)\*$ < 2.0.0
local_intro_username 使用用户名登录 < 2.0.0
logonIdentifier_username 用户名 < 2.0.0
requiredField_username 请输入用户名 < 2.0.0
password Password < 2.0.0
requiredField_password 请输入密码 < 2.0.0
createaccount_link 立即注册 < 2.0.0
cancel_message 用户忘记了密码 < 2.0.0
invalid_password 你输入的密码格式不正确。 < 2.0.0
createaccount_one_link 立即注册 >= 2.0.0
createaccount_two_links 使用 {0} 或 {1} 注册 >= 2.0.0
createaccount_three_links 使用 {0}、{1} 或 {2} 注册 >= 2.0.0
local_intro_generic 使用 {0} 登录 >= 2.1.0
requiredField_generic 请输入你的 {0} >= 2.1.0
invalid_generic 请输入有效的 {0} >= 2.1.1
heading 登录 >= 2.1.1

注意

  • 自动使用 ClaimTypeDisplayName 值填充 {0} 之类的占位符。
  • 若要了解如何本地化 ClaimType,请参阅注册或登录示例

下面的示例演示如何在注册或登录页中使用某些用户界面元素:

显示注册或登录页 UX 元素的屏幕截图。

注册或登录标识提供者

标识提供者的 ID 是在用户旅程 ClaimsExchange 元素中配置的。 若要本地化标识提供者的标题,请将 ElementType 设置为 ClaimsProvider,同时将 StringId 设置为 ClaimsExchange 的 ID。

<OrchestrationStep Order="2" Type="ClaimsExchange">
  <Preconditions>
    <Precondition Type="ClaimsExist" ExecuteActionsIf="true">
      <Value>objectId</Value>
      <Action>SkipThisOrchestrationStep</Action>
    </Precondition>
  </Preconditions>
  <ClaimsExchanges>
    <ClaimsExchange Id="FacebookExchange" TechnicalProfileReferenceId="Facebook-OAUTH" />
    <ClaimsExchange Id="MicrosoftExchange" TechnicalProfileReferenceId="MSA-OIDC" />
    <ClaimsExchange Id="GoogleExchange" TechnicalProfileReferenceId="Google-OAUTH" />
    <ClaimsExchange Id="SignUpWithLogonEmailExchange" TechnicalProfileReferenceId="LocalAccount" />
  </ClaimsExchanges>
</OrchestrationStep>

下面的示例将 Facebook 标识提供者本地化为阿拉伯语:

<LocalizedString ElementType="ClaimsProvider" StringId="FacebookExchange">فيس بوك</LocalizedString>

注册或登录错误消息

ID 默认值
UserMessageIfInvalidPassword 密码不正确。
UserMessageIfPasswordExpired 你的密码已过期。
UserMessageIfClaimsPrincipalDoesNotExist 似乎找不到你的帐户。
UserMessageIfOldPasswordUsed 你可能使用的是旧密码。
DefaultMessage 无效的用户名或密码。
UserMessageIfUserAccountDisabled 帐户已锁定。 请联系支持人员解除锁定,然后重试。
UserMessageIfUserAccountLocked 帐户暂时锁定以防止未经授权的使用。 请稍后重试。
AADRequestsThrottled 目前请求过多。 请等待一段时间,然后重试。

注册或登录示例

<LocalizedResources Id="api.signuporsignin.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Email Address</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="heading">Sign in</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="social_intro">Sign in with your social account</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="local_intro_generic">Sign in with your {0}</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="requiredField_password">Please enter your password</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="requiredField_generic">Please enter your {0}</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="invalid_generic">Please enter a valid {0}</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="createaccount_one_link">Sign up now</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="createaccount_two_links">Sign up with {0} or {1}</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="createaccount_three_links">Sign up with {0}, {1}, or {2}</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="forgotpassword_link">Forgot your password?</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="button_signin">Sign in</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="divider_title">OR</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="unknown_error">We are having trouble signing you in. Please try again later.</LocalizedString>
    <!-- Uncomment the remember_me only if the keep me signed in is activated. 
    <LocalizedString ElementType="UxElement" StringId="remember_me">Keep me signed in</LocalizedString> -->
    <LocalizedString ElementType="ClaimsProvider" StringId="FacebookExchange">Facebook</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidPassword">Your password is incorrect.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfPasswordExpired">Your password has expired.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalDoesNotExist">We can't seem to find your account.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfOldPasswordUsed">Looks like you used an old password.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="DefaultMessage">Invalid username or password.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfUserAccountDisabled">Your account has been locked. Contact your support person to unlock it, then try again.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfUserAccountLocked">Your account is temporarily locked to prevent unauthorized use. Try again later.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="AADRequestsThrottled">There are too many requests at this moment. Please wait for some time and try again.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

注册和自断言页用户界面元素

以下 ID 用于 ID 为 api.localaccountsignup 的内容定义或以 api.selfasserted 开头的任何内容定义(例如 api.selfasserted.profileupdateapi.localaccountpasswordreset),以及自断言技术配置文件

ID 默认值
ver_sent 验证码已发送到:
ver_but_default 默认
cancel_message 用户已取消输入自断言信息
preloader_alt 请稍候
ver_but_send 发送验证代码
alert_yes
error_fieldIncorrect 一个或多个字段填写不正确。 请检查条目并重试。
year Year
verifying_blurb 正在处理你的信息,请稍候。
button_cancel 取消
ver_fail_no_retry 你进行不正确尝试的次数过多。 请稍后重试。
month 月份
ver_success_msg 已验证电子邮件地址。 现在可以继续。
months 一月、二月、三月、四月、五月、六月、七月、八月、九月、十月、十一月、十二月
ver_fail_server 我们无法验证你的电子邮件地址。 请输入有效的电子邮件地址,然后重试。
error_requiredFieldMissing 缺少必填字段。 请填写所有必填字段,然后重试。
heading 用户详细信息
initial_intro 请提供以下详细信息。
ver_but_resend 发送新验证码
button_continue 创建
error_passwordEntryMismatch 密码输入字段不一致。 请在这两个字段中输入相同密码,然后重试。
ver_incorrect_format 格式错误。
ver_but_edit 更改电子邮件
ver_but_verify 验证验证码
alert_no
ver_info_msg 验证码已发送到收件箱。 请将其复制到下面的输入框。
day
ver_fail_throttled 用于验证此电子邮件地址的请求过多。 请稍等片刻,然后重试。
helplink_text 这是什么?
ver_fail_retry 验证码不正确。 请重试。
alert_title 取消输入详细信息
required_field 此信息是必需的。
alert_message 确实要取消输入详细信息吗?
ver_intro_msg 验证是必需的。 请单击“发送”按钮。
ver_input 验证码
required_field_descriptive {0} 是必需的

以下 UxElement 字符串 ID 将在自断言页面底部显示免责声明链接。 除非在本地化字符串中指定免责声明链接,否则默认情况下不会显示这些链接。

ID 示例值
disclaimer_msg_intro 通过提供你的电话号码,即表示同意接收通过短信发送的一次性密码,帮助你登录到 {insert your application name}。 可能会按标准短信和数据费率收费。
disclaimer_link_1_text 隐私声明
disclaimer_link_1_url {插入隐私声明 URL}
disclaimer_link_2_text 条款和条件
disclaimer_link_2_url {插入条款和条件 URL}

注册和自断言页错误消息

ID 默认值
UserMessageIfClaimsPrincipalAlreadyExists 已存在具有指定 ID 的用户。 请选择其他用户。
UserMessageIfClaimNotVerified 未验证声明: {0}
UserMessageIfIncorrectPattern 模式错误: {0}
UserMessageIfMissingRequiredElement 缺少必需的元素: {0}
UserMessageIfValidationError 验证错误: {0}
UserMessageIfInvalidInput {0} 具有无效输入。
ServiceThrottled 目前请求过多。 请等待一段时间,然后重试。

下面的示例演示如何在注册页中使用某些用户界面元素:

标记了其 UI 元素名称的注册页

下面的示例演示在用户选择“发送验证码”按钮后如何在注册页中使用某些用户界面元素:

注册页电子邮件验证 UX 元素

注册和自断言页示例

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ClaimType" ElementId="email" StringId="DisplayName">Email Address</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="email" StringId="UserHelpText">Email address that can be used to contact you.</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="email" StringId="PatternHelpText">Please enter a valid email address.</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="DisplayName">New Password</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="UserHelpText">Enter new password</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="newPassword" StringId="PatternHelpText">8-16 characters, containing 3 out of 4 of the following: Lowercase characters, uppercase characters, digits (0-9), and one or more of the following symbols: @ # $ % ^ &amp; * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="DisplayName">Confirm New Password</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="UserHelpText">Confirm new password</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="reenterPassword" StringId="PatternHelpText">#8-16 characters, containing 3 out of 4 of the following: Lowercase characters, uppercase characters, digits (0-9), and one or more of the following symbols: @ # $ % ^ &amp; * - _ + = [ ] { } | \ : ' , ? / ` ~ " ( ) ; .</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="displayName" StringId="DisplayName">Display Name</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="displayName" StringId="UserHelpText">Your display name.</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="surname" StringId="DisplayName">Surname</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="surname" StringId="UserHelpText">Your surname (also known as family name or last name).</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="givenName" StringId="DisplayName">Given Name</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="givenName" StringId="UserHelpText">Your given name (also known as first name).</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="button_continue">Create</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_fieldIncorrect">One or more fields are filled out incorrectly. Please check your entries and try again.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_passwordEntryMismatch">The password entry fields do not match. Please enter the same password in both fields and try again.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_requiredFieldMissing">A required field is missing. Please fill out all required fields and try again.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="helplink_text">What is this?</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="heading">User Details</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="initial_intro">Please provide the following details.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="preloader_alt">Please wait</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="required_field">This information is required.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="required_field_descriptive">{0} is required</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_but_edit">Change e-mail</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_but_resend">Send new code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_but_send">Send verification code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_but_verify">Verify code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_fail_code_expired">That code is expired. Please request a new code.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_fail_no_retry">You've made too many incorrect attempts. Please try again later.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_fail_retry">That code is incorrect. Please try again.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_fail_server">We are having trouble verifying your email address. Please enter a valid email address and try again.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_fail_throttled">There have been too many requests to verify this email address. Please wait a while, then try again.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_info_msg">Verification code has been sent to your inbox. Please copy it to the input box below.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_input">Verification code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_intro_msg">Verification is necessary. Please click Send button.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="ver_success_msg">E-mail address verified. You can now continue.</LocalizedString>
    <!-- The following elements will display a message and two links at the bottom of the page. 
         For policies that you intend to show to users in the United States, we suggest displaying the following text. Replace the content of the disclaimer_link_X_url elements with links to your organization's privacy statement and terms and conditions. 
          Uncomment any of these lines to display them.  -->
    <!-- <LocalizedString ElementType="UxElement" StringId="disclaimer_msg_intro">By providing your phone number, you consent to receiving a one-time passcode sent by text message to help you sign into {insert your application name}. Standard message and data rates may apply.</LocalizedString> -->
    <!-- <LocalizedString ElementType="UxElement" StringId="disclaimer_link_1_text">Privacy Statement</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="disclaimer_link_1_url">{insert your privacy statement URL}</LocalizedString> -->
    <!-- <LocalizedString ElementType="UxElement" StringId="disclaimer_link_2_text">Terms and Conditions</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="disclaimer_link_2_url">{insert your terms and conditions URL}</LocalizedString> -->
    <LocalizedString ElementType="ErrorMessage" StringId="ServiceThrottled">There are too many requests at this moment. Please wait for some time and try again.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimNotVerified">Claim not verified: {0}</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsPrincipalAlreadyExists">A user with the specified ID already exists. Please choose a different one.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfIncorrectPattern">Incorrect pattern for: {0}</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidInput">{0} has invalid input.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMissingRequiredElement">Missing required element: {0}</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfValidationError">Error in validation by: {0}</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

电话身份验证页用户界面元素

以下 ID 适用于 ID 为 api.phonefactor 的内容定义以及电话因素技术配置文件

ID 默认值 页面布局版本
button_verify 致电我 All
country_code_label 国家/地区代码 All
cancel_message 用户已取消多重身份验证 All
text_button_send_second_code 发送新验证码 All
code_pattern \d{6} All
intro_mixed 我们记录了以下号码。 我们能够发送短信验证码或致电来验证你的身份。 All
intro_mixed_p 我们记录了以下号码。 选择一个号码,以便我们能够通过电话或发送短信验证码来验证你的身份。 All
button_verify_code 验证验证码 All
requiredField_code 请输入收到的验证码 All
invalid_code 请输入收到的 6 位验证码 All
button_cancel 取消 All
local_number_input_placeholder_text 电话号码 All
button_retry 重试 All
alternative_text 我没有电话 All
intro_phone_p 我们记录了以下号码。 选择一个号码,以便我们能够通过电话来验证你的身份。 All
intro_phone 我们记录了以下号码。 我们将通过电话来验证你的身份。 All
enter_code_text_intro 请在下面输入验证码,或 All
intro_entry_phone 请在下面输入一个号码,以便我们能够通过电话来验证你的身份。 All
intro_entry_sms 请在下面输入一个号码,以便我们能够发送短信验证码来验证你的身份。 All
button_send_code 发送验证码 All
invalid_number 请输入有效电话号码 All
intro_sms 我们记录了以下号码。 我们将发送短信验证码来验证你的身份。 All
intro_entry_mixed 请在下面输入一个号码,以便我们能够发送短信验证码或通过电话来验证你的身份。 All
number_pattern ^\\+(?:[0-9][\\x20-]?){6,14}[0-9]$ All
intro_sms_p 我们记录了以下号码。 选择一个号码,以便我们能够发送短信验证码来验证你的身份。 All
requiredField_countryCode 请选择国家/地区代码 All
requiredField_number 请输入电话号码 All
country_code_input_placeholder_text 国家或地区 All
number_label 电话号码 All
error_tryagain 你提供的电话号码占线或不可用。 请检查号码并重试。 All
error_sms_throttled 已达到文本消息数上限。 请稍后再试。 >= 1.2.3
error_phone_throttled 已达到电话呼叫尝试次数上限。 请稍后再试。 >= 1.2.3
error_throttled 已达到验证尝试次数上限。 请稍后再试。 >= 1.2.3
error_incorrect_code 你输入的验证码与我们的记录不一致。 请重试,或请求获取新验证码。 All
countryList 请参阅国家/地区列表 All
error_448 你提供的电话号码打不通。 All
error_449 用户已超出重试次数上限。 All
verification_code_input_placeholder_text 验证码 All

下面的示例演示如何在 MFA 注册页中使用某些用户界面元素:

电话因素身份验证注册 UX 元素

下面的示例演示如何在 MFA 验证页中使用某些用户界面元素:

电话因素身份验证验证 UX 元素

电话因素身份验证页示例

<LocalizedResources Id="api.phonefactor.en">
  <LocalizedStrings>
    <LocalizedString ElementType="UxElement" StringId="button_verify">Call Me</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="country_code_label">Country Code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="cancel_message">The user has canceled multi-factor authentication</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="text_button_send_second_code">Send a new code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="code_pattern">\d{6}</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_mixed">We have the following number on record for you. We can send a code via SMS or phone to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_mixed_p">We have the following numbers on record for you. Choose a number that we can phone or send a code via SMS to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="button_verify_code">Verify Code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="requiredField_code">Please enter the verification code you received</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="invalid_code">Please enter the 6-digit code you received</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="button_cancel">Cancel</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="local_number_input_placeholder_text">Phone number</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="button_retry">Retry</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="alternative_text">I don't have my phone</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_phone_p">We have the following numbers on record for you. Choose a number that we can phone to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_phone">We have the following number on record for you. We will phone to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="enter_code_text_intro">Enter your verification code below, or</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_entry_phone">Enter a number below that we can phone to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_entry_sms">Enter a number below that we can send a code via SMS to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="button_send_code">Send Code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="invalid_number">Please enter a valid phone number</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_sms">We have the following number on record for you. We will send a code via SMS to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_entry_mixed">Enter a number below that we can send a code via SMS or phone to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="number_pattern">^\+(?:[0-9][\x20-]?){6,14}[0-9]$</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="intro_sms_p">We have the following numbers on record for you. Choose a number that we can send a code via SMS to authenticate you.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="requiredField_countryCode">Please select your country code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="requiredField_number">Please enter your phone number</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="country_code_input_placeholder_text">Country or region</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="number_label">Phone Number</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_tryagain">The phone number you provided is busy or unavailable. Please check the number and try again.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_sms_throttled">You hit the limit on the number of text messages. Try again shortly.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_phone_throttled">You hit the limit on the number of call attempts. Try again shortly.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_throttled">You hit the limit on the number of verification attempts. Try again shortly.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_incorrect_code">The verification code you have entered does not match our records. Please try again, or request a new code.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="countryList">{"DEFAULT":"Country/Region","AF":"Afghanistan","AX":"Åland Islands","AL":"Albania","DZ":"Algeria","AS":"American Samoa","AD":"Andorra","AO":"Angola","AI":"Anguilla","AQ":"Antarctica","AG":"Antigua and Barbuda","AR":"Argentina","AM":"Armenia","AW":"Aruba","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BS":"Bahamas","BH":"Bahrain","BD":"Bangladesh","BB":"Barbados","BY":"Belarus","BE":"Belgium","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BQ":"Bonaire","BA":"Bosnia and Herzegovina","BW":"Botswana","BV":"Bouvet Island","BR":"Brazil","IO":"British Indian Ocean Territory","VG":"British Virgin Islands","BN":"Brunei","BG":"Bulgaria","BF":"Burkina Faso","BI":"Burundi","CV":"Cabo Verde","KH":"Cambodia","CM":"Cameroon","CA":"Canada","KY":"Cayman Islands","CF":"Central African Republic","TD":"Chad","CL":"Chile","CN":"China","CX":"Christmas Island","CC":"Cocos (Keeling) Islands","CO":"Colombia","KM":"Comoros","CG":"Congo","CD":"Congo (DRC)","CK":"Cook Islands","CR":"Costa Rica","CI":"Côte d'Ivoire","HR":"Croatia","CU":"Cuba","CW":"Curaçao","CY":"Cyprus","CZ":"Czech Republic","DK":"Denmark","DJ":"Djibouti","DM":"Dominica","DO":"Dominican Republic","EC":"Ecuador","EG":"Egypt","SV":"El Salvador","GQ":"Equatorial Guinea","ER":"Eritrea","EE":"Estonia","ET":"Ethiopia","FK":"Falkland Islands","FO":"Faroe Islands","FJ":"Fiji","FI":"Finland","FR":"France","GF":"French Guiana","PF":"French Polynesia","TF":"French Southern Territories","GA":"Gabon","GM":"Gambia","GE":"Georgia","DE":"Germany","GH":"Ghana","GI":"Gibraltar","GR":"Greece","GL":"Greenland","GD":"Grenada","GP":"Guadeloupe","GU":"Guam","GT":"Guatemala","GG":"Guernsey","GN":"Guinea","GW":"Guinea-Bissau","GY":"Guyana","HT":"Haiti","HM":"Heard Island and McDonald Islands","HN":"Honduras","HK":"Hong Kong SAR","HU":"Hungary","IS":"Iceland","IN":"India","ID":"Indonesia","IR":"Iran","IQ":"Iraq","IE":"Ireland","IM":"Isle of Man","IL":"Israel","IT":"Italy","JM":"Jamaica","JP":"Japan","JE":"Jersey","JO":"Jordan","KZ":"Kazakhstan","KE":"Kenya","KI":"Kiribati","KR":"Korea","KW":"Kuwait","KG":"Kyrgyzstan","LA":"Laos","LV":"Latvia","LB":"Lebanon","LS":"Lesotho","LR":"Liberia","LY":"Libya","LI":"Liechtenstein","LT":"Lithuania","LU":"Luxembourg","MO":"Macao SAR","MK":"North Macedonia","MG":"Madagascar","MW":"Malawi","MY":"Malaysia","MV":"Maldives","ML":"Mali","MT":"Malta","MH":"Marshall Islands","MQ":"Martinique","MR":"Mauritania","MU":"Mauritius","YT":"Mayotte","MX":"Mexico","FM":"Micronesia","MD":"Moldova","MC":"Monaco","MN":"Mongolia","ME":"Montenegro","MS":"Montserrat","MA":"Morocco","MZ":"Mozambique","MM":"Myanmar","NA":"Namibia","NR":"Nauru","NP":"Nepal","NL":"Netherlands","NC":"New Caledonia","NZ":"New Zealand","NI":"Nicaragua","NE":"Niger","NG":"Nigeria","NU":"Niue","NF":"Norfolk Island","KP":"North Korea","MP":"Northern Mariana Islands","NO":"Norway","OM":"Oman","PK":"Pakistan","PW":"Palau","PS":"Palestinian Authority","PA":"Panama","PG":"Papua New Guinea","PY":"Paraguay","PE":"Peru","PH":"Philippines","PN":"Pitcairn Islands","PL":"Poland","PT":"Portugal","PR":"Puerto Rico","QA":"Qatar","RE":"Réunion","RO":"Romania","RU":"Russia","RW":"Rwanda","BL":"Saint Barthélemy","KN":"Saint Kitts and Nevis","LC":"Saint Lucia","MF":"Saint Martin","PM":"Saint Pierre and Miquelon","VC":"Saint Vincent and the Grenadines","WS":"Samoa","SM":"San Marino","ST":"São Tomé and Príncipe","SA":"Saudi Arabia","SN":"Senegal","RS":"Serbia","SC":"Seychelles","SL":"Sierra Leone","SG":"Singapore","SX":"Sint Maarten","SK":"Slovakia","SI":"Slovenia","SB":"Solomon Islands","SO":"Somalia","ZA":"South Africa","GS":"South Georgia and South Sandwich Islands","SS":"South Sudan","ES":"Spain","LK":"Sri Lanka","SH":"St Helena, Ascension, Tristan da Cunha","SD":"Sudan","SR":"Suriname","SJ":"Svalbard","SZ":"Swaziland","SE":"Sweden","CH":"Switzerland","SY":"Syria","TW":"Taiwan","TJ":"Tajikistan","TZ":"Tanzania","TH":"Thailand","TL":"Timor-Leste","TG":"Togo","TK":"Tokelau","TO":"Tonga","TT":"Trinidad and Tobago","TN":"Tunisia","TR":"Türkiye","TM":"Turkmenistan","TC":"Turks and Caicos Islands","TV":"Tuvalu","UM":"U.S. Outlying Islands","VI":"U.S. Virgin Islands","UG":"Uganda","UA":"Ukraine","AE":"United Arab Emirates","GB":"United Kingdom","US":"United States","UY":"Uruguay","UZ":"Uzbekistan","VU":"Vanuatu","VA":"Vatican City","VE":"Venezuela","VN":"Vietnam","WF":"Wallis and Futuna","YE":"Yemen","ZM":"Zambia","ZW":"Zimbabwe"}</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_448">The phone number you provided is unreachable.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="error_449">User has exceeded the number of retry attempts.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="verification_code_input_placeholder_text">Verification code</LocalizedString>
    <LocalizedString ElementType="ClaimType" ElementId="strongAuthenticationPhoneNumber" StringId="DisplayName">Phone Number</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

验证显示控件用户界面元素

以下 ID 用于页面布局版本为 2.1.0 或更高版本的验证显示控件

ID 默认值
intro_msg 1 验证是必需的。 请单击“发送”按钮。
success_send_code_msg 已发送验证码。 请将其复制到下面的输入框。
failure_send_code_msg 我们无法验证你的电子邮件地址。 请输入有效的电子邮件地址,然后重试。
success_verify_code_msg 已验证电子邮件地址。 现在可以继续。
failure_verify_code_msg 我们无法验证你的电子邮件地址。 请重试。
but_send_code 发送验证代码
but_verify_code 验证验证码
but_send_new_code 发送新验证码
but_change_claims 更改电子邮件
UserMessageIfVerificationControlClaimsNotVerified 2 验证控件的声明尚未经过验证。

1intro_msg 元素将隐藏,并且不会显示在自断言页上。 若要使其可见,请将 HTML 自定义与级联样式表结合使用。 例如:

.verificationInfoText div{display: block!important}

2 如果用户输入了验证码,但他们没有通过选择“验证”按钮完成验证,而是选择了“继续”按钮,则会向用户显示此错误消息。

验证显示控件示例

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
   <!-- Display control UI elements-->
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="intro_msg">Verification is necessary. Please click Send button.</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="success_send_code_msg">Verification code has been sent to your inbox. Please copy it to the input box below.</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="failure_send_code_msg">We are having trouble verifying your email address. Please enter a valid email address and try again.</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="success_verify_code_msg">E-mail address verified. You can now continue.</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="failure_verify_code_msg">We are having trouble verifying your email address. Please try again.</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_send_code">Send verification code</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_verify_code">Verify code</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_send_new_code">Send new code</LocalizedString>
    <LocalizedString ElementType="DisplayControl" ElementId="emailVerificationControl" StringId="but_change_claims">Change e-mail</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationControlClaimsNotVerified">The claims for verification control have not been verified.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

验证显示控件用户界面元素(已弃用)

以下 ID 用于页面布局版本为 2.0.0 的验证显示控件

ID 默认值
verification_control_but_change_claims 更改
verification_control_fail_send_code 无法发送代码,请稍后重试。
verification_control_fail_verify_code 无法验证代码,请稍后重试。
verification_control_but_send_code 发送验证码
verification_control_but_send_new_code 发送新代码
verification_control_but_verify_code 验证验证码
verification_control_code_sent 已发送验证码。 请将其复制到下面的输入框。

验证显示控件示例(已弃用)

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
    <LocalizedString ElementType="UxElement" StringId="verification_control_but_change_claims">Change</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="verification_control_fail_send_code">Failed to send the code, please try again later.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="verification_control_fail_verify_code">Failed to verify the code, please try again later.</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="verification_control_but_send_code">Send Code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="verification_control_but_send_new_code">Send New Code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="verification_control_but_verify_code">Verify Code</LocalizedString>
    <LocalizedString ElementType="UxElement" StringId="verification_control_code_sent">Verification code has been sent. Please copy it to the input box below.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

TOTP MFA 控件可显示控件用户界面元素

以下 ID 用于页面布局版本为 2.1.9 及更高版本的基于时间的一次性密码 (TOTP) 显示控件

ID 默认值
title_text 使用适用于 iOS 和 Android 的下载链接下载 Microsoft Authenticator,或使用所选的任何其他验证器应用。
DN 下载 Authenticator 应用后,可以使用以下任何方法继续注册。
DisplayName 下载 Authenticator 应用后,可以使用以下任何方法继续注册。
title_text 扫描 QR 码
info_msg 可以下载 Microsoft Authenticator 应用或使用所选的任何其他验证器应用。
link_text 无法扫描? 尝试此服务
title_text 手动输入帐户详细信息。
account_name 帐户名:
display_prefix 机密
collapse_text 仍有问题?
DisplayName 输入验证器应用中的验证码。
DisplayName 输入你的代码。
button_continue 验证

TOTP MFA 控件显示控件示例

      <LocalizedResources Id="api.selfasserted.totp.en">
        <LocalizedStrings>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorAppIconControl" StringId="title_text">Download the Microsoft Authenticator using the download links for iOS and Android or use any other authenticator app of your choice.</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorAppIconControl" StringId="DN">Once you&#39;ve downloaded the Authenticator app, you can use any of the methods below to continue with enrollment.</LocalizedString>
          <LocalizedString ElementType="ClaimType" ElementId="QrCodeScanInstruction" StringId="DisplayName">Once you've downloaded the Authenticator app, you can use any of the methods below to continue with enrollment.</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="title_text">Scan the QR code</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="info_msg">You can download the Microsoft Authenticator app or use any other authenticator app of your choice.</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="totpQrCodeControl" StringId="link_text">Can&#39;t scan? Try this</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="title_text">Enter the account details manually</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="account_name">Account Name:</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="display_prefix">Secret</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="authenticatorInfoControl" StringId="collapse_text">Still having trouble?</LocalizedString>
          <LocalizedString ElementType="ClaimType" ElementId="QrCodeVerifyInstruction" StringId="DisplayName">Enter the verification code from your authenticator app​.</LocalizedString>
          <LocalizedString ElementType="ClaimType" ElementId="otpCode" StringId="DisplayName">Enter your code.</LocalizedString>
          <LocalizedString ElementType="UxElement" StringId="button_continue">Verify</LocalizedString>
        </LocalizedStrings>
      </LocalizedResources>

Restful 服务错误消息

以下 ID 用于 Restful 服务技术配置文件错误消息:

ID 默认值
DefaultUserMessageIfRequestFailed 未能建立与 Restful 服务终结点的连接。 Restful 服务 URL:{0}
UserMessageIfCircuitOpen {0}Restful 服务 URL:{1}
UserMessageIfDnsResolutionFailed 未能解析 Restful 服务终结点的主机名。 Restful 服务 URL:{0}
UserMessageIfRequestTimeout 未能在 {0} 秒的超时限制内建立与 Restful 服务终结点的连接。 Restful 服务 URL:{1}

Restful 服务示例

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ErrorMessage" StringId="DefaultUserMessageIfRequestFailed">Failed to establish connection to restful service end point.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfCircuitOpen">Unable to connect to the restful service end point.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfDnsResolutionFailed">Failed to resolve the hostname of the restful service endpoint.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfRequestTimeout">Failed to establish connection to restful service end point within timeout limit.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

Microsoft Entra 多重身份验证错误消息

以下 ID 用于 Microsoft Entra ID 多重身份验证技术配置文件错误消息:

ID 默认值
UserMessageIfCouldntSendSms 无法向手机发送短信,请尝试另一个电话号码。
UserMessageIfInvalidFormat 电话号码格式无效,请更正,然后重试。
UserMessageIfMaxAllowedCodeRetryReached 输入错误代码的次数过多,请稍后重试。
UserMessageIfServerError 无法使用 MFA 服务,请稍后重试。
UserMessageIfThrottled 请求被阻止,请稍后重试。
UserMessageIfIncorrectOTPCodeEntered 输入的代码错误,请重试。

Microsoft Entra 多重身份验证示例

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfCouldntSendSms">Cannot Send SMS to the phone, please try another phone number.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidFormat">Your phone number is not in a valid format, please correct it and try again.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMaxAllowedCodeRetryReached">Wrong code entered too many times, please try again later.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfServerError">Cannot use MFA service, please try again later.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfThrottled">Your request has been throttled, please try again later.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfWrongCodeEntered">Wrong code entered, please try again.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

Microsoft Entra SSPR

以下 ID 用于 Microsoft Entra ID SSPR 技术配置文件错误消息:

ID 默认值
UserMessageIfChallengeExpired 代码已过期。
UserMessageIfInternalError 电子邮件服务遇到内部错误,请稍后重试。
UserMessageIfThrottled 你发送的请求过多,请稍后重试。
UserMessageIfVerificationFailedNoRetry 已超过最大的验证尝试次数。
UserMessageIfVerificationFailedRetryAllowed 验证失败,请重试。

Microsoft Entra SSPR 示例

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInternalError">We are having trouble verifying your email address. Please try again later.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfThrottled">There have been too many requests to verify this email address. Please wait a while, then try again.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfChallengeExpired">That code is expired. Please request a new code.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationFailedNoRetry">You've made too many incorrect attempts. Please try again later.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationFailedRetryAllowed">That code is incorrect. Please try again.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

一次性密码错误消息

下面是用于一次性密码技术配置文件错误消息的 ID。

ID 默认值 Description
UserMessageIfSessionDoesNotExist 代码验证会话过期后向用户显示的消息。 代码已过期,或从未为给定标识符生成代码。
UserMessageIfMaxRetryAttempted 用户尝试验证的次数超过允许的最大值时显示的消息。
UserMessageIfMaxNumberOfCodeGenerated 当代码生成超出了允许的最大尝试次数时显示给用户的消息。
UserMessageIfInvalidCode 用户输入的代码无效时显示的消息。
UserMessageIfVerificationFailedRetryAllowed 在用户输入的代码无效且系统允许用户提供正确代码的情况下向用户显示的消息。
UserMessageIfSessionConflict 无法验证代码时要向用户显示的消息。

一次性密码示例

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfSessionDoesNotExist">You have exceeded the maximum time allowed.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMaxRetryAttempted">You have exceeded the number of retries allowed.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfMaxNumberOfCodeGenerated">You have exceeded the number of code generation attempts allowed.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfInvalidCode">You have entered the wrong code.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfVerificationFailedRetryAllowed">That code is incorrect. Please try again.</LocalizedString>
   <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfSessionConflict">Cannot verify the code, please try again later.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

声明转换错误消息

以下 ID 用于声明转换错误消息:

ID 声明转换 默认值
UserMessageIfClaimsTransformationBooleanValueIsNotEqual AssertBooleanClaimIsEqualToValue 声明类型“inputClaim”的布尔声明值比较失败。
DateTimeGreaterThan AssertDateTimeIsGreaterThan 声明值比较失败:提供的左操作数大于右操作数。
UserMessageIfClaimsTransformationStringsAreNotEqual AssertStringClaimsAreEqual 使用 StringComparison“OrdinalIgnoreCase”的声明值比较失败。

声明转换示例 1:

此示例显示了本地帐户注册的本地化消息。

<LocalizedResources Id="api.localaccountsignup.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Your email address hasn't been verified.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="DateTimeGreaterThan">Expiration date must be greater that the current date.</LocalizedString>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationStringsAreNotEqual">The email entry fields do not match. Please enter the same email address in both fields and try again.</LocalizedString>
  </LocalizedStrings>
</LocalizedResources>

声明转换示例 2:

此示例显示了本地帐户密码重置的本地化消息。

<LocalizedResources Id="api.localaccountpasswordreset.en">
  <LocalizedStrings>
    <LocalizedString ElementType="ErrorMessage" StringId="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">You cannot use the old password</LocalizedString>    
  </LocalizedStrings>
</LocalizedResources>

CAPTCHA 显示控件用户界面元素

以下 ID 用于 CAPTCHA 显示控件

ID 默认值 说明
newCaptcha_arialabel 创建新的 CAPTCHA 当用户将鼠标指针移到 CAPTCHA 重播图标上时向用户显示的工具提示消息。
switchCaptchaType_title 将 CAPTCHA 类型切换到 {0} 将鼠标指针移到 CAPTCHA 音频或图像图标上时向用户显示的工具提示消息。
captchatype_visual_help 输入看到的字符 如果用户处于视觉模式,则用户输入 CAPTCHA 代码的输入框中的占位符文本。
captchatype_audio_title 按音频按钮播放挑战 当用户切换到音频模式时,将鼠标指针移到 CAPTCHA 扬声器图标上时向用户显示的工具提示消息。
captchatype_audio_help 输入听到的字符 用户切换到音频模式时输入 CAPTCHA 代码的输入框中的占位符文本。
charsnotmatched_error 这些字符与 CAPTCHA 质询不匹配。 请重试 如果用户输入错误的 CAPTCHA 代码,则向用户显示的消息。
api_error CAPTCHA 控件上的 API 错误 如果 Azure AD B2C 尝试验证 CAPTCHA 代码时发生错误,则向用户显示的消息。
captcha_resolved 成功! 如果用户输入正确的 CAPTCHA 代码,则向用户显示的消息。
DisplayName 帮助我们击败机器人。 CAPTCHA 显示控件的显示名称。

CAPTCHA 显示控件示例

此示例显示 CAPTCHA 显示控件的本地化消息。

      <LocalizedResources Id="api.localaccountsignup.en">
        <LocalizedStrings>
          <LocalizedString ElementType="UxElement" StringId="newCaptcha_arialabel">Create new CAPTCHA</LocalizedString>
          <LocalizedString ElementType="UxElement" StringId="switchCaptchaType_title">Switch CAPTCHA type to {0}</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captchatype_visual_help">Enter the characters you see</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captchatype_audio_title">Press audio button to play the challenge</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captchatype_audio_help"> Enter the characters you hear</LocalizedString>
          <LocalizedString ElementType="ErrorMessage"  StringId="charsnotmatched_error"> The characters did not match for CAPTCHA challenge. Please try again</LocalizedString>
          <LocalizedString ElementType="ErrorMessage"  StringId="api_error"> Api error on CAPTCHA control</LocalizedString>
          <LocalizedString ElementType="UxElement"  StringId="captcha_resolved"> Success!</LocalizedString>
          <LocalizedString ElementType="DisplayControl" ElementId="captchaControlChallengeCode" StringId="DisplayName">Help us beat the bots</LocalizedString>
        </LocalizedStrings>
      </LocalizedResources>

后续步骤

有关本地化示例,请参阅以下文章: