Commit 472ffbb2 authored by anthonyvd's avatar anthonyvd Committed by Commit bot

Put the signin error's "Learn More" link on its own line.

BUG=651933
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2387123002
Cr-Commit-Position: refs/heads/master@{#422959}
parent d1a865ba
...@@ -11236,7 +11236,7 @@ I don't think this site should be blocked! ...@@ -11236,7 +11236,7 @@ I don't think this site should be blocked!
Can't sign in to <ph name="USERNAME">$1<ex>Jane.Doe@gmail.com</ex></ph> Can't sign in to <ph name="USERNAME">$1<ex>Jane.Doe@gmail.com</ex></ph>
</message> </message>
<message name="IDS_SIGNIN_ERROR_LEARN_MORE_LINK" desc="Label in the signin error tab modal dialog containing the link to go to the Chrome Help page for sync problems."> <message name="IDS_SIGNIN_ERROR_LEARN_MORE_LINK" desc="Label in the signin error tab modal dialog containing the link to go to the Chrome Help page for sync problems.">
<ph name="SIGNIN_ERROR">$1<ex>Signing in with this username has been disabled by your administrator.</ex></ph> <ph name="BEGIN_LINK">&lt;a id="learnMoreLink" href="#"&gt;Learn more&lt;/a&gt;</ph> Learn more
</message> </message>
<message name="IDS_SIGNIN_ERROR_CLOSE_BUTTON_LABEL" desc="Label of the Close button in the signin error dialog."> <message name="IDS_SIGNIN_ERROR_CLOSE_BUTTON_LABEL" desc="Label of the Close button in the signin error dialog.">
Close Close
......
...@@ -32,7 +32,10 @@ ...@@ -32,7 +32,10 @@
<body> <body>
<div class="container"> <div class="container">
<div class="top-title-bar">$i18n{signinErrorTitle}</div> <div class="top-title-bar">$i18n{signinErrorTitle}</div>
<div class="details">$i18nRaw{signinErrorMessage}</div> <div class="details">
<p>$i18nRaw{signinErrorMessage}</p>
<a id="learnMoreLink" href="#">$i18nRaw{signinErrorLearnMore}</a>
</div>
<div class="action-container"> <div class="action-container">
<paper-button class="primary-action" id="switchButton"> <paper-button class="primary-action" id="switchButton">
$i18n{signinErrorSwitchLabel} $i18n{signinErrorSwitchLabel}
......
...@@ -97,23 +97,21 @@ SigninErrorUI::SigninErrorUI(content::WebUI* web_ui, ...@@ -97,23 +97,21 @@ SigninErrorUI::SigninErrorUI(content::WebUI* web_ui,
DCHECK(!existing_name.empty()); DCHECK(!existing_name.empty());
source->AddString( source->AddString(
"signinErrorMessage", "signinErrorMessage",
l10n_util::GetStringFUTF16( l10n_util::GetStringFUTF16(IDS_SYNC_USER_NAME_IN_USE_BY_ERROR,
IDS_SIGNIN_ERROR_LEARN_MORE_LINK, existing_name));
l10n_util::GetStringFUTF16(IDS_SYNC_USER_NAME_IN_USE_BY_ERROR,
existing_name)));
// Elide the existing name for the switch user button label. // Elide the existing name for the switch user button label.
existing_name = existing_name =
gfx::TruncateString(existing_name, 10, gfx::CHARACTER_BREAK); gfx::TruncateString(existing_name, 10, gfx::CHARACTER_BREAK);
} else { } else {
source->AddString("signinErrorMessage", source->AddString("signinErrorMessage", last_login_result);
l10n_util::GetStringFUTF16(
IDS_SIGNIN_ERROR_LEARN_MORE_LINK, last_login_result));
} }
// Add button label strings. // Add button label strings.
source->AddString("signinErrorSwitchLabel", source->AddString("signinErrorSwitchLabel",
l10n_util::GetStringFUTF16( l10n_util::GetStringFUTF16(
IDS_SIGNIN_ERROR_SWITCH_BUTTON_LABEL, existing_name)); IDS_SIGNIN_ERROR_SWITCH_BUTTON_LABEL, existing_name));
source->AddLocalizedString("signinErrorLearnMore",
IDS_SIGNIN_ERROR_LEARN_MORE_LINK);
source->AddLocalizedString("signinErrorCloseLabel", source->AddLocalizedString("signinErrorCloseLabel",
IDS_SIGNIN_ERROR_CLOSE_BUTTON_LABEL); IDS_SIGNIN_ERROR_CLOSE_BUTTON_LABEL);
source->AddLocalizedString("signinErrorOkLabel", source->AddLocalizedString("signinErrorOkLabel",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment