| 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/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 base::ASCIIToUTF16( | 681 base::ASCIIToUTF16( |
| 682 password_manager::kPasswordManagerAccountDashboardURL))); | 682 password_manager::kPasswordManagerAccountDashboardURL))); |
| 683 AddLocalizedStringsBulk(html_source, localized_strings, | 683 AddLocalizedStringsBulk(html_source, localized_strings, |
| 684 arraysize(localized_strings)); | 684 arraysize(localized_strings)); |
| 685 } | 685 } |
| 686 | 686 |
| 687 void AddPeopleStrings(content::WebUIDataSource* html_source) { | 687 void AddPeopleStrings(content::WebUIDataSource* html_source) { |
| 688 LocalizedString localized_strings[] = { | 688 LocalizedString localized_strings[] = { |
| 689 {"peoplePageTitle", IDS_SETTINGS_PEOPLE}, | 689 {"peoplePageTitle", IDS_SETTINGS_PEOPLE}, |
| 690 {"manageOtherPeople", IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE}, | 690 {"manageOtherPeople", IDS_SETTINGS_PEOPLE_MANAGE_OTHER_PEOPLE}, |
| 691 {"manageSupervisedUsers", IDS_SETTINGS_PEOPLE_MANAGE_SUPERVISED_USERS}, |
| 691 #if defined(OS_CHROMEOS) | 692 #if defined(OS_CHROMEOS) |
| 692 {"enableScreenlock", IDS_SETTINGS_PEOPLE_ENABLE_SCREENLOCK}, | 693 {"enableScreenlock", IDS_SETTINGS_PEOPLE_ENABLE_SCREENLOCK}, |
| 693 {"changePictureTitle", IDS_SETTINGS_CHANGE_PICTURE_DIALOG_TITLE}, | 694 {"changePictureTitle", IDS_SETTINGS_CHANGE_PICTURE_DIALOG_TITLE}, |
| 694 {"changePicturePageDescription", IDS_SETTINGS_CHANGE_PICTURE_DIALOG_TEXT}, | 695 {"changePicturePageDescription", IDS_SETTINGS_CHANGE_PICTURE_DIALOG_TEXT}, |
| 695 {"takePhoto", IDS_SETTINGS_CHANGE_PICTURE_TAKE_PHOTO}, | 696 {"takePhoto", IDS_SETTINGS_CHANGE_PICTURE_TAKE_PHOTO}, |
| 696 {"discardPhoto", IDS_SETTINGS_CHANGE_PICTURE_DISCARD_PHOTO}, | 697 {"discardPhoto", IDS_SETTINGS_CHANGE_PICTURE_DISCARD_PHOTO}, |
| 697 {"flipPhoto", IDS_SETTINGS_CHANGE_PICTURE_FLIP_PHOTO}, | 698 {"flipPhoto", IDS_SETTINGS_CHANGE_PICTURE_FLIP_PHOTO}, |
| 698 {"chooseFile", IDS_SETTINGS_CHANGE_PICTURE_CHOOSE_FILE}, | 699 {"chooseFile", IDS_SETTINGS_CHANGE_PICTURE_CHOOSE_FILE}, |
| 699 {"profilePhoto", IDS_SETTINGS_CHANGE_PICTURE_PROFILE_PHOTO}, | 700 {"profilePhoto", IDS_SETTINGS_CHANGE_PICTURE_PROFILE_PHOTO}, |
| 700 {"oldPhoto", IDS_SETTINGS_CHANGE_PICTURE_OLD_PHOTO}, | 701 {"oldPhoto", IDS_SETTINGS_CHANGE_PICTURE_OLD_PHOTO}, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 IDS_SETTINGS_PASSPHRASE_CONFIRMATION_PLACEHOLDER}, | 752 IDS_SETTINGS_PASSPHRASE_CONFIRMATION_PLACEHOLDER}, |
| 752 {"submitPassphraseButton", IDS_SETTINGS_SUBMIT_PASSPHRASE}, | 753 {"submitPassphraseButton", IDS_SETTINGS_SUBMIT_PASSPHRASE}, |
| 753 {"personalizeGoogleServicesTitle", | 754 {"personalizeGoogleServicesTitle", |
| 754 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TITLE}, | 755 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TITLE}, |
| 755 {"personalizeGoogleServicesText", | 756 {"personalizeGoogleServicesText", |
| 756 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TEXT}, | 757 IDS_SETTINGS_PERSONALIZE_GOOGLE_SERVICES_TEXT}, |
| 757 }; | 758 }; |
| 758 AddLocalizedStringsBulk(html_source, localized_strings, | 759 AddLocalizedStringsBulk(html_source, localized_strings, |
| 759 arraysize(localized_strings)); | 760 arraysize(localized_strings)); |
| 760 | 761 |
| 762 html_source->AddString("supervisedUsersUrl", |
| 763 chrome::kLegacySupervisedUserManagementURL); |
| 761 std::string disconnect_help_url = | 764 std::string disconnect_help_url = |
| 762 google_util::AppendGoogleLocaleParam( | 765 google_util::AppendGoogleLocaleParam( |
| 763 GURL(chrome::kSyncGoogleDashboardURL), | 766 GURL(chrome::kSyncGoogleDashboardURL), |
| 764 g_browser_process->GetApplicationLocale()) | 767 g_browser_process->GetApplicationLocale()) |
| 765 .spec(); | 768 .spec(); |
| 766 html_source->AddString( | 769 html_source->AddString( |
| 767 "syncDisconnectExplanation", | 770 "syncDisconnectExplanation", |
| 768 l10n_util::GetStringFUTF16(IDS_SETTINGS_SYNC_DISCONNECT_EXPLANATION, | 771 l10n_util::GetStringFUTF16(IDS_SETTINGS_SYNC_DISCONNECT_EXPLANATION, |
| 769 base::ASCIIToUTF16(disconnect_help_url))); | 772 base::ASCIIToUTF16(disconnect_help_url))); |
| 770 html_source->AddString( | 773 html_source->AddString( |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 #endif | 1108 #endif |
| 1106 AddUsersStrings(html_source); | 1109 AddUsersStrings(html_source); |
| 1107 AddWebContentStrings(html_source); | 1110 AddWebContentStrings(html_source); |
| 1108 | 1111 |
| 1109 policy_indicator::AddLocalizedStrings(html_source); | 1112 policy_indicator::AddLocalizedStrings(html_source); |
| 1110 | 1113 |
| 1111 html_source->SetJsonPath(kLocalizedStringsFile); | 1114 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1112 } | 1115 } |
| 1113 | 1116 |
| 1114 } // namespace settings | 1117 } // namespace settings |
| OLD | NEW |