| 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/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
| 10 #include "chrome/grit/chromium_strings.h" | 10 #include "chrome/grit/chromium_strings.h" |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 html_source->AddLocalizedString("supervisedUsersLabel", | 518 html_source->AddLocalizedString("supervisedUsersLabel", |
| 519 IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL); | 519 IDS_SETTINGS_USERS_SUPERVISED_USERS_LABEL); |
| 520 html_source->AddLocalizedString("showOnSigninLabel", | 520 html_source->AddLocalizedString("showOnSigninLabel", |
| 521 IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL); | 521 IDS_SETTINGS_USERS_SHOW_ON_SIGNIN_LABEL); |
| 522 html_source->AddLocalizedString("restrictSigninLabel", | 522 html_source->AddLocalizedString("restrictSigninLabel", |
| 523 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL); | 523 IDS_SETTINGS_USERS_RESTRICT_SIGNIN_LABEL); |
| 524 html_source->AddLocalizedString("addUsersLabel", | 524 html_source->AddLocalizedString("addUsersLabel", |
| 525 IDS_SETTINGS_USERS_ADD_USERS_LABEL); | 525 IDS_SETTINGS_USERS_ADD_USERS_LABEL); |
| 526 } | 526 } |
| 527 | 527 |
| 528 void AddWebContentStrings(content::WebUIDataSource* html_source) { |
| 529 html_source->AddLocalizedString("webContent", IDS_SETTINGS_WEB_CONTENT); |
| 530 html_source->AddLocalizedString("pageZoom", IDS_SETTINGS_PAGE_ZOOM); |
| 531 html_source->AddLocalizedString("fontSize", IDS_SETTINGS_FONT_SIZE); |
| 532 html_source->AddLocalizedString("verySmall", IDS_SETTINGS_VERY_SMALL); |
| 533 html_source->AddLocalizedString("small", IDS_SETTINGS_SMALL); |
| 534 html_source->AddLocalizedString("medium", IDS_SETTINGS_MEDIUM); |
| 535 html_source->AddLocalizedString("large", IDS_SETTINGS_LARGE); |
| 536 html_source->AddLocalizedString("veryLarge", IDS_SETTINGS_VERY_LARGE); |
| 537 html_source->AddLocalizedString("custom", IDS_SETTINGS_CUSTOM); |
| 538 html_source->AddLocalizedString("customizeFonts", |
| 539 IDS_SETTINGS_CUSTOMIZE_FONTS); |
| 540 html_source->AddLocalizedString("fontsAndEncoding", |
| 541 IDS_SETTING_FONTS_AND_ENCODING); |
| 542 html_source->AddLocalizedString("standardFont", IDS_SETTING_STANDARD_FONT); |
| 543 html_source->AddLocalizedString("serifFont", IDS_SETTING_SERIF_FONT); |
| 544 html_source->AddLocalizedString("sansSerifFont", IDS_SETTING_SANS_SERIF_FONT); |
| 545 html_source->AddLocalizedString("fixedWidthFont", |
| 546 IDS_SETTING_FIXED_WIDTH_FONT); |
| 547 html_source->AddLocalizedString("minimumFont", IDS_SETTING_MINIMUM_FONT_SIZE); |
| 548 html_source->AddLocalizedString("encoding", IDS_SETTING_ENCODING); |
| 549 html_source->AddLocalizedString("tiny", IDS_SETTING_TINY); |
| 550 html_source->AddLocalizedString("huge", IDS_SETTING_HUGE); |
| 551 html_source->AddLocalizedString("loremIpsum", IDS_SETTING_LOREM_IPSUM); |
| 552 html_source->AddLocalizedString("loading", IDS_SETTING_LOADING); |
| 553 html_source->AddLocalizedString("advancedFontSettings", |
| 554 IDS_SETTING_ADVANCED_FONT_SETTINGS); |
| 555 } |
| 556 |
| 528 } // namespace | 557 } // namespace |
| 529 | 558 |
| 530 namespace settings { | 559 namespace settings { |
| 531 | 560 |
| 532 void AddLocalizedStrings(content::WebUIDataSource* html_source, | 561 void AddLocalizedStrings(content::WebUIDataSource* html_source, |
| 533 Profile* profile) { | 562 Profile* profile) { |
| 534 AddCommonStrings(html_source); | 563 AddCommonStrings(html_source); |
| 535 | 564 |
| 536 #if defined(OS_CHROMEOS) | 565 #if defined(OS_CHROMEOS) |
| 537 AddA11yStrings(html_source); | 566 AddA11yStrings(html_source); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 549 #if defined(OS_CHROMEOS) | 578 #if defined(OS_CHROMEOS) |
| 550 AddMultiProfilesStrings(html_source, profile); | 579 AddMultiProfilesStrings(html_source, profile); |
| 551 #endif | 580 #endif |
| 552 AddOnStartupStrings(html_source); | 581 AddOnStartupStrings(html_source); |
| 553 AddPrivacyStrings(html_source); | 582 AddPrivacyStrings(html_source); |
| 554 AddSearchEnginesStrings(html_source); | 583 AddSearchEnginesStrings(html_source); |
| 555 AddSearchStrings(html_source); | 584 AddSearchStrings(html_source); |
| 556 AddSiteSettingsStrings(html_source); | 585 AddSiteSettingsStrings(html_source); |
| 557 AddSyncStrings(html_source); | 586 AddSyncStrings(html_source); |
| 558 AddUsersStrings(html_source); | 587 AddUsersStrings(html_source); |
| 588 AddWebContentStrings(html_source); |
| 559 | 589 |
| 560 html_source->SetJsonPath(kLocalizedStringsFile); | 590 html_source->SetJsonPath(kLocalizedStringsFile); |
| 561 } | 591 } |
| 562 | 592 |
| 563 } // namespace settings | 593 } // namespace settings |
| OLD | NEW |