Issue 93864 - Globalized PPDs not localized iin print window
Summary: Globalized PPDs not localized iin print window
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: MacOSX (show other issues)
Version: OOo 3.0 RC1
Hardware: Mac All
: P3 Trivial (vote)
Target Milestone: 4.x
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-13 20:23 UTC by mabrought
Modified: 2016-04-09 10:22 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample globalized PPD from Gutenprint (426.35 KB, text/plain)
2008-09-13 20:25 UTC, mabrought
no flags Details
Screenshot using globalized PPD in OOo (55.36 KB, image/gif)
2008-10-10 02:34 UTC, mabrought
no flags Details
Screenshot using French only PPD in OOo (58.87 KB, image/gif)
2008-10-10 02:35 UTC, mabrought
no flags Details
Screenshot using globalized generic PS printer in OOo (39.18 KB, image/gif)
2008-10-10 02:36 UTC, mabrought
no flags Details
Screenshot using globalized generic PS printer in Preview (57.86 KB, image/gif)
2008-10-10 02:36 UTC, mabrought
no flags Details
OOO300m9 print dialog (141.59 KB, image/jpeg)
2008-10-10 09:30 UTC, philipp.lohmann
no flags Details
PDF comparing OOo and Preview print windows (183.84 KB, application/pdf)
2008-10-11 01:49 UTC, mabrought
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mabrought 2008-09-13 20:23:21 UTC
In Mac OS X 10.5.x, the print window will not show a localized PPD options when globalized PPDs are 
used.  This would also apply to any other platform using CUPS.  I have seen reference to applications 
needing to call  ppdLocalize() for the localized PPD options to be displayed.

Apple distributes globalized PPD file for their own printers.  The Gutenprint drivers are distributing 
globalized PPDs for Mac OS X beginning with their current (v5.2.0-beta4) version.

Currently, the following are found when using OpenOffice--
Example 1:  US English version of OpenOffice installed.  Printer is using Gutenprint 5.2.0-beta4 drivers 
with globalized PPDs. User 1 has language set for English.  The Printer Features (PPD options) in the 
print window are all in English.  User 2 has language set for French.  The Printer Features (PPD options) 
in the print window are all in English.

Example 2:  French version of OpenOffice installed.  Printer is using Gutenprint 5.2.0-beta4 drivers with 
globalized PPDs. User 1 has language set for English.  The Printer Features (PPD options) in the print 
window are all in English.  User 2 has language set for French.  The Printer Features (PPD options) in the 
print window are all in English.

Example 3:  US English version of OpenOffice installed.  Printer is using Gutenprint 5.2.0-beta4 drivers. 
Printer using PPD generated for loacalized French only.  User 1 has language set for English.  The Printer 
Features (PPD options) in the print window are all in French.  User 2 has language set for French.  The 
Printer Features (PPD options) in the print window are all in French.

OpenOffice should make use of the necessary API(s) to handle globalized PPD files.
Comment 1 mabrought 2008-09-13 20:25:48 UTC
Created attachment 56513 [details]
Sample globalized PPD from Gutenprint
Comment 2 philipp.lohmann 2008-10-08 17:45:33 UTC
I'm not sure if you're talking about the X11 version, which indeed made use of
CUPS directly. The X11 version of OOo is obsolete now however. The aqua version
uses the normal cocoa print dialog per default, or optionally an own platform
independent print dialog. In neither case OOo makes any use of CUPS however
other than accessing the cocoa print system.
Comment 3 mabrought 2008-10-09 02:41:18 UTC
I did file the issue against the Aqua OOo 3.x releases and not the X11 version.

For cross reference, please see Issue 94111.  If that enhancement is implemented
it may resolve the Mac OS X issue as I originally outlined.  If that
implementation will resolve the same issue with Mac OS X, you may want to close
this issue as a duplicate.

I am an end user and not a programmer.  In light of that, perhaps I should not
have cited a CUPS API.  The issue still remains, however, that if a user has the
French version of Aqua OOo 3.x installed and uses a globalized PPD, the printer
features will appear in English rather than French.  This can be easily
recreated using any of the PPDs that are installed with CUPS v1.3.x in OS X
10.5.x (generic PostScript, pxlmono, etc).  I would hope that you consider this
 behavior is not ideal and can/should be corrected.
 
Comment 4 philipp.lohmann 2008-10-09 16:35:27 UTC
OOo on Mac/Aqua does not touch PPD files in any way, it doesn't even know about
them. Per default the native mac print dialog is used, which will probably
access the PPD files to enable/disable the respective features, however this is
a detail of Apple's cocoa toolkit itself.

I just installed the french version of OOO300m9 and got all entries in the print
dialog for generic postscript printer in french (which is what I would expect),
even though the system is english. Trying with a xerox printer (the xrxwc232.gz
PPD for that matter), there are some strings available that seem to come out of
the PPD under "Fonctionnalités Xerox", which show up as for example "Couleur:
White" which is obviously a mixture of french and english. However exactly the
same happens if I use the same dialog in Apple's very own TextEdit application
(having switched the language preference to french of course).

There was issue 93983 which was about native dialogs (file dialog and print
dialog) coming up in the wrong language in multi language installations. That
was fixed with OOO300m7. My guess would be that this is what you saw, for at the
moment I don't see the problem.

Please tell me if I'm doing the wrong thing, of course I wouldn't want the
dialog to come up with the wrong localization, however since cocoa does this
dialog all by itself I'm not sure if we could do anything here.
Comment 5 mabrought 2008-10-10 02:33:08 UTC
I think we are both close to seeing the same thing.  The support for globalized
PPDs does vary by application -- even among the Apple supplied applications. 
TextEdit doesn't seem to support globalized PPDs.  Globalized PPDs vary quite a
bit also as to how much translation they contain.

I will attach some screen shots to better illustrate where I feel OpenOffice
isn't handling the globalized PPDs correctly.
OOoGlobalPPD.gif shows the French version of OpenOffice with a print window. 
The PPD being used is a globalized PPD from the Gutenprint drivers.  This is the
same PPD I have previously attached.  It shows all choices in English.

OOoFrenchPPD.gif shows the French version of OpenOffice with a print window
using the same document as above.  The PPD is a French only PPD for use with the
Gutenprint drivers.  The print dialog is a mixture of French and English.

The Generic PostScript printer PPD that comes with OS X 10.5.5 does not contain
very much in the way of French translations.  However, there is a translation
for Paper Feed.
OOoGenericPS.gif shows the use of the globalized PPD for the Generic PostScript
printer that comes with OS X 10.5.5.  This shows the print window is all English.

PreviewGenericPS.gif shows the use of the same globalized PPD for the Generic
PostScript printer being used in Preview.  There is a mix of French and English.

Hopefully this will give a clearer idea of what I have tried to describe before.
Comment 6 mabrought 2008-10-10 02:34:34 UTC
Created attachment 57097 [details]
Screenshot using globalized PPD in OOo
Comment 7 mabrought 2008-10-10 02:35:20 UTC
Created attachment 57098 [details]
Screenshot using French only PPD in OOo
Comment 8 mabrought 2008-10-10 02:36:18 UTC
Created attachment 57099 [details]
Screenshot using globalized generic PS printer in OOo
Comment 9 mabrought 2008-10-10 02:36:58 UTC
Created attachment 57100 [details]
Screenshot using globalized generic PS printer in Preview
Comment 10 philipp.lohmann 2008-10-10 09:30:01 UTC
Created attachment 57105 [details]
OOO300m9 print dialog
Comment 11 philipp.lohmann 2008-10-10 09:33:47 UTC
As I thought the whole dialog comes up in english for you, in which case it
would be expected that the entries the dialog takes from the PPD for english are
taken. Please see attached picture how it looks like in the OOO300m9 version:
the whole dialog in french, even though the system language is english. Which is
I think as it should be in a french OOo installation.
Comment 12 mabrought 2008-10-10 14:02:27 UTC
I too am able to get the entire print dialog in French if I use a French PPD. 
This is illustrated in the OOoFrenchPPD.gif screenshot I supplied.

The globalized PPD used for the screenshot OOoGlobalPPD.gif contains the lines:
*LanguageVersion: English
*LanguageEncoding: ISOLatin1      and
*cupsLanguages: "cs da de el en_GB es fr hu ja nb nl pl pt sk sv zh_TW"

The French PPD used in the OOoFrenchPPD.gif contains the lines:
*LanguageVersion: French
*LanguageEncoding: UTF-8   

What language(s) are supported by the PPD that you are using?

 
Comment 13 mabrought 2008-10-10 14:09:33 UTC
I did forget to mention that I was using OOO300m9 versionOOo (3.0-rc4) for the
screenshots I submitted.
Comment 14 philipp.lohmann 2008-10-10 14:13:11 UTC
*LanguageVersion: English
*cupsLanguages: "da es fi fr it nl no pt sv"
Comment 15 mabrought 2008-10-10 14:25:12 UTC
Could you post the PPD that you are using?  I will see if I can can match your
experience.  The difference may come down to how the PPD files are written.
Comment 16 philipp.lohmann 2008-10-10 15:28:31 UTC
The file is /Library/Printers/PPDs/Contents/Resources/xrwcp238.gz; AFAIK it
comes with leopard.
Comment 17 mabrought 2008-10-11 01:46:59 UTC
First let me thank you for your time and effort on this issue and for bearing
with me as I stumble through this issue.

There obviously was some sort of corruption on my system that was causing part
of the print window to show in English only.  I did a fresh download of OOO300m9
versionOOo (3.0-rc4) and switched to a different computer.  I am indeed seeing
the system options in French now.  However, the options from the PPDs under
Printer Features are still only in English.  

The translation of the printer features contained found in globalized PPDs is
what is the crux of the issue.  They are not showing in OOo.  They are showing
in Preview.

I am attaching a PDF file --PrintWindowComarisons.pdf--  with some comparisons
between OOo and Preview using globalized PPDs.

In the first instance I use the PPD for an Epson Stylus Photo 1280 from the
Gutenprint drivers.  This is the PPD that I originally attached to this issue. 
OOo application shows the system choices in French while the PPD options under
Printer Features are English only.  The print window from Preview application
the system options in French.  It also shows the translated PPD options mostly
in French.

I did an install of the Xerox driver from the OS X 10.5 install disk and set up
a printer to use the Xerox 232 PPD file you have used.  The Xerox drivers that
get installed also include PDEs that will translate the Printer Features into
the appropriate language for the user.  To see what OOo and Preview do with just
the translations found in the PPD itself, you must first remove the
/Library/Printers/Xerox/PDEs folder.  The print window from OOo again shows only
the system options are in French.  The Printer Feature options from the PPD are
in English only.  In comparison, Preview shows the translated Printer Features
in French.

Comment 18 mabrought 2008-10-11 01:49:13 UTC
Created attachment 57115 [details]
PDF comparing OOo and Preview print windows
Comment 19 philipp.lohmann 2008-10-13 09:47:19 UTC
That brings the ball squarely back to Apple. As you can see the dialog is
localized just fine, it makes not much sense for the dialog to take the english
CUPS strings then. However as you mentioned some ominous ppdLocalize call I'll
try if that changes something. If we can even get the PPD file at the
appropriate time.
Comment 20 mabrought 2008-10-16 14:38:17 UTC
It would seem that it might be Apple's responsibility to do the localization of
the Printer Features where the standard print dialog is used.  I believe,
however, that Apple's documentation states otherwise.  I found reference to
PMCopyLocalizedPPD in the Core Printing Reference
<http://developer.apple.com/documentation/GraphicsImaging/Reference/CorePrintRef/Reference/reference.html#//apple_ref/c/func/PMCopyLocalizedPPD>.

This seems to indicate that it is up to the application to obtain the correct
localized data.  This entry also points to the CUPS PPD Extensions.
Comment 21 philipp.lohmann 2008-10-16 15:16:04 UTC
IMHO that merely means that the function the cocoa printing system would need to
use actually exists. Again, we do not use or even know about any PPD files on
Mac/Aqua; it's all encapsulated in the cocoa print system.
Comment 22 oooforum (fr) 2014-09-04 14:35:37 UTC
Seems to be fixed with AOO 4.x
Screenshot of french UI: 
https://forum.openoffice.org/fr/forum/download/file.php?id=94612&mode=view
Comment 23 oooforum (fr) 2014-11-18 17:22:03 UTC
Fixed since 4.x