| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void AddCommonStrings(content::WebUIDataSource* html_source) { | 62 void AddCommonStrings(content::WebUIDataSource* html_source) { |
| 63 LocalizedString localized_strings[] = { | 63 LocalizedString localized_strings[] = { |
| 64 {"add", IDS_ADD}, | 64 {"add", IDS_ADD}, |
| 65 {"cancel", IDS_CANCEL}, | 65 {"cancel", IDS_CANCEL}, |
| 66 {"disable", IDS_DISABLE}, | 66 {"disable", IDS_DISABLE}, |
| 67 {"learnMore", IDS_LEARN_MORE}, | 67 {"learnMore", IDS_LEARN_MORE}, |
| 68 {"ok", IDS_OK}, | 68 {"ok", IDS_OK}, |
| 69 {"save", IDS_SAVE}, | 69 {"save", IDS_SAVE}, |
| 70 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, | 70 {"advancedPageTitle", IDS_SETTINGS_ADVANCED}, |
| 71 {"basicPageTitle", IDS_SETTINGS_BASIC}, | 71 {"basicPageTitle", IDS_SETTINGS_BASIC}, |
| 72 {"internalSearch", IDS_SETTINGS_INTERNAL_SEARCH}, | 72 {"searchPrompt", IDS_SETTINGS_SEARCH_PROMPT}, |
| 73 // TODO(dpapad); IDS_DOWNLOAD_CLEAR_SEARCH and IDS_MD_HISTORY_CLEAR_SEARCH |
| 74 // are identical, merge them to one and re-use here. |
| 75 {"clearSearch", IDS_DOWNLOAD_CLEAR_SEARCH}, |
| 73 {"settings", IDS_SETTINGS_SETTINGS}, | 76 {"settings", IDS_SETTINGS_SETTINGS}, |
| 74 {"restart", IDS_SETTINGS_RESTART}, | 77 {"restart", IDS_SETTINGS_RESTART}, |
| 75 }; | 78 }; |
| 76 AddLocalizedStringsBulk(html_source, localized_strings, | 79 AddLocalizedStringsBulk(html_source, localized_strings, |
| 77 arraysize(localized_strings)); | 80 arraysize(localized_strings)); |
| 78 } | 81 } |
| 79 | 82 |
| 80 void AddA11yStrings(content::WebUIDataSource* html_source) { | 83 void AddA11yStrings(content::WebUIDataSource* html_source) { |
| 81 LocalizedString localized_strings[] = { | 84 LocalizedString localized_strings[] = { |
| 82 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, | 85 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, |
| (...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 #endif | 1137 #endif |
| 1135 AddUsersStrings(html_source); | 1138 AddUsersStrings(html_source); |
| 1136 AddWebContentStrings(html_source); | 1139 AddWebContentStrings(html_source); |
| 1137 | 1140 |
| 1138 policy_indicator::AddLocalizedStrings(html_source); | 1141 policy_indicator::AddLocalizedStrings(html_source); |
| 1139 | 1142 |
| 1140 html_source->SetJsonPath(kLocalizedStringsFile); | 1143 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1141 } | 1144 } |
| 1142 | 1145 |
| 1143 } // namespace settings | 1146 } // namespace settings |
| OLD | NEW |