]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Localize cupsICCProfile attributes, too.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 22 Mar 2007 17:51:57 +0000 (17:51 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 22 Mar 2007 17:51:57 +0000 (17:51 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@6384 7a7537e8-13f0-0310-91df-b6672ffda945

cups/localize.c

index aa1742d18c374d85e9e39705d779e5bec4f7dea4..3c5128a46994e403773935eb1f25a774f3c31a40 100644 (file)
@@ -69,6 +69,7 @@ ppdLocalize(ppd_file_t *ppd)          /* I - PPD file */
   ppd_choice_t *choice;                /* Current choice */
   ppd_coption_t        *coption;               /* Current custom option */
   ppd_cparam_t *cparam;                /* Current custom parameter */
+  ppd_attr_t   *attr;                  /* Current attribute */
   cups_lang_t  *lang;                  /* Current language */
   char         ckeyword[PPD_MAX_NAME], /* Custom keyword */
                ll_CC[6],               /* Language + country locale */
@@ -151,6 +152,16 @@ ppdLocalize(ppd_file_t *ppd)               /* I - PPD file */
     }
   }
 
+ /*
+  * Translate ICC profile names...
+  */
+
+  for (attr = ppdFindAttr(ppd, "cupsICCProfile", NULL);
+       attr;
+       attr = ppdFindNextAttr(ppd, "cupsICCProfile", NULL))
+    if ((text = ppd_text(ppd, "cupsICCProfile", attr->name, ll_CC, ll)) != NULL)
+      strlcpy(attr->text, text, sizeof(attr->text));
+
   return (0);
 }