- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的用户 jurnet 中有以下技术配置文件,可生成如下所示的 UI:
<TechnicalProfile Id="SelfAsserted-Select-MFA-Method">
<DisplayName>Allow user to choose their MFA Method</DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="ContentDefinitionReferenceId">api.selfasserted</Item>
</Metadata>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="extension_mfaByPhoneOrEmail" Required="true"/>
</OutputClaims>
</TechnicalProfile>
我需要将“更新您当前的个人资料”消息更改为有意义的内容或将其删除。
通过这个问题( Looking for an easy option to change the title of a SelfAssertedAttributeProvider UI ),我了解到最好的方法是使用此处记录的本地化:
不幸的是,上面的页面没有列出上面指出的消息“更新您当前的个人资料”的任何本地化字符串 ID。
上面指出的消息“更新您当前的配置文件”的本地化 ID 是什么?
有没有办法通过查看 UI 的 HTML 源代码或反汇编 DLL 来找到未记录的本地化 ID?
更新1:
@juunas 方法看起来很有希望,但那里没有“更新您当前的个人资料”消息的痕迹。
{
"ver_success_screenreader_msg": "E-mail address verified. You can now continue.",
"month": "Month",
"ver_but_default": "Default",
"ver_fail_server": "We are having trouble verifying your email address. Please enter a valid email address and try again.",
"ver_intro_msg": "Verification is necessary. Please click Send button.",
"ver_fail_throttled": "There have been too many requests to verify this email address. Please wait a while, then try again.",
"months": "January, February, March, April, May, June, July, August, September, October, November, December",
"ver_input": "Verification code",
"ver_fail_retry": "That code is incorrect. Please try again.",
"error_requiredFieldMissing": "A required field is missing. Please fill out all required fields and try again.",
"error_passwordEntryMismatch": "The password entry fields do not match. Please enter the same password in both fields and try again.",
"helplink_text": "What is this?",
"alert_yes": "Yes",
"ver_sent": "Verification code has been sent to:",
"verifying_blurb": "Please wait while we process your information.",
"ver_but_edit": "Change e-mail",
"ver_but_send": "Send verification code",
"ver_success_msg": "E-mail address verified. You can now continue.",
"cancel_message": "The user has cancelled entering self-asserted information",
"ver_incorrect_format": "Incorect format.",
"error_fieldIncorrect": "One or more fields are filled out incorrectly. Please check your entries and try again.",
"alert_message": "Are you sure that you want to cancel entering your details?",
"button_continue": "Continue",
"alert_title": "Cancel Entering Your Details",
"ver_fail_no_retry": "You've made too many incorrect attempts. Please try again later.",
"alert_no": "No",
"preloader_alt": "Please wait",
"ver_fail_code_expired": "That code is expired. Please request a new code.",
"button_cancel": "Cancel",
"ver_info_msg": "Verification code has been sent to your inbox. Please copy it to the input box below.",
"ver_but_verify": "Verify code",
"required_field": "This information is required.",
"ver_but_resend": "Send new code",
"initial_intro": "Please provide the following details.",
"year": "Year",
"day": "Day"
}
但是该消息位于 HTML 中:
最佳答案
我通常在 <head>
的脚本元素中找到本地化字符串。页面的一部分。它看起来像这样:
<script data-container="true" nonce="">
var SA_FIELDS = {
"AttributeFields": [
{
"UX_INPUT_TYPE": "TextBox",
"USER_INPUT_TYPE": "TextBox"
}
]
};
var CONTENT = {
"ver_success_screenreader_msg": "E-mail address verified. You can now continue.",
"month": "Month",
"ver_but_default": "Default",
"ver_fail_server": "We are having trouble verifying your email address. Please enter a valid email address and try again.",
"ver_intro_msg": "Verification is necessary. Please click Send button."
};
</script>
CONTENT
那里的变量包含本地化的字符串。您还可以通过输入 CONTENT
查看其内容在浏览器控制台中。
关于azure - B2C自定义策略: How to find undocumented Localization string ID for the jurney UI headers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64016490/
我是一名优秀的程序员,十分优秀!