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/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 {"changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION}, | 329 {"changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION}, |
330 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD}, | 330 {"promptForDownload", IDS_SETTINGS_PROMPT_FOR_DOWNLOAD}, |
331 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE}, | 331 {"disconnectGoogleDriveAccount", IDS_SETTINGS_DISCONNECT_GOOGLE_DRIVE}, |
332 }; | 332 }; |
333 AddLocalizedStringsBulk(html_source, localized_strings, | 333 AddLocalizedStringsBulk(html_source, localized_strings, |
334 arraysize(localized_strings)); | 334 arraysize(localized_strings)); |
335 } | 335 } |
336 | 336 |
337 void AddResetStrings(content::WebUIDataSource* html_source) { | 337 void AddResetStrings(content::WebUIDataSource* html_source) { |
338 LocalizedString localized_strings[] = { | 338 LocalizedString localized_strings[] = { |
339 {"resetPageTitle", IDS_RESET_PROFILE_SETTINGS_SECTION_TITLE}, | 339 {"resetPageTitle", IDS_SETTINGS_RESET}, |
340 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, | 340 {"resetPageDescription", IDS_RESET_PROFILE_SETTINGS_DESCRIPTION}, |
341 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, | 341 {"resetPageExplanation", IDS_RESET_PROFILE_SETTINGS_EXPLANATION}, |
342 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, | 342 {"resetPageCommit", IDS_RESET_PROFILE_SETTINGS_COMMIT_BUTTON}, |
343 {"resetPageFeedback", IDS_RESET_PROFILE_SETTINGS_FEEDBACK}, | 343 {"resetPageFeedback", IDS_RESET_PROFILE_SETTINGS_FEEDBACK}, |
344 #if defined(OS_CHROMEOS) | 344 #if defined(OS_CHROMEOS) |
345 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, | 345 {"powerwashTitle", IDS_OPTIONS_FACTORY_RESET}, |
346 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, | 346 {"powerwashDialogTitle", IDS_OPTIONS_FACTORY_RESET_HEADING}, |
347 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, | 347 {"powerwashDialogExplanation", IDS_OPTIONS_FACTORY_RESET_WARNING}, |
348 {"powerwashDialogButton", IDS_RELAUNCH_BUTTON}, | 348 {"powerwashDialogButton", IDS_RELAUNCH_BUTTON}, |
349 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, | 349 {"powerwashLearnMoreUrl", IDS_FACTORY_RESET_HELP_URL}, |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 #endif | 855 #endif |
856 AddUsersStrings(html_source); | 856 AddUsersStrings(html_source); |
857 AddWebContentStrings(html_source); | 857 AddWebContentStrings(html_source); |
858 | 858 |
859 policy_indicator::AddLocalizedStrings(html_source); | 859 policy_indicator::AddLocalizedStrings(html_source); |
860 | 860 |
861 html_source->SetJsonPath(kLocalizedStringsFile); | 861 html_source->SetJsonPath(kLocalizedStringsFile); |
862 } | 862 } |
863 | 863 |
864 } // namespace settings | 864 } // namespace settings |
OLD | NEW |