Localize media names in print preview.
On Chrome OS, opening print preview against a CUPS printer exposes
unlocalized media names to the user. To enhance the user experience,
we extend media name localization. In this CL, we
* Add GRIT scaffolding to map PWG media names to common, localized,
and user-friendly names (to be translated).
* Move display name processing out of CUPS IPP code into the print
component.
* Update the unit tests in the print component and the CUPS IPP
code to exercise the new localizations and code flows.
[email protected], [email protected], [email protected], [email protected]
Bug: 899857
Test: Open print preview on Chrome OS against a CUPS printer and
observe the newly localized media names; run the components_unittests;
run the printing_unittests.
Change-Id: I1d4928a6d0f276a887c0edb5e2f2e17ad7fe0e80
Reviewed-on: https://chromium-review.googlesource.com/c/1446698
Reviewed-by: Jochen Eisinger <[email protected]>
Reviewed-by: Lei Zhang <[email protected]>
Reviewed-by: Sean Kau <[email protected]>
Commit-Queue: Kalvin Lee <[email protected]>
Cr-Commit-Position: refs/heads/master@{#630408}
diff --git a/components/components_strings.grd b/components/components_strings.grd
index 8ad54e69..65e9453 100644
--- a/components/components_strings.grd
+++ b/components/components_strings.grd
@@ -213,6 +213,7 @@
<part file="payments_strings.grdp" />
<part file="pdf_strings.grdp" />
<part file="policy_strings.grdp" />
+ <part file="print_media_strings.grdp" />
<part file="printing_component_strings.grdp" />
<part file="reset_password_strings.grdp" />
<part file="safe_browsing_strings.grdp" />