Apache OpenOffice (AOO) Bugzilla – Issue 93864
Globalized PPDs not localized iin print window
Last modified: 2016-04-09 10:22:47 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.
Created attachment 56513 [details] Sample globalized PPD from Gutenprint
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.
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.
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.
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.
Created attachment 57097 [details] Screenshot using globalized PPD in OOo
Created attachment 57098 [details] Screenshot using French only PPD in OOo
Created attachment 57099 [details] Screenshot using globalized generic PS printer in OOo
Created attachment 57100 [details] Screenshot using globalized generic PS printer in Preview
Created attachment 57105 [details] OOO300m9 print dialog
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.
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?
I did forget to mention that I was using OOO300m9 versionOOo (3.0-rc4) for the screenshots I submitted.
*LanguageVersion: English *cupsLanguages: "da es fi fr it nl no pt sv"
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.
The file is /Library/Printers/PPDs/Contents/Resources/xrwcp238.gz; AFAIK it comes with leopard.
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.
Created attachment 57115 [details] PDF comparing OOo and Preview print windows
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.
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.
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.
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
Fixed since 4.x