Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2860)

Unified Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc

Issue 983413005: Autofill - more translated strings in card unmasking prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
index c1878af6508608a05b4779ecf6a614dca685c7f9..3c8f5e603935a35a574e0e94f90d118eca3c23fb 100644
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc
@@ -76,8 +76,9 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView,
void GotVerificationResult(const base::string16& error_message,
bool allow_retry) override {
- if (!error_message.empty()) {
- progress_label_->SetText(base::ASCIIToUTF16("Success!"));
+ if (error_message.empty()) {
+ progress_label_->SetText(l10n_util::GetStringUTF16(
+ IDS_AUTOFILL_CARD_UNMASK_VERIFICATION_SUCCESS));
base::MessageLoop::current()->PostDelayedTask(
FROM_HERE, base::Bind(&CardUnmaskPromptViews::ClosePrompt,
base::Unretained(this)),
@@ -173,9 +174,8 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView,
}
base::string16 GetDialogButtonLabel(ui::DialogButton button) const override {
- // TODO(estade): fix this.
if (button == ui::DIALOG_BUTTON_OK)
- return base::ASCIIToUTF16("Verify");
+ return l10n_util::GetStringUTF16(IDS_AUTOFILL_CARD_UNMASK_CONFIRM_BUTTON);
return DialogDelegateView::GetDialogButtonLabel(button);
}
@@ -314,7 +314,8 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView,
progress_overlay_->SetVisible(false);
AddChildView(progress_overlay_);
- progress_label_ = new views::Label(base::ASCIIToUTF16("Verifying..."));
+ progress_label_ = new views::Label(l10n_util::GetStringUTF16(
+ IDS_AUTOFILL_CARD_UNMASK_VERIFICATION_IN_PROGRESS));
progress_overlay_->AddChildView(progress_label_);
}
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698