| 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 }; | 615 }; |
| 616 AddLocalizedStringsBulk(html_source, localized_strings, | 616 AddLocalizedStringsBulk(html_source, localized_strings, |
| 617 arraysize(localized_strings)); | 617 arraysize(localized_strings)); |
| 618 } | 618 } |
| 619 | 619 |
| 620 void AddResetStrings(content::WebUIDataSource* html_source) { | 620 void AddResetStrings(content::WebUIDataSource* html_source) { |
| 621 LocalizedString localized_strings[] = { | 621 LocalizedString localized_strings[] = { |
| 622 {"resetPageTitle", IDS_SETTINGS_RESET}, | 622 {"resetPageTitle", IDS_SETTINGS_RESET}, |
| 623 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, | 623 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, |
| 624 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, | 624 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, |
| 625 {"triggeredResetPageExplanation", |
| 626 IDS_TRIGGERED_RESET_PROFILE_SETTINGS_EXPLANATION}, |
| 627 {"triggeredResetPageTitle", IDS_TRIGGERED_RESET_PROFILE_SETTINGS_TITLE}, |
| 625 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, | 628 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, |
| 626 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK}, | 629 {"resetPageFeedback", IDS_SETTINGS_RESET_PROFILE_FEEDBACK}, |
| 627 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS}, | 630 {"viewReportedSettings", IDS_SETTINGS_RESET_VIEW_REPORTED_SETTINGS}, |
| 628 #if defined(OS_CHROMEOS) | 631 #if defined(OS_CHROMEOS) |
| 629 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, | 632 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, |
| 630 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, | 633 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, |
| 631 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, | 634 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, |
| 632 {"powerwashDialogButton", IDS_SETTINGS_RESTART}, | 635 {"powerwashDialogButton", IDS_SETTINGS_RESTART}, |
| 633 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, | 636 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, |
| 634 #endif | 637 #endif |
| (...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 #endif | 1714 #endif |
| 1712 AddUsersStrings(html_source); | 1715 AddUsersStrings(html_source); |
| 1713 AddWebContentStrings(html_source); | 1716 AddWebContentStrings(html_source); |
| 1714 | 1717 |
| 1715 policy_indicator::AddLocalizedStrings(html_source); | 1718 policy_indicator::AddLocalizedStrings(html_source); |
| 1716 | 1719 |
| 1717 html_source->SetJsonPath(kLocalizedStringsFile); | 1720 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1718 } | 1721 } |
| 1719 | 1722 |
| 1720 } // namespace settings | 1723 } // namespace settings |
| OLD | NEW |