Commit 4e1214e5 authored by Gavin Williams's avatar Gavin Williams Committed by Commit Bot

Add printer error strings

These strings will show on Chrome OS Print Preview when the currently
selected printer is in an error state.

Bug: 1059607
Change-Id: Id87e35170b044d77809d6494e2e0b713d78c1dbb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2228351
Commit-Queue: Gavin Williams <gavinwill@chromium.org>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Reviewed-by: default avatarBailey Berro <baileyberro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#776553}
parent e4a5a0a2
...@@ -320,6 +320,51 @@ ...@@ -320,6 +320,51 @@
<message name="IDS_PRINT_PREVIEW_EULA_URL" desc="Message shown to user when their printer has a EULA associated with its PPD. This message is hyperlinked to the EULA."> <message name="IDS_PRINT_PREVIEW_EULA_URL" desc="Message shown to user when their printer has a EULA associated with its PPD. This message is hyperlinked to the EULA.">
End User License Agreement End User License Agreement
</message> </message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_CONNECTING_TO_DEVICE" desc="Error label to show under the destination dropdown when the device can't connect to the printer.">
Error connecting to <ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph>
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_DEVICE_ERROR" desc="Error label to show under the destination dropdown when the printer has a device error.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> has a device error
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_DOOR_OPEN" desc="Error label to show under the destination dropdown when the printer has an open door.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph>'s door is open
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_LOW_ON_INK" desc="Error label to show under the destination dropdown when the printer is low on ink.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is low on ink
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_LOW_ON_PAPER" desc="Error label to show under the destination dropdown when the printer is low on paper">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is low on paper
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_OUT_OF_INK" desc="Error label to show under the destination dropdown when the printer is out of ink.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is out of ink
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_OUT_OF_PAPER" desc="Error label to show under the destination dropdown when the printer is out of paper.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is out of paper
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_OUPUT_ALMOST_FULL" desc="Error label to show under the destination dropdown when the printer's output area is almost full.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph>'s output area is almost full
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_OUPUT_FULL" desc="Error label to show under the destination dropdown when the printer's output area is full.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph>'s output area is full
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_PAPER_JAM" desc="Error label to show under the destination dropdown when the printer has a paper jam.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph>'s paper is jammed
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_PAUSED" desc="Error label to show under the destination dropdown when the printer is paused.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is paused
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_PRINTER_QUEUE_FULL" desc="Error label to show under the destination dropdown when the printer has a full queue.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph>'s queue is full
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_PRINTER_UNREACHABLE" desc="Error label to show under the destination dropdown when the printer is unreachable.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is unreachable
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_STOPPED" desc="Error label to show under the destination dropdown when the printer is stopped.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is stopped
</message>
<message name="IDS_PRINT_PREVIEW_PRINTER_STATUS_TRAY_MISSING" desc="Error label to show under the destination dropdown when the printer is missing a tray.">
<ph name="PRINTER_NAME">$1<ex>Home Office Printer</ex></ph> is missing a tray
</message>
<message name="IDS_PRINT_PREVIEW_SHEETS_LIMIT_ERROR_MESSAGE" desc="Sheets limit error message, explaining to the user why printing is blocked."> <message name="IDS_PRINT_PREVIEW_SHEETS_LIMIT_ERROR_MESSAGE" desc="Sheets limit error message, explaining to the user why printing is blocked.">
{COUNT, plural, {COUNT, plural,
=1 {Exceeds limit of 1 sheet of paper} =1 {Exceeds limit of 1 sheet of paper}
......
...@@ -324,6 +324,25 @@ void AddPrintPreviewStrings(content::WebUIDataSource* source) { ...@@ -324,6 +324,25 @@ void AddPrintPreviewStrings(content::WebUIDataSource* source) {
{"pinErrorMessage", IDS_PRINT_PREVIEW_PIN_ERROR_MESSAGE}, {"pinErrorMessage", IDS_PRINT_PREVIEW_PIN_ERROR_MESSAGE},
{"pinPlaceholder", IDS_PRINT_PREVIEW_PIN_PLACEHOLDER}, {"pinPlaceholder", IDS_PRINT_PREVIEW_PIN_PLACEHOLDER},
{"printerEulaURL", IDS_PRINT_PREVIEW_EULA_URL}, {"printerEulaURL", IDS_PRINT_PREVIEW_EULA_URL},
{"printerStatusConnectingToDevice",
IDS_PRINT_PREVIEW_PRINTER_STATUS_CONNECTING_TO_DEVICE},
{"printerStatusDeviceError", IDS_PRINT_PREVIEW_PRINTER_STATUS_DEVICE_ERROR},
{"printerStatusDoorOpen", IDS_PRINT_PREVIEW_PRINTER_STATUS_DOOR_OPEN},
{"printerStatusLowOnInk", IDS_PRINT_PREVIEW_PRINTER_STATUS_LOW_ON_INK},
{"printerStatusLowOnPaper", IDS_PRINT_PREVIEW_PRINTER_STATUS_LOW_ON_PAPER},
{"printerStatusOutOfInk", IDS_PRINT_PREVIEW_PRINTER_STATUS_OUT_OF_INK},
{"printerStatusOutOfPaper", IDS_PRINT_PREVIEW_PRINTER_STATUS_OUT_OF_PAPER},
{"printerStatusOutputAlmostFull",
IDS_PRINT_PREVIEW_PRINTER_STATUS_OUPUT_ALMOST_FULL},
{"printerStatusOutputFull", IDS_PRINT_PREVIEW_PRINTER_STATUS_OUPUT_FULL},
{"printerStatusPaperJam", IDS_PRINT_PREVIEW_PRINTER_STATUS_PAPER_JAM},
{"printerStatusPaused", IDS_PRINT_PREVIEW_PRINTER_STATUS_PAUSED},
{"printerStatusPrinterQueueFull",
IDS_PRINT_PREVIEW_PRINTER_STATUS_PRINTER_QUEUE_FULL},
{"printerStatusPrinterUnreachable",
IDS_PRINT_PREVIEW_PRINTER_STATUS_PRINTER_UNREACHABLE},
{"printerStatusStopped", IDS_PRINT_PREVIEW_PRINTER_STATUS_STOPPED},
{"printerStatusTrayMissing", IDS_PRINT_PREVIEW_PRINTER_STATUS_TRAY_MISSING},
#endif #endif
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
{"openPdfInPreviewOption", IDS_PRINT_PREVIEW_OPEN_PDF_IN_PREVIEW_APP}, {"openPdfInPreviewOption", IDS_PRINT_PREVIEW_OPEN_PDF_IN_PREVIEW_APP},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment