| 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/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" | 10 #include "chrome/browser/ui/webui/policy_indicator_localized_strings_provider.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 "resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION); | 230 "resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION); |
| 231 html_source->AddLocalizedString( | 231 html_source->AddLocalizedString( |
| 232 "resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION); | 232 "resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION); |
| 233 html_source->AddLocalizedString( | 233 html_source->AddLocalizedString( |
| 234 "resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON); | 234 "resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON); |
| 235 html_source->AddLocalizedString( | 235 html_source->AddLocalizedString( |
| 236 "resetPageFeedback", IDS_RESET_PROFILE_SETTINGS_FEEDBACK); | 236 "resetPageFeedback", IDS_RESET_PROFILE_SETTINGS_FEEDBACK); |
| 237 html_source->AddString( | 237 html_source->AddString( |
| 238 "resetPageLearnMoreUrl", | 238 "resetPageLearnMoreUrl", |
| 239 chrome::kResetProfileSettingsLearnMoreURL); | 239 chrome::kResetProfileSettingsLearnMoreURL); |
| 240 |
| 241 #if defined(OS_CHROMEOS) |
| 242 html_source->AddLocalizedString( |
| 243 "powerwashTitle", IDS_OPTIONS_FACTORY_RESET); |
| 244 html_source->AddString( |
| 245 "powerwashDescription", |
| 246 l10n_util::GetStringFUTF16( |
| 247 IDS_OPTIONS_FACTORY_RESET_DESCRIPTION, |
| 248 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME))); |
| 249 html_source->AddLocalizedString( |
| 250 "powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING); |
| 251 html_source->AddLocalizedString( |
| 252 "powerwashDialogBody", IDS_OPTIONS_FACTORY_RESET_WARNING); |
| 253 html_source->AddLocalizedString( |
| 254 "powerwashDialogButton", IDS_RELAUNCH_BUTTON); |
| 255 html_source->AddLocalizedString( |
| 256 "powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL); |
| 257 #endif |
| 240 } | 258 } |
| 241 | 259 |
| 242 void AddDateTimeStrings(content::WebUIDataSource* html_source) { | 260 void AddDateTimeStrings(content::WebUIDataSource* html_source) { |
| 243 html_source->AddLocalizedString( | 261 html_source->AddLocalizedString( |
| 244 "dateTimePageTitle", IDS_SETTINGS_DATE_TIME); | 262 "dateTimePageTitle", IDS_SETTINGS_DATE_TIME); |
| 245 html_source->AddLocalizedString( | 263 html_source->AddLocalizedString( |
| 246 "timeZone", IDS_SETTINGS_TIME_ZONE); | 264 "timeZone", IDS_SETTINGS_TIME_ZONE); |
| 247 html_source->AddLocalizedString( | 265 html_source->AddLocalizedString( |
| 248 "use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK); | 266 "use24HourClock", IDS_SETTINGS_USE_24_HOUR_CLOCK); |
| 249 html_source->AddLocalizedString( | 267 html_source->AddLocalizedString( |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 AddSyncStrings(html_source); | 741 AddSyncStrings(html_source); |
| 724 AddUsersStrings(html_source); | 742 AddUsersStrings(html_source); |
| 725 AddWebContentStrings(html_source); | 743 AddWebContentStrings(html_source); |
| 726 | 744 |
| 727 policy_indicator::AddLocalizedStrings(html_source); | 745 policy_indicator::AddLocalizedStrings(html_source); |
| 728 | 746 |
| 729 html_source->SetJsonPath(kLocalizedStringsFile); | 747 html_source->SetJsonPath(kLocalizedStringsFile); |
| 730 } | 748 } |
| 731 | 749 |
| 732 } // namespace settings | 750 } // namespace settings |
| OLD | NEW |