Commit 317ba6b0 authored by Peter Boström's avatar Peter Boström Committed by Commit Bot

Add titlecase for password-manager buttons.

Bug: chromium:654115
Change-Id: I9aa312a5eeb1041bb5a1c725e22db774d91900c8
Reviewed-on: https://chromium-review.googlesource.com/896325Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Peter Boström <pbos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533672}
parent cfebc933
......@@ -4681,6 +4681,9 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_PASSWORD_MANAGER_ACCOUNT_CHOOSER_SIGN_IN" desc="In Title Case: The title of the Sign in button in the account chooser when there is one account.">
Sign In
</message>
<message name="IDS_PASSWORD_MANAGER_MANAGE_PASSWORDS_BUTTON" desc="In Title Case: The label of the 'Manage Passwords' button in the manage-passwords bubble.">
Manage Passwords
</message>
<message name="IDS_PASSWORD_MANAGER_SIGNIN_PROMO_SIGN_IN" desc="In Title Case: The title of the Sign in button in the bubble promoting Chrome sign-in.">
Sign In
</message>
......@@ -4710,6 +4713,9 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_PASSWORD_MANAGER_ACCOUNT_CHOOSER_SIGN_IN" desc="The title of the Sign in button in the account chooser when there is one account.">
Sign in
</message>
<message name="IDS_PASSWORD_MANAGER_MANAGE_PASSWORDS_BUTTON" desc="The label of the 'Manage passwords' link in the manage-passwords bubble.">
Manage passwords
</message>
<message name="IDS_PASSWORD_MANAGER_SIGNIN_PROMO_SIGN_IN" desc="The title of the Sign in button in the bubble promoting Chrome sign-in.">
Sign in
</message>
......@@ -5477,12 +5483,16 @@ the Bookmarks menu.">
<message name="IDS_PASSWORD_MANAGER_SAVE_BUTTON" desc="Save button text for password manager">
Save
</message>
<message name="IDS_PASSWORD_MANAGER_UPDATE_BUTTON" desc="Update button text for password manager">
Update password
</message>
<message name="IDS_PASSWORD_MANAGER_BLACKLIST_BUTTON" desc="Button text for the 'Save Password' infobar's 'Never remember for this site' option">
Never for this site
</message>
<if expr="use_titlecase">
<message name="IDS_PASSWORD_MANAGER_UPDATE_BUTTON" desc="In Title Case: Update button text for password manager">
Update Password
</message>
</if>
<if expr="not use_titlecase">
<message name="IDS_PASSWORD_MANAGER_UPDATE_BUTTON" desc="Update button text for password manager">
Update password
</message>
</if>
<message name="IDS_PASSWORD_MANAGER_BUBBLE_BLACKLIST_BUTTON" desc="Button text for the 'Save Password' bubble's 'Never remember for this site' option">
Never
</message>
......@@ -9217,9 +9227,6 @@ Please help our engineers fix this problem. Tell us what happened right before y
Password saved. View and manage saved passwords at <ph name="SAVED_PASSWORDS_LINK">$1<ex>passwords.google.com</ex></ph>
</message>
</if>
<message name="IDS_MANAGE_PASSWORDS_BUBBLE_LINK" desc="The label of the 'Manage passwords' link in the Manage Passwords bubble view">
Manage passwords
</message>
<message name="IDS_MANAGE_PASSWORDS_LINK" desc="The text for a link to the user's saved passwords. This is inserted into an infobar or a bubble that the browser shows to the user. The infobar and the bubble use a separate string in the translation console that has a placeholder for this link title.">
Google saved passwords
</message>
......
......@@ -312,7 +312,11 @@ ManagePasswordsBubbleModel::ManagePasswordsBubbleModel(
} else if (state_ == password_manager::ui::MANAGE_STATE) {
local_credentials_ = DeepCopyForms(delegate_->GetCurrentForms());
UpdateManageStateTitle();
manage_link_ = l10n_util::GetStringUTF16(IDS_MANAGE_PASSWORDS_BUBBLE_LINK);
// TODO(pbos): Remove manage_link_ + accessors when the cocoa dialog goes
// away. This temporarily uses the button label which is equivalent with
// the previous link.
manage_link_ =
l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_MANAGE_PASSWORDS_BUTTON);
}
if (state_ == password_manager::ui::CONFIRMATION_STATE) {
......
......@@ -269,7 +269,8 @@ void PasswordItemsView::NotifyPasswordFormAction(
views::View* PasswordItemsView::CreateExtraView() {
return views::MdTextButton::CreateSecondaryUiButton(
this, l10n_util::GetStringUTF16(IDS_MANAGE_PASSWORDS_BUBBLE_LINK));
this,
l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_MANAGE_PASSWORDS_BUTTON));
}
int PasswordItemsView::GetDialogButtons() const {
......
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