| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide
r.h" | 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide
r.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 } | 671 } |
| 672 | 672 |
| 673 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { | 673 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { |
| 674 LocalizedString localized_strings[] = { | 674 LocalizedString localized_strings[] = { |
| 675 {"overflowMenu", IDS_SETTINGS_OVERFLOW_MENU}, | 675 {"overflowMenu", IDS_SETTINGS_OVERFLOW_MENU}, |
| 676 {"passwordsAndAutofillPageTitle", | 676 {"passwordsAndAutofillPageTitle", |
| 677 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, | 677 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, |
| 678 {"autofill", IDS_SETTINGS_AUTOFILL}, | 678 {"autofill", IDS_SETTINGS_AUTOFILL}, |
| 679 {"googlePayments", IDS_SETTINGS_GOOGLE_PAYMENTS}, | 679 {"googlePayments", IDS_SETTINGS_GOOGLE_PAYMENTS}, |
| 680 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING}, | 680 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING}, |
| 681 {"addAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_ADD_TITLE}, |
| 682 {"editAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_EDIT_TITLE}, |
| 683 {"addressCountry", IDS_SETTINGS_AUTOFILL_ADDRESSES_COUNTRY}, |
| 684 {"addressPhone", IDS_SETTINGS_AUTOFILL_ADDRESSES_PHONE}, |
| 685 {"addressEmail", IDS_SETTINGS_AUTOFILL_ADDRESSES_EMAIL}, |
| 681 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON}, | 686 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON}, |
| 682 {"editAddress", IDS_SETTINGS_ADDRESS_EDIT}, | 687 {"editAddress", IDS_SETTINGS_ADDRESS_EDIT}, |
| 683 {"removeAddress", IDS_SETTINGS_ADDRESS_REMOVE}, | 688 {"removeAddress", IDS_SETTINGS_ADDRESS_REMOVE}, |
| 684 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING}, | 689 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING}, |
| 685 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON}, | 690 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON}, |
| 686 {"editCreditCard", IDS_SETTINGS_CREDIT_CARD_EDIT}, | 691 {"editCreditCard", IDS_SETTINGS_CREDIT_CARD_EDIT}, |
| 687 {"removeCreditCard", IDS_SETTINGS_CREDIT_CARD_REMOVE}, | 692 {"removeCreditCard", IDS_SETTINGS_CREDIT_CARD_REMOVE}, |
| 688 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL}, | 693 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL}, |
| 689 {"creditCardExpiration", IDS_SETTINGS_CREDIT_CARD_EXPIRATION_DATE}, | 694 {"creditCardExpiration", IDS_SETTINGS_CREDIT_CARD_EXPIRATION_DATE}, |
| 690 {"creditCardName", IDS_SETTINGS_NAME_ON_CREDIT_CARD}, | 695 {"creditCardName", IDS_SETTINGS_NAME_ON_CREDIT_CARD}, |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 #endif | 1192 #endif |
| 1188 AddUsersStrings(html_source); | 1193 AddUsersStrings(html_source); |
| 1189 AddWebContentStrings(html_source); | 1194 AddWebContentStrings(html_source); |
| 1190 | 1195 |
| 1191 policy_indicator::AddLocalizedStrings(html_source); | 1196 policy_indicator::AddLocalizedStrings(html_source); |
| 1192 | 1197 |
| 1193 html_source->SetJsonPath(kLocalizedStringsFile); | 1198 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1194 } | 1199 } |
| 1195 | 1200 |
| 1196 } // namespace settings | 1201 } // namespace settings |
| OLD | NEW |