| 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 {"settings", IDS_SETTINGS_SETTINGS}, | 73 {"settings", IDS_SETTINGS_SETTINGS}, |
| 73 {"restart", IDS_SETTINGS_RESTART}, | 74 {"restart", IDS_SETTINGS_RESTART}, |
| 74 }; | 75 }; |
| 75 AddLocalizedStringsBulk(html_source, localized_strings, | 76 AddLocalizedStringsBulk(html_source, localized_strings, |
| 76 arraysize(localized_strings)); | 77 arraysize(localized_strings)); |
| 77 } | 78 } |
| 78 | 79 |
| 79 void AddA11yStrings(content::WebUIDataSource* html_source) { | 80 void AddA11yStrings(content::WebUIDataSource* html_source) { |
| 80 LocalizedString localized_strings[] = { | 81 LocalizedString localized_strings[] = { |
| 81 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, | 82 {"a11yPageTitle", IDS_SETTINGS_ACCESSIBILITY}, |
| (...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 #endif | 942 #endif |
| 942 AddUsersStrings(html_source); | 943 AddUsersStrings(html_source); |
| 943 AddWebContentStrings(html_source); | 944 AddWebContentStrings(html_source); |
| 944 | 945 |
| 945 policy_indicator::AddLocalizedStrings(html_source); | 946 policy_indicator::AddLocalizedStrings(html_source); |
| 946 | 947 |
| 947 html_source->SetJsonPath(kLocalizedStringsFile); | 948 html_source->SetJsonPath(kLocalizedStringsFile); |
| 948 } | 949 } |
| 949 | 950 |
| 950 } // namespace settings | 951 } // namespace settings |
| OLD | NEW |