]> Pileus Git - ~andy/gtk/commitdiff
printing: Localize loaded PPD files
authorMarek Kasik <mkasik@redhat.com>
Fri, 20 Apr 2012 15:09:58 +0000 (17:09 +0200)
committerMarek Kasik <mkasik@redhat.com>
Fri, 20 Apr 2012 15:09:58 +0000 (17:09 +0200)
Use ppdLocalize() to localize strings in loaded PPD file (#674326).

modules/printbackends/cups/gtkprintbackendcups.c

index 3a250bb4242d1346aee5c19f8f253e9148ccec20..120f0c13038e3ea873103bd27e502a23c09e7702 100644 (file)
@@ -2318,6 +2318,9 @@ cups_request_ppd_cb (GtkPrintBackendCups *print_backend,
   /* let ppdOpenFd take over the ownership of the open file */
   g_io_channel_seek_position (data->ppd_io, 0, G_SEEK_SET, NULL);
   data->printer->ppd_file = ppdOpenFd (dup (g_io_channel_unix_get_fd (data->ppd_io)));
+#if (CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2) || CUPS_VERSION_MAJOR > 1
+  ppdLocalize (data->printer->ppd_file);
+#endif
 
   ppdMarkDefaults (data->printer->ppd_file);