CHANGES IN CUPS V1.2.10
+ - ppdLocalize() now supports localizing for Japanese
+ using the "jp" locale name used by the ppdmerge
+ program from the CUPS DDK 1.1.0 (STR #2301)
- _cupsAdminSetServerSettings() did not support changing
of top-level directives as designed.
- The init script path check was broken.
*
* PPD custom option routines for the Common UNIX Printing System (CUPS).
*
- * Copyright 1997-2006 by Easy Software Products, all rights reserved.
+ * Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
{
snprintf(lkeyword, sizeof(lkeyword), "%s.%s", ll, keyword);
attr = ppdFindAttr(ppd, lkeyword, spec);
+
+ if (!attr && !strcmp(ll, "ja"))
+ {
+ /*
+ * Due to a bug in the CUPS DDK 1.1.0 ppdmerge program, Japanese
+ * PPD files were incorrectly assigned "jp" as the locale name
+ * instead of "ja". Support both the old (incorrect) and new
+ * locale names for Japanese...
+ */
+
+ snprintf(lkeyword, sizeof(lkeyword), "jp.%s", keyword);
+ attr = ppdFindAttr(ppd, lkeyword, spec);
+ }
}
#ifdef DEBUG