| 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 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 {"addPrinterTitle", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_TITLE}, | 1001 {"addPrinterTitle", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_TITLE}, |
| 1002 {"cancelButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_CANCEL}, | 1002 {"cancelButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_CANCEL}, |
| 1003 {"addPrinterButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_ADD}, | 1003 {"addPrinterButtonText", IDS_SETTINGS_PRINTING_CUPS_ADD_PRINTER_BUTTON_ADD}, |
| 1004 {"printerDetailsAdvanced", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED}, |
| 1005 {"printerAddress", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_ADDRESS}, |
| 1006 {"printerProtocol", IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADVANCED_PROTOCOL}, |
| 1004 #endif | 1007 #endif |
| 1005 }; | 1008 }; |
| 1006 AddLocalizedStringsBulk(html_source, localized_strings, | 1009 AddLocalizedStringsBulk(html_source, localized_strings, |
| 1007 arraysize(localized_strings)); | 1010 arraysize(localized_strings)); |
| 1008 | 1011 |
| 1009 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); | 1012 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); |
| 1010 html_source->AddString("printingCloudPrintLearnMoreUrl", | 1013 html_source->AddString("printingCloudPrintLearnMoreUrl", |
| 1011 chrome::kCloudPrintLearnMoreURL); | 1014 chrome::kCloudPrintLearnMoreURL); |
| 1012 } | 1015 } |
| 1013 | 1016 |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 #endif | 1437 #endif |
| 1435 AddUsersStrings(html_source); | 1438 AddUsersStrings(html_source); |
| 1436 AddWebContentStrings(html_source); | 1439 AddWebContentStrings(html_source); |
| 1437 | 1440 |
| 1438 policy_indicator::AddLocalizedStrings(html_source); | 1441 policy_indicator::AddLocalizedStrings(html_source); |
| 1439 | 1442 |
| 1440 html_source->SetJsonPath(kLocalizedStringsFile); | 1443 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1441 } | 1444 } |
| 1442 | 1445 |
| 1443 } // namespace settings | 1446 } // namespace settings |
| OLD | NEW |