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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 arraysize(localized_strings)); | 666 arraysize(localized_strings)); |
667 } | 667 } |
668 | 668 |
669 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { | 669 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { |
670 LocalizedString localized_strings[] = { | 670 LocalizedString localized_strings[] = { |
671 {"overflowMenu", IDS_SETTINGS_OVERFLOW_MENU}, | 671 {"overflowMenu", IDS_SETTINGS_OVERFLOW_MENU}, |
672 {"passwordsAndAutofillPageTitle", | 672 {"passwordsAndAutofillPageTitle", |
673 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, | 673 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, |
674 {"autofill", IDS_SETTINGS_AUTOFILL}, | 674 {"autofill", IDS_SETTINGS_AUTOFILL}, |
675 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING}, | 675 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING}, |
| 676 {"addAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_ADD_TITLE}, |
| 677 {"editAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_EDIT_TITLE}, |
| 678 {"addressCountry", IDS_SETTINGS_AUTOFILL_ADDRESSES_COUNTRY}, |
| 679 {"addressPhone", IDS_SETTINGS_AUTOFILL_ADDRESSES_PHONE}, |
| 680 {"addressEmail", IDS_SETTINGS_AUTOFILL_ADDRESSES_EMAIL}, |
676 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON}, | 681 {"addAddress", IDS_SETTINGS_AUTOFILL_ADD_ADDRESS_BUTTON}, |
677 {"editAddress", IDS_SETTINGS_ADDRESS_EDIT}, | 682 {"editAddress", IDS_SETTINGS_ADDRESS_EDIT}, |
678 {"removeAddress", IDS_SETTINGS_ADDRESS_REMOVE}, | 683 {"removeAddress", IDS_SETTINGS_ADDRESS_REMOVE}, |
679 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING}, | 684 {"creditCards", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_HEADING}, |
680 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON}, | 685 {"addCreditCard", IDS_SETTINGS_AUTOFILL_ADD_CREDIT_CARD_BUTTON}, |
681 {"editCreditCard", IDS_SETTINGS_CREDIT_CARD_EDIT}, | 686 {"editCreditCard", IDS_SETTINGS_CREDIT_CARD_EDIT}, |
682 {"removeCreditCard", IDS_SETTINGS_CREDIT_CARD_REMOVE}, | 687 {"removeCreditCard", IDS_SETTINGS_CREDIT_CARD_REMOVE}, |
683 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL}, | 688 {"creditCardType", IDS_SETTINGS_AUTOFILL_CREDIT_CARD_TYPE_COLUMN_LABEL}, |
684 {"creditCardExpiration", IDS_SETTINGS_CREDIT_CARD_EXPIRATION_DATE}, | 689 {"creditCardExpiration", IDS_SETTINGS_CREDIT_CARD_EXPIRATION_DATE}, |
685 {"creditCardName", IDS_SETTINGS_NAME_ON_CREDIT_CARD}, | 690 {"creditCardName", IDS_SETTINGS_NAME_ON_CREDIT_CARD}, |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1145 #endif | 1150 #endif |
1146 AddUsersStrings(html_source); | 1151 AddUsersStrings(html_source); |
1147 AddWebContentStrings(html_source); | 1152 AddWebContentStrings(html_source); |
1148 | 1153 |
1149 policy_indicator::AddLocalizedStrings(html_source); | 1154 policy_indicator::AddLocalizedStrings(html_source); |
1150 | 1155 |
1151 html_source->SetJsonPath(kLocalizedStringsFile); | 1156 html_source->SetJsonPath(kLocalizedStringsFile); |
1152 } | 1157 } |
1153 | 1158 |
1154 } // namespace settings | 1159 } // namespace settings |
OLD | NEW |