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 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1115 {"searchingPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SEARCHING_PRINTER}, | 1115 {"searchingPrinter", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SEARCHING_PRINTER}, |
1116 {"printerNotFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_NOT_FOUND_PRINTER}, | 1116 {"printerNotFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_NOT_FOUND_PRINTER}, |
1117 {"printerFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_FOUND_PRINTER}, | 1117 {"printerFound", IDS_SETTINGS_PRINTING_CUPS_PRINTER_FOUND_PRINTER}, |
1118 {"selectManufacturerModelMessage", | 1118 {"selectManufacturerModelMessage", |
1119 IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_MANUFACTURER_MODEL}, | 1119 IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_MANUFACTURER_MODEL}, |
1120 {"printerManufacturer", IDS_SETTINGS_PRINTING_CUPS_PRINTER_MANUFACTURER}, | 1120 {"printerManufacturer", IDS_SETTINGS_PRINTING_CUPS_PRINTER_MANUFACTURER}, |
1121 {"selectDriver", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_DRIVER}, | 1121 {"selectDriver", IDS_SETTINGS_PRINTING_CUPS_PRINTER_SELECT_DRIVER}, |
1122 {"selectDriverButtonText", | 1122 {"selectDriverButtonText", |
1123 IDS_SETTINGS_PRINTING_CUPS_PRINTER_BUTTON_SELECT_DRIVER}, | 1123 IDS_SETTINGS_PRINTING_CUPS_PRINTER_BUTTON_SELECT_DRIVER}, |
1124 {"printerAddedSuccessfulMessage", | 1124 {"printerAddedSuccessfulMessage", |
1125 IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADDED_PRINTER_MESSAGE}, | 1125 IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADDED_PRINTER_DONE_MESSAGE}, |
| 1126 {"noPrinterNearbyMessage", |
| 1127 IDS_SETTINGS_PRINTING_CUPS_PRINTER_NO_PRINTER_NEARBY}, |
| 1128 {"searchingNearbyPrinters", |
| 1129 IDS_SETTINGS_PRINTING_CUPS_PRINTER_SEARCHING_NEARBY_PRINTER}, |
| 1130 {"printerAddedFailedMessage", |
| 1131 IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADDED_PRINTER_ERROR_MESSAGE}, |
| 1132 {"printerAddedTryAgainMessage", |
| 1133 IDS_SETTINGS_PRINTING_CUPS_PRINTER_ADDED_PRINTER_TRY_AGAIN_MESSAGE}, |
1126 #endif | 1134 #endif |
1127 }; | 1135 }; |
1128 AddLocalizedStringsBulk(html_source, localized_strings, | 1136 AddLocalizedStringsBulk(html_source, localized_strings, |
1129 arraysize(localized_strings)); | 1137 arraysize(localized_strings)); |
1130 | 1138 |
1131 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); | 1139 html_source->AddString("devicesUrl", chrome::kChromeUIDevicesURL); |
1132 html_source->AddString("printingCloudPrintLearnMoreUrl", | 1140 html_source->AddString("printingCloudPrintLearnMoreUrl", |
1133 chrome::kCloudPrintLearnMoreURL); | 1141 chrome::kCloudPrintLearnMoreURL); |
1134 | 1142 |
1135 #if defined(OS_CHROMEOS) | 1143 #if defined(OS_CHROMEOS) |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1648 #endif | 1656 #endif |
1649 AddUsersStrings(html_source); | 1657 AddUsersStrings(html_source); |
1650 AddWebContentStrings(html_source); | 1658 AddWebContentStrings(html_source); |
1651 | 1659 |
1652 policy_indicator::AddLocalizedStrings(html_source); | 1660 policy_indicator::AddLocalizedStrings(html_source); |
1653 | 1661 |
1654 html_source->SetJsonPath(kLocalizedStringsFile); | 1662 html_source->SetJsonPath(kLocalizedStringsFile); |
1655 } | 1663 } |
1656 | 1664 |
1657 } // namespace settings | 1665 } // namespace settings |
OLD | NEW |