]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/localize.c
Merge changes from CUPS trunk, r7566.
[thirdparty/cups.git] / cups / localize.c
index fc981e2d153b1d47c68774ece54e148b5f8a2387..3136d4b7e64764fbe0144486b0becbcc8f2b3a15 100644 (file)
@@ -574,7 +574,7 @@ _ppdLocalizedAttr(ppd_file_t *ppd,  /* I - PPD file */
   snprintf(lkeyword, sizeof(lkeyword), "%s.%s", ll_CC, keyword);
   if ((attr = ppdFindAttr(ppd, lkeyword, spec)) == NULL)
   {
-    snprintf(lkeyword, sizeof(lkeyword), "%2s.%s", ll_CC, keyword);
+    snprintf(lkeyword, sizeof(lkeyword), "%2.2s.%s", ll_CC, keyword);
     attr = ppdFindAttr(ppd, lkeyword, spec);
 
     if (!attr)
@@ -607,10 +607,10 @@ _ppdLocalizedAttr(ppd_file_t *ppd,        /* I - PPD file */
 
 #ifdef DEBUG
   if (attr)
-    printf("    *%s %s/%s: \"%s\"\n", attr->name, attr->spec, attr->text,
-           attr->value ? attr->value : "");
+    DEBUG_printf(("_ppdLocalizedAttr: *%s %s/%s: \"%s\"\n", attr->name,
+                  attr->spec, attr->text, attr->value ? attr->value : ""));
   else
-    puts("    NOT FOUND");
+    DEBUG_puts("_ppdLocalizedAttr: NOT FOUND");
 #endif /* DEBUG */
 
   return (attr);