OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/dom_ui/autofill_edit_creditcard_handler.h" |
| 6 |
| 7 #include "app/l10n_util.h" |
| 8 #include "base/values.h" |
| 9 #include "grit/generated_resources.h" |
| 10 |
| 11 AutoFillEditCreditCardHandler::AutoFillEditCreditCardHandler() { |
| 12 } |
| 13 |
| 14 AutoFillEditCreditCardHandler::~AutoFillEditCreditCardHandler() { |
| 15 } |
| 16 |
| 17 void AutoFillEditCreditCardHandler::GetLocalizedValues( |
| 18 DictionaryValue* localized_strings) { |
| 19 DCHECK(localized_strings); |
| 20 localized_strings->SetString("autoFillEditCreditCardTitle", |
| 21 l10n_util::GetStringUTF16(IDS_AUTOFILL_EDIT_CREDITCARD_CAPTION)); |
| 22 localized_strings->SetString("nameOnCardLabel", |
| 23 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_NAME_ON_CARD)); |
| 24 localized_strings->SetString("billingAddressLabel", |
| 25 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_BILLING_ADDRESS)); |
| 26 localized_strings->SetString("chooseExistingAddress", |
| 27 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CHOOSE_EXISTING_ADDRESS)); |
| 28 localized_strings->SetString("creditCardNumberLabel", |
| 29 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CREDIT_CARD_NUMBER)); |
| 30 localized_strings->SetString("creditCardExpirationDateLabel", |
| 31 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_EXPIRATION_DATE)); |
| 32 localized_strings->SetString("cityLabel", |
| 33 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_CITY)); |
| 34 localized_strings->SetString("stateLabel", |
| 35 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_STATE)); |
| 36 localized_strings->SetString("zipCodeLabel", |
| 37 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_ZIP_CODE)); |
| 38 localized_strings->SetString("countryLabel", |
| 39 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_COUNTRY)); |
| 40 localized_strings->SetString("countryLabel", |
| 41 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_COUNTRY)); |
| 42 localized_strings->SetString("phoneLabel", |
| 43 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PHONE)); |
| 44 localized_strings->SetString("faxLabel", |
| 45 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_FAX)); |
| 46 localized_strings->SetString("emailLabel", |
| 47 l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_EMAIL)); |
| 48 localized_strings->SetString("autoFillEditCreditCardApplyButton", |
| 49 l10n_util::GetStringUTF16(IDS_OK)); |
| 50 localized_strings->SetString("autoFillEditCreditCardCancelButton", |
| 51 l10n_util::GetStringUTF16(IDS_CANCEL)); |
| 52 } |
OLD | NEW |