X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=cups%2Ftestdest.c;fp=cups%2Ftestdest.c;h=c5c20528af0940b609e21713e4737b778252e682;hb=a9357c9da4b5df1fe0695dc1efa07f3022939758;hp=8505a1d834d16b36d5308e40217cbc5c8cc214cf;hpb=44b3f161334f8f3bea5eda84420c0bd71bd48ee3;p=thirdparty%2Fcups.git diff --git a/cups/testdest.c b/cups/testdest.c index 8505a1d83..c5c20528a 100644 --- a/cups/testdest.c +++ b/cups/testdest.c @@ -629,7 +629,7 @@ show_supported(http_t *http, /* I - Connection to destination */ } else if (!value) { - printf("%s (%s)\n", option, cupsCheckDestSupported(http, dest, dinfo, option, NULL) ? "supported" : "not-supported"); + printf("%s (%s - %s)\n", option, cupsLocalizeDestOption(http, dest, dinfo, option), cupsCheckDestSupported(http, dest, dinfo, option, NULL) ? "supported" : "not-supported"); if ((attr = cupsFindDestSupported(http, dest, dinfo, option)) != NULL) { @@ -644,7 +644,13 @@ show_supported(http_t *http, /* I - Connection to destination */ case IPP_TAG_ENUM : for (i = 0; i < count; i ++) - printf(" %s\n", ippEnumString(option, ippGetInteger(attr, i))); + { + int val = ippGetInteger(attr, i); + char valstr[256]; + + snprintf(valstr, sizeof(valstr), "%d", val); + printf(" %s (%s)\n", ippEnumString(option, ippGetInteger(attr, i)), cupsLocalizeDestValue(http, dest, dinfo, option, valstr)); + } break; case IPP_TAG_RANGE : @@ -670,11 +676,15 @@ show_supported(http_t *http, /* I - Connection to destination */ } break; + case IPP_TAG_KEYWORD : + for (i = 0; i < count; i ++) + printf(" %s (%s)\n", ippGetString(attr, i, NULL), cupsLocalizeDestValue(http, dest, dinfo, option, ippGetString(attr, i, NULL))); + break; + case IPP_TAG_TEXTLANG : case IPP_TAG_NAMELANG : case IPP_TAG_TEXT : case IPP_TAG_NAME : - case IPP_TAG_KEYWORD : case IPP_TAG_URI : case IPP_TAG_URISCHEME : case IPP_TAG_CHARSET :