| 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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 g_browser_process->GetApplicationLocale()) | 882 g_browser_process->GetApplicationLocale()) |
| 883 .spec(); | 883 .spec(); |
| 884 html_source->AddString("syncDashboardUrl", sync_dashboard_url); | 884 html_source->AddString("syncDashboardUrl", sync_dashboard_url); |
| 885 html_source->AddString( | 885 html_source->AddString( |
| 886 "activityControlsUrl", | 886 "activityControlsUrl", |
| 887 base::ASCIIToUTF16(chrome::kGoogleAccountActivityControlsURL)); | 887 base::ASCIIToUTF16(chrome::kGoogleAccountActivityControlsURL)); |
| 888 } | 888 } |
| 889 | 889 |
| 890 void AddPrintingStrings(content::WebUIDataSource* html_source) { | 890 void AddPrintingStrings(content::WebUIDataSource* html_source) { |
| 891 LocalizedString localized_strings[] = { | 891 LocalizedString localized_strings[] = { |
| 892 {"printingPageTitle", IDS_SETTINGS_PRINTING}, | 892 {"printingPageTitle", IDS_SETTINGS_PRINTING}, |
| 893 {"printingCloudPrintLearnMoreLabel", | 893 {"printingCloudPrintLearnMoreLabel", |
| 894 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL}, | 894 IDS_SETTINGS_PRINTING_CLOUD_PRINT_LEARN_MORE_LABEL}, |
| 895 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL}, | 895 {"printingNotificationsLabel", IDS_SETTINGS_PRINTING_NOTIFICATIONS_LABEL}, |
| 896 {"printingManageCloudPrintDevices", | 896 {"printingManageCloudPrintDevices", |
| 897 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES}, | 897 IDS_SETTINGS_PRINTING_MANAGE_CLOUD_PRINT_DEVICES}, |
| 898 {"cloudPrintersTitle", IDS_SETTINGS_PRINTING_CLOUD_PRINTERS}, |
| 899 #if defined(OS_CHROMEOS) |
| 900 {"cupsPrintersTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTERS}, |
| 901 #endif |
| 898 }; | 902 }; |
| 899 AddLocalizedStringsBulk(html_source, localized_strings, | 903 AddLocalizedStringsBulk(html_source, localized_strings, |
| 900 arraysize(localized_strings)); | 904 arraysize(localized_strings)); |
| 901 | 905 |
| 902 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); | 906 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); |
| 903 html_source->AddString("printingCloudPrintLearnMoreUrl", | 907 html_source->AddString("printingCloudPrintLearnMoreUrl", |
| 904 chrome::kCloudPrintLearnMoreURL); | 908 chrome::kCloudPrintLearnMoreURL); |
| 905 } | 909 } |
| 906 | 910 |
| 907 void AddPrivacyStrings(content::WebUIDataSource* html_source) { | 911 void AddPrivacyStrings(content::WebUIDataSource* html_source) { |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 #endif | 1293 #endif |
| 1290 AddUsersStrings(html_source); | 1294 AddUsersStrings(html_source); |
| 1291 AddWebContentStrings(html_source); | 1295 AddWebContentStrings(html_source); |
| 1292 | 1296 |
| 1293 policy_indicator::AddLocalizedStrings(html_source); | 1297 policy_indicator::AddLocalizedStrings(html_source); |
| 1294 | 1298 |
| 1295 html_source->SetJsonPath(kLocalizedStringsFile); | 1299 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1296 } | 1300 } |
| 1297 | 1301 |
| 1298 } // namespace settings | 1302 } // namespace settings |
| OLD | NEW |