From: Michael Sweet Date: Fri, 10 Mar 2017 16:27:24 +0000 (-0500) Subject: Fix localization of media type values, add a few common vendor-specific types. X-Git-Tag: v2.2.3~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4886d6747e6a06e7b64e87c90a6cee252db7b1f4;p=thirdparty%2Fcups.git Fix localization of media type values, add a few common vendor-specific types. --- diff --git a/cups/ppd-cache.c b/cups/ppd-cache.c index 3c99f18bf3..8a9edf72f1 100644 --- a/cups/ppd-cache.c +++ b/cups/ppd-cache.c @@ -3537,6 +3537,19 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ { "cardboard", _("Cardboard") }, { "cardstock", _("Cardstock") }, { "cd", _("CD") }, + { "com.hp.advanced-photo", _("Advanced Photo Paper") }, /* HP */ + { "com.hp.brochure-glossy", _("Glossy Brochure Paper") }, /* HP */ + { "com.hp.brochure-matte", _("Matte Brochure Paper") }, /* HP */ + { "com.hp.cover-matte", _("Matte Cover Paper") }, /* HP */ + { "com.hp.ecosmart-lite", _("Office Recycled Paper") }, /* HP */ + { "com.hp.everyday-glossy", _("Everyday Glossy Photo Paper") }, /* HP */ + { "com.hp.everyday-matte", _("Everyday Matte Paper") }, /* HP */ + { "com.hp.extra-heavy", _("Extra Heavyweight Paper") }, /* HP */ + { "com.hp.intermediate", _("Multipurpose Paper") }, /* HP */ + { "com.hp.mid-weight", _("Mid-Weight Paper") }, /* HP */ + { "com.hp.premium-inkjet", _("Premium Inkjet Paper") }, /* HP */ + { "com.hp.premium-photo", _("Premium Photo Glossy Paper") }, /* HP */ + { "com.hp.premium-presentation-matte", _("Premium Presentation Matte Paper") }, /* HP */ { "continuous", _("Continuous") }, { "continuous-long", _("Continuous Long") }, { "continuous-short", _("Continuous Short") }, @@ -3584,6 +3597,10 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ { "gravure-cylinder", _("Gravure Cylinder") }, { "image-setter-paper", _("Image Setter Paper") }, { "imaging-cylinder", _("Imaging Cylinder") }, + { "jp.co.canon_photo-paper-plus-glossy-ii", _("Photo Paper Plus Glossy II") }, /* Canon */ + { "jp.co.canon_photo-paper-pro-platinum", _("Photo Paper Pro Platinum") }, /* Canon */ + { "jp.co.canon-photo-paper-plus-glossy-ii", _("Photo Paper Plus Glossy II") }, /* Canon */ + { "jp.co.canon-photo-paper-pro-platinum", _("Photo Paper Pro Platinum") }, /* Canon */ { "labels", _("Labels") }, { "labels-colored", _("Colored Labels") }, { "labels-glossy", _("Glossy Labels") }, @@ -3636,14 +3653,14 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ { "single-face", _("Single Face") }, { "single-wall", _("Single Wall Cardboard") }, { "sleeve", _("Sleeve") }, - { "stationery", _("Stationery") }, - { "stationery-archival", _("Stationery Archival") }, + { "stationery", _("Plain Paper") }, + { "stationery-archival", _("Archival Paper") }, { "stationery-coated", _("Coated Paper") }, - { "stationery-cotton", _("Stationery Cotton") }, + { "stationery-cotton", _("Cotton Paper") }, { "stationery-fine", _("Vellum Paper") }, { "stationery-heavyweight", _("Heavyweight Paper") }, - { "stationery-heavyweight-coated", _("Stationery Heavyweight Coated") }, - { "stationery-inkjet", _("Stationery Inkjet Paper") }, + { "stationery-heavyweight-coated", _("Heavyweight Coated Paper") }, + { "stationery-inkjet", _("Inkjet Paper") }, { "stationery-letterhead", _("Letterhead") }, { "stationery-lightweight", _("Lightweight Paper") }, { "stationery-preprinted", _("Preprinted Paper") }, @@ -3666,7 +3683,7 @@ _ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ pwg_ppdize_name(keyword, ppdname, sizeof(ppdname)); for (j = 0; j < (int)(sizeof(media_types) / sizeof(media_types[0])); j ++) - if (!strcmp(keyword, media_types[i][0])) + if (!strcmp(keyword, media_types[j][0])) break; if (j < (int)(sizeof(media_types) / sizeof(media_types[0]))) diff --git a/cups/testppd.c b/cups/testppd.c index 1f66ca342d..e1b51564f6 100644 --- a/cups/testppd.c +++ b/cups/testppd.c @@ -1,7 +1,7 @@ /* * PPD test program for CUPS. * - * Copyright 2007-2015 by Apple Inc. + * Copyright 2007-2017 by Apple Inc. * Copyright 1997-2006 by Easy Software Products. * * These coded instructions, statements, and computer programs are the