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 "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
9 #include "chrome/grit/chromium_strings.h" | 9 #include "chrome/grit/chromium_strings.h" |
10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL); | 255 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL); |
256 html_source->AddLocalizedString("addUsersLabel", | 256 html_source->AddLocalizedString("addUsersLabel", |
257 IDS_SETTINGS_USERS_ADD_USERS_LABEL); | 257 IDS_SETTINGS_USERS_ADD_USERS_LABEL); |
258 } | 258 } |
259 | 259 |
260 } // namespace | 260 } // namespace |
261 | 261 |
262 namespace settings { | 262 namespace settings { |
263 | 263 |
264 void AddLocalizedStrings(content::WebUIDataSource* html_source) { | 264 void AddLocalizedStrings(content::WebUIDataSource* html_source) { |
| 265 html_source->AddLocalizedString("basicPageTitle", |
| 266 IDS_SETTINGS_BASIC_PAGE_TITLE); |
| 267 html_source->AddLocalizedString("advancedPageTitle", |
| 268 IDS_SETTINGS_ADVANCED_PAGE_TITLE); |
| 269 |
265 AddA11yStrings(html_source); | 270 AddA11yStrings(html_source); |
266 AddAppearanceStrings(html_source); | 271 AddAppearanceStrings(html_source); |
267 AddCommonStrings(html_source); | 272 AddCommonStrings(html_source); |
268 AddDownloadsStrings(html_source); | 273 AddDownloadsStrings(html_source); |
269 AddDateTimeStrings(html_source); | 274 AddDateTimeStrings(html_source); |
270 #if defined(OS_CHROMEOS) | 275 #if defined(OS_CHROMEOS) |
271 AddInternetStrings(html_source); | 276 AddInternetStrings(html_source); |
272 #endif | 277 #endif |
273 AddPrivacyStrings(html_source); | 278 AddPrivacyStrings(html_source); |
274 AddSearchStrings(html_source); | 279 AddSearchStrings(html_source); |
275 AddSearchEnginesStrings(html_source); | 280 AddSearchEnginesStrings(html_source); |
276 AddSyncStrings(html_source); | 281 AddSyncStrings(html_source); |
277 AddUsersStrings(html_source); | 282 AddUsersStrings(html_source); |
278 html_source->SetJsonPath(kLocalizedStringsFile); | 283 html_source->SetJsonPath(kLocalizedStringsFile); |
279 } | 284 } |
280 | 285 |
281 } // namespace settings | 286 } // namespace settings |
OLD | NEW |