Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2281353002: [CUPS] Implement the Add Printer dialogs. (Closed)
Patch Set: Address michaelpg@'s comments. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 {"cloudPrintersTitle", IDS_SETTINGS_PRINTING_CLOUD_PRINTERS}, 991 {"cloudPrintersTitle", IDS_SETTINGS_PRINTING_CLOUD_PRINTERS},
992 #if defined(OS_CHROMEOS) 992 #if defined(OS_CHROMEOS)
993 {"cupsPrintersTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTERS}, 993 {"cupsPrintersTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTERS},
994 {"addCupsPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_ADD_PRINTER}, 994 {"addCupsPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_ADD_PRINTER},
995 {"cupsPrinterDetails", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_DETAILS}, 995 {"cupsPrinterDetails", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_DETAILS},
996 {"removePrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_REMOVE}, 996 {"removePrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTERS_REMOVE},
997 {"searchLabel", IDS_SETTINGS_PRINTING_CUPS_SEARCH_LABEL}, 997 {"searchLabel", IDS_SETTINGS_PRINTING_CUPS_SEARCH_LABEL},
998 {"printerDetailsTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_TITLE}, 998 {"printerDetailsTitle", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_TITLE},
999 {"printerName", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_NAME}, 999 {"printerName", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_NAME},
1000 {"printerModel", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_MODEL}, 1000 {"printerModel", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_MODEL},
1001 {"printerQueue", IDS_SETTINGS_PRINTING_CUPS_PRINTER_DETAILS_QUEUE},
1001 {"addPrinterTitle", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_TITLE}, 1002 {"addPrinterTitle", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_TITLE},
1002 {"cancelButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_CANCEL}, 1003 {"cancelButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_CANCEL},
1003 {"addPrinterButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_ADD}, 1004 {"addPrinterButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_ADD},
1004 {"printerDetailsAdvanced", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED}, 1005 {"printerDetailsAdvanced", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED},
1005 {"printerAddress", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_ADDRESS}, 1006 {"printerAddress", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_ADDRESS},
1006 {"printerProtocol", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_PROTOCOL}, 1007 {"printerProtocol", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_PROTOCOL},
1008 {"manuallyAddPrinterButtonText",
1009 IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_MANUAL_ADD},
1010 {"discoverPrintersButtonText",
1011 IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_DISCOVER_PRINTERS},
1012 {"printerProtocolIpp", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_IPP},
1013 {"printerProtocolIpps", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_IPPS},
1014 {"printerProtocolHttp", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_HTTP},
1015 {"printerProtocolHttps", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_HTTPS},
1016 {"printerProtocolAppSocket",
1017 IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_APP_SOCKET},
1018 {"printerProtocolLpd", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_LPD},
1019 {"printerProtocolUsb", IDS_SETTINGS_PRINTING_CUPS_PRINTER_PROTOCOL_USB},
1020 {"printerConfiguringMessage",
1021 IDS_SETTINGS_PRINTING_CUPS_PRINTER_CONFIGURING_MESSAGE},
1007 #endif 1022 #endif
1008 }; 1023 };
1009 AddLocalizedStringsBulk(html_source, localized_strings, 1024 AddLocalizedStringsBulk(html_source, localized_strings,
1010 arraysize(localized_strings)); 1025 arraysize(localized_strings));
1011 1026
1012 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); 1027 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL);
1013 html_source->AddString("printingCloudPrintLearnMoreUrl", 1028 html_source->AddString("printingCloudPrintLearnMoreUrl",
1014 chrome::kCloudPrintLearnMoreURL); 1029 chrome::kCloudPrintLearnMoreURL);
1015 } 1030 }
1016 1031
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 #endif 1449 #endif
1435 AddUsersStrings(html_source); 1450 AddUsersStrings(html_source);
1436 AddWebContentStrings(html_source); 1451 AddWebContentStrings(html_source);
1437 1452
1438 policy_indicator::AddLocalizedStrings(html_source); 1453 policy_indicator::AddLocalizedStrings(html_source);
1439 1454
1440 html_source->SetJsonPath(kLocalizedStringsFile); 1455 html_source->SetJsonPath(kLocalizedStringsFile);
1441 } 1456 }
1442 1457
1443 } // namespace settings 1458 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698