summaryrefslogtreecommitdiff
path: root/ppdc/ppdc-driver.cxx
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2009-01-14 19:55:19 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2009-01-14 19:55:19 +0000
commitd2354e63977f1d0386a8d5724db2ec90fb666824 (patch)
treea79c2dacfa8a2f152008b4cd7dbc9aa503af01e3 /ppdc/ppdc-driver.cxx
parentc168a833caab4209bdb0035d8918207d40013591 (diff)
downloadcups-d2354e63977f1d0386a8d5724db2ec90fb666824.tar.gz
Merge changes from CUPS 1.4svn-r8252.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1123 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'ppdc/ppdc-driver.cxx')
-rw-r--r--ppdc/ppdc-driver.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/ppdc/ppdc-driver.cxx b/ppdc/ppdc-driver.cxx
index c6e0dda53..31c857f06 100644
--- a/ppdc/ppdc-driver.cxx
+++ b/ppdc/ppdc-driver.cxx
@@ -3,7 +3,7 @@
//
// PPD file compiler definitions for the CUPS PPD Compiler.
//
-// Copyright 2007-2008 by Apple Inc.
+// Copyright 2007-2009 by Apple Inc.
// Copyright 2002-2006 by Easy Software Products.
//
// These coded instructions, statements, and computer programs are the
@@ -945,7 +945,8 @@ ppdcDriver::write_ppd_file(
continue;
if (!o->text->value || !strcmp(o->name->value, o->text->value))
- cupsFilePrintf(fp, "*OpenUI *%s: ", o->name->value);
+ cupsFilePrintf(fp, "*OpenUI *%s: ", o->name->value,
+ catalog->find_message(o->name->value));
else
cupsFilePrintf(fp, "*OpenUI *%s/%s: ", o->name->value,
catalog->find_message(o->text->value));
@@ -1008,7 +1009,8 @@ ppdcDriver::write_ppd_file(
{
// Write this choice...
if (!c->text->value || !strcmp(c->name->value, c->text->value))
- cupsFilePrintf(fp, "*%s %s: \"%s\"%s", o->name->value, c->name->value,
+ cupsFilePrintf(fp, "*%s %s: \"%s\"%s", o->name->value,
+ catalog->find_message(c->name->value),
c->code->value, lf);
else
cupsFilePrintf(fp, "*%s %s/%s: \"%s\"%s", o->name->value,