| 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/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 67 } |
| 68 | 68 |
| 69 void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) { | 69 void AddCommonStrings(content::WebUIDataSource* html_source, Profile* profile) { |
| 70 LocalizedString localized_strings[] = { | 70 LocalizedString localized_strings[] = { |
| 71 {"add", IDS_ADD}, | 71 {"add", IDS_ADD}, |
| 72 {"back", IDS_ACCNAME_BACK}, | 72 {"back", IDS_ACCNAME_BACK}, |
| 73 {"cancel", IDS_CANCEL}, | 73 {"cancel", IDS_CANCEL}, |
| 74 {"close", IDS_CLOSE}, | 74 {"close", IDS_CLOSE}, |
| 75 {"confirm", IDS_CONFIRM}, | 75 {"confirm", IDS_CONFIRM}, |
| 76 {"disable", IDS_DISABLE}, | 76 {"disable", IDS_DISABLE}, |
| 77 {"done", IDS_DONE}, |
| 77 {"learnMore", IDS_LEARN_MORE}, | 78 {"learnMore", IDS_LEARN_MORE}, |
| 78 {"ok", IDS_OK}, | 79 {"ok", IDS_OK}, |
| 79 {"save", IDS_SAVE}, | 80 {"save", IDS_SAVE}, |
| 80 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, | 81 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, |
| 81 {"basicPageTitle", IDS_SETTINGS_BASIC}, | 82 {"basicPageTitle", IDS_SETTINGS_BASIC}, |
| 82 {"settings", IDS_SETTINGS_SETTINGS}, | 83 {"settings", IDS_SETTINGS_SETTINGS}, |
| 83 {"restart", IDS_SETTINGS_RESTART}, | 84 {"restart", IDS_SETTINGS_RESTART}, |
| 84 {"menuButtonLabel", IDS_SETTINGS_MENU_BUTTON_LABEL}, | 85 {"menuButtonLabel", IDS_SETTINGS_MENU_BUTTON_LABEL}, |
| 85 }; | 86 }; |
| 86 AddLocalizedStringsBulk(html_source, localized_strings, | 87 AddLocalizedStringsBulk(html_source, localized_strings, |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 LocalizedString localized_strings[] = { | 686 LocalizedString localized_strings[] = { |
| 686 {"importTitle", IDS_SETTINGS_IMPORT_SETTINGS_TITLE}, | 687 {"importTitle", IDS_SETTINGS_IMPORT_SETTINGS_TITLE}, |
| 687 {"importFromLabel", IDS_SETTINGS_IMPORT_FROM_LABEL}, | 688 {"importFromLabel", IDS_SETTINGS_IMPORT_FROM_LABEL}, |
| 688 {"importDescription", IDS_SETTINGS_IMPORT_ITEMS_LABEL}, | 689 {"importDescription", IDS_SETTINGS_IMPORT_ITEMS_LABEL}, |
| 689 {"importLoading", IDS_SETTINGS_IMPORT_LOADING_PROFILES}, | 690 {"importLoading", IDS_SETTINGS_IMPORT_LOADING_PROFILES}, |
| 690 {"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX}, | 691 {"importHistory", IDS_SETTINGS_IMPORT_HISTORY_CHECKBOX}, |
| 691 {"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX}, | 692 {"importFavorites", IDS_SETTINGS_IMPORT_FAVORITES_CHECKBOX}, |
| 692 {"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX}, | 693 {"importPasswords", IDS_SETTINGS_IMPORT_PASSWORDS_CHECKBOX}, |
| 693 {"importSearch", IDS_SETTINGS_IMPORT_SEARCH_ENGINES_CHECKBOX}, | 694 {"importSearch", IDS_SETTINGS_IMPORT_SEARCH_ENGINES_CHECKBOX}, |
| 694 {"importAutofillFormData", IDS_SETTINGS_IMPORT_AUTOFILL_FORM_DATA_CHECKBOX}, | 695 {"importAutofillFormData", IDS_SETTINGS_IMPORT_AUTOFILL_FORM_DATA_CHECKBOX}, |
| 695 {"importSucceeded", IDS_SETTINGS_IMPORT_SUCCEEDED}, | |
| 696 {"importChooseFile", IDS_SETTINGS_IMPORT_CHOOSE_FILE}, | 696 {"importChooseFile", IDS_SETTINGS_IMPORT_CHOOSE_FILE}, |
| 697 {"importCommit", IDS_SETTINGS_IMPORT_COMMIT}, | 697 {"importCommit", IDS_SETTINGS_IMPORT_COMMIT}, |
| 698 {"noProfileFound", IDS_SETTINGS_IMPORT_NO_PROFILE_FOUND}, | 698 {"noProfileFound", IDS_SETTINGS_IMPORT_NO_PROFILE_FOUND}, |
| 699 {"findYourImportedBookmarks", IDS_SETTINGS_IMPORT_FIND_YOUR_BOOKMARKS}, | 699 {"importSuccess", IDS_SETTINGS_IMPORT_SUCCESS}, |
| 700 }; | 700 }; |
| 701 AddLocalizedStringsBulk(html_source, localized_strings, | 701 AddLocalizedStringsBulk(html_source, localized_strings, |
| 702 arraysize(localized_strings)); | 702 arraysize(localized_strings)); |
| 703 } | 703 } |
| 704 #endif | 704 #endif |
| 705 | 705 |
| 706 #if defined(OS_CHROMEOS) | 706 #if defined(OS_CHROMEOS) |
| 707 void AddDateTimeStrings(content::WebUIDataSource* html_source) { | 707 void AddDateTimeStrings(content::WebUIDataSource* html_source) { |
| 708 LocalizedString localized_strings[] = { | 708 LocalizedString localized_strings[] = { |
| 709 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, | 709 {"dateTimePageTitle", IDS_SETTINGS_DATE_TIME}, |
| (...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1799 #if defined(USE_NSS_CERTS) | 1799 #if defined(USE_NSS_CERTS) |
| 1800 AddCertificateManagerStrings(html_source); | 1800 AddCertificateManagerStrings(html_source); |
| 1801 #endif | 1801 #endif |
| 1802 | 1802 |
| 1803 policy_indicator::AddLocalizedStrings(html_source); | 1803 policy_indicator::AddLocalizedStrings(html_source); |
| 1804 | 1804 |
| 1805 html_source->SetJsonPath(kLocalizedStringsFile); | 1805 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1806 } | 1806 } |
| 1807 | 1807 |
| 1808 } // namespace settings | 1808 } // namespace settings |
| OLD | NEW |