Globalized PPD strings not showing in web interface

Juan Ramon jjig at once.es
Fri Jul 7 01:03:35 PDT 2006


  Hi all,

   I have a  similar problem with my globalized PPD strings. I have followed the document to globalize my drivers to spanish, but always get  the printer options in english. I have probed to put my browser language in spanish and also to execute in a terminal "lpoptions -p <queue> -l" under spanish locale, but always get my options in english.

  Is something wrong in my PPD? (i attach it)

  Thanks
  Juan Ramon

----------
*PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
*% script, consult http://www.linuxprinting.org/
*%
*% This file is published under the GNU General Public License
*%
*% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. It is for use with
*% all programs and environments which use PPD files for dealing with
*% printer capability information. The printer must be configured with the
*% "foomatic-rip" backend filter script of Foomatic 3.0.0 or newer. This
*% file and "foomatic-rip" work together to support PPD-controlled printer
*% driver option access with arbitrary free software printer drivers and
*% printing spoolers.
*%
*% To save this file on your disk, wait until the download has completed
*% (the animation of the browser logo must stop) and then use the
*% "Save as..." command in the "File" menu of your browser or in the
*% pop-up manu when you click on this document with the right mouse button.
*% DO NOT cut and paste this file into an editor with your mouse. This can
*% introduce additional line breaks which lead to unexpected results.
*%
*% You may save this file as 'Impacto.ppd'
*%
*%
*FormatVersion:	"4.3"
*FileVersion:	"1.2"
*LanguageVersion: English
*LanguageEncoding: ISOLatin1
*cupsLanguages: "es"
*PCFileName:	"IMPACTO.PPD"
*Manufacturer:	"ONCE"
*Product:	"(BraillePrinter)"
*cupsVersion:	1.0
*cupsManualCopies: True
*cupsModelNumber:  2
*cupsFilter:	"application/vnd.cups-postscript 0 foomatic-rip"
*%pprRIP:        foomatic-rip other
*ModelName:     "ONCE Impacto"
*ShortNickName: "Impresora braille Impacto"
*NickName:      "Impresora braille ONCE Impacto"
*PSVersion:	"(3010.000) 550"
*PSVersion:	"(3010.000) 651"
*PSVersion:	"(3010.000) 652"
*PSVersion:	"(3010.000) 653"
*PSVersion:	"(3010.000) 704"
*PSVersion:	"(3010.000) 705"
*PSVersion:	"(3010.000) 800"
*LanguageLevel:	"3"
*ColorDevice:	False
*DefaultColorSpace: Gray
*FileSystem:	False
*Throughput:	"1"
*TTRasterizer:	None


*JCLBegin: "<1B>(<1B>3<1B>,CP0<0A><1B>,GU0<0A><1B>,IN0<0A><1B>,MB2<0A><1B>,ML0<0A><1B>,MR0<0A><1B>,MT2<0A><1B>,NP0<0A><1B>,PN0<0A><1B>,TO0<0A><1B>1[<0A>"
*JCLEnd: "<1B>T<0A>"



*FoomaticIDs: ONCE-Impacto impacto
*FoomaticRIPCommandLine: "\gs -q  -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -dNODISPLAY ps2ascii.ps -sOUTPUTFILE=- - | parserbra %E "
*End


*OpenGroup: General/General



*OpenUI *PageSize/Page Size: PickOne
*FoomaticRIPOption PageSize: enum CmdLine E
*OrderDependency: 90 AnySetup *PageSize
*DefaultPageSize: ID42x12
*PageSize ID42x12/42 columns 12 inches: "%% FoomaticRIPOptionSetting: PageSize=ID42x12"
*FoomaticRIPOptionSetting PageSize=ID42x12: " -p {.\<\|0Z\\x0A}42x12"
*PageSize ID40x12/40 columns 12 inches: "%% FoomaticRIPOptionSetting: PageSize=ID40x12"
*FoomaticRIPOptionSetting PageSize=ID40x12: " -p {.\<\|0X\\x0A}40x12"
*PageSize ID38x12/38 columns 12 inches: "%% FoomaticRIPOptionSetting: PageSize=ID38x12"
*FoomaticRIPOptionSetting PageSize=ID38x12: " -p {.\<\|0V\\x0A}38x12"
*PageSize ID34x12/34 columns 12 inches: "%% FoomaticRIPOptionSetting: PageSize=ID34x12"
*FoomaticRIPOptionSetting PageSize=ID34x12: " -p {.\<\|0R\\x0A}34x12"
*PageSize ID42x11/42 columns 11 inches: "%% FoomaticRIPOptionSetting: PageSize=ID42x11"
*FoomaticRIPOptionSetting PageSize=ID42x11: " -p {.\;\|0Z\\x0A}42x11"
*PageSize ID40x11/40 columns 11 inches: "%% FoomaticRIPOptionSetting: PageSize=ID40x11"
*FoomaticRIPOptionSetting PageSize=ID40x11: " -p {.\;\|0X\\x0A}40x11"
*PageSize ID38x11/38 columns 11 inches: "%% FoomaticRIPOptionSetting: PageSize=ID38x11"
*FoomaticRIPOptionSetting PageSize=ID38x11: " -p {.\;\|0V\\x0A}38x11"
*PageSize ID34x11/34 columns 11 inches: "%% FoomaticRIPOptionSetting: PageSize=ID34x11"
*FoomaticRIPOptionSetting PageSize=ID34x11: " -p {.\;\|0R\\x0A}34x11"
*CloseUI: *PageSize



*OpenUI *PageRegion/Page Region: PickOne
*FoomaticRIPOption PageRegion: enum CmdLine E
*OrderDependency: 95 AnySetup *PageRegion
*DefaultPageRegion: ID42x12
*PageRegion ID42x12/42 columns 12 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID42x12"
*FoomaticRIPOptionSetting PageRegion=ID42x12: " -p {.<\|0Z\\x0A}42x12"
*PageRegion ID40x12/40 columns 12 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID40x12"
*FoomaticRIPOptionSetting PageRegion=ID40x12: " -p {.<\|0X\\x0A}40x12"
*PageRegion ID38x12/38 columns 12 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID38x12"
*FoomaticRIPOptionSetting PageRegion=ID38x12: " -p {.<\|0V\\x0A}38x12"
*PageRegion ID34x12/34 columns 12 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID34x12"
*FoomaticRIPOptionSetting PageRegion=ID34x12: " -p {.<\|0R\\x0A}34x12"
*PageRegion ID42x11/42 columns 11 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID42x11"
*FoomaticRIPOptionSetting PageRegion=ID42x11: " -p {.;\|0Z\\x0A}42x11"
*PageRegion ID40x11/40 columns 11 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID40x11"
*FoomaticRIPOptionSetting PageRegion=ID40x11: " -p {.;\|0X\\x0A}40x11"
*PageRegion ID38x11/38 columns 11 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID38x11"
*FoomaticRIPOptionSetting PageRegion=ID38x11: " -p {.;\|0V\\x0A}38x11"
*PageRegion ID34x11/34 columns 11 inches: "%% FoomaticRIPOptionSetting: PageRegion=ID34x11"
*FoomaticRIPOptionSetting PageRegion=ID34x11: " -p {.;\|0R\\x0A}34x11"
*CloseUI: *PageRegion



*DefaultPaperDimension: ID42x12
*PaperDimension ID42x12: "756 864"
*PaperDimension ID40x12: "720 864"
*PaperDimension ID38x12: "684 864"
*PaperDimension ID34x12: "614 864"
*PaperDimension ID42x11: "756 792"
*PaperDimension ID40x11: "720 792"
*PaperDimension ID38x11: "684 792"
*PaperDimension ID34x11: "614 792"

*DefaultImageableArea: ID42x12
*ImageableArea ID42x12: "0 15 756 850"
*ImageableArea ID40x12: "0 15 720 850"
*ImageableArea ID38x12: "0 15 684 850"
*ImageableArea ID34x12: "0 15 612 850"
*ImageableArea ID42x11: "0 15 756 778"
*ImageableArea ID40x11: "0 15 720 778"
*ImageableArea ID38x11: "0 15 684 778"
*ImageableArea ID34x11: "0 15 612 778"


*OpenUI *Duplex/Duplex: PickOne
*OrderDependency: 110 JCLSetup *Duplex
*DefaultDuplex: DuplexTumble
*Duplex None/Disabled: "<1B>P<0A>"
*Duplex DuplexTumble/Enabled: "<1B>Q<0A>"
*CloseUI: *Duplex


*OpenUI *PaperSave/Paper Save: Boolean
*OrderDependency: 115 JCLSetup *PaperSave
*DefaultPaperSave: False
*PaperSave False/Disabled: "<1B>,PS0<0A><0A>"
*PaperSave True/Enabled: "<1B>,PS1<0A><0A>"
*CloseUI: *PaperSave

*CloseGroup: General


*OpenGroup: Adjustment/Adjustment

*OpenUI *Braille/Braille dots: PickOne
*FoomaticRIPOption Braille: enum CmdLine E
*OrderDependency: 120 AnySetup *Braille
*DefaultBraille: ID6puntos
*Braille ID6puntos/6 dots: "%% FoomaticRIPOptionSetting: Braille=ID6puntos"
*FoomaticRIPOptionSetting Braille=ID6puntos: " -b {*\\x0A}6"
*Braille ID8puntos/8 dots: "%% FoomaticRIPOptionSetting: Braille=ID8puntos"
*FoomaticRIPOptionSetting Braille=ID8puntos: " -b {+\\x0A}8"
*CloseUI: *Braille


*OpenUI *Interlineado/Line spacing: PickOne
*FoomaticRIPOption Interlineado: enum CmdLine E
*OrderDependency: 130 AnySetup *Interlineado
*DefaultInterlineado: IDNormal
*Interlineado IDNinguno/None: "%% FoomaticRIPOptionSetting: Interlineado=Ninguno"
*FoomaticRIPOptionSetting Interlineado=Ninguno: " -i {/0\\x0A}0"
*Interlineado IDNormal/Normal: "%% FoomaticRIPOptionSetting: Interlineado=Normal"
*FoomaticRIPOptionSetting Interlineado=Normal: " -i {/1\\x0A}1"
*Interlineado IDDoble/Double: "%% FoomaticRIPOptionSetting: Interlineado=Doble"
*FoomaticRIPOptionSetting Interlineado=Doble: " -i {/2\\x0A}2"
*Interlineado IDTriple/Triple: "%% FoomaticRIPOptionSetting: Interlineado=Triple"
*FoomaticRIPOptionSetting Interlineado=Triple: " -i {/3\\x0A}3"
*CloseUI: *Interlineado


*OpenUI *Tabla/Characters table: PickOne
*OrderDependency: 140 JCLSetup *Tabla
*DefaultTabla: IDEspanol
*Tabla IDEspanol/Spanish: "<1B>% <0A>"
*Tabla IDMIT/USA-MIT: "<1B>#<0A>"
*Tabla IDAleman/German: "<1B><22><0A>"
*Tabla IDBritanico/British: "<1B>$<0A>"
*Tabla IDEspaANSI/Spanish ANSI: "<1B>,CSSPAANSI<0A><0A>"
*CloseUI: *Tabla


*OpenUI *ConverASCII/ASCII translation: Boolean
*FoomaticRIPOption ConverASCII: enum CmdLine E
*OrderDependency: 150 AnySetup *ConverASCII
*DefaultConverASCII: False
*ConverASCII False/Disabled: "%% FoomaticRIPOptionSetting: ConverASCII=False"
*FoomaticRIPOptionSetting ConverASCII=False: " "
*ConverASCII True/Enabled: "%% FoomaticRIPOptionSetting: ConverASCII=True"
*FoomaticRIPOptionSetting ConverASCII=True: " -a"
*CloseUI: *ConverASCII


*CloseGroup: Adjustment


*% Localized texts

*es.Translation PageSize/Formato del papel: ""
*es.PageSize ID42x12/42 columnas 12 pulgadas: ""
*es.PageSize ID40x12/40 columnas 12 pulgadas: ""
*es.PageSize ID38x12/38 columnas 12 pulgadas: ""
*es.PageSize ID34x12/34 columnas 12 pulgadas: ""
*es.PageSize ID42x11/42 columnas 11 pulgadas: ""
*es.PageSize ID40x11/40 columnas 11 pulgadas: ""
*es.PageSize ID38x11/38 columnas 11 pulgadas: ""
*es.PageSize ID34x11/34 columnas 11 pulgadas: ""


*es.Translation PageRegion/Region del papel: ""
*es.PageRegion ID42x12/42 columnas 12 pulgadas: ""
*es.PageRegion ID40x12/40 columnas 12 pulgadas: ""
*es.PageRegion ID38x12/38 columnas 12 pulgadas: ""
*es.PageRegion ID34x12/34 columnas 12 pulgadas: ""
*es.PageRegion ID42x11/42 columnas 11 pulgadas: ""
*es.PageRegion ID40x11/40 columnas 11 pulgadas: ""
*es.PageRegion ID38x11/38 columnas 11 pulgadas: ""
*es.PageRegion ID34x11/34 columnas 11 pulgadas: ""


*es.Translation Duplex/Doble cara: ""
*es.Duplex None/Desactivado: ""
*es.Duplex DuplexTumble/Activado: ""


*es.Translation PaperSave/Ahorro de papel: ""
*es.PaperSave False/Desactivado: ""
*es.PaperSave True/Activado: ""


*es.Translation Braille/Puntos Braille: ""
*es.Braille ID6puntos/6 puntos: ""
*es.Braille ID8puntos/8 puntos: ""


*es.Translation Interlineado/Interlineado: ""
*es.Interlineado IDNinguno/Ninguno: ""
*es.Interlineado IDNormal/Normal: ""
*es.Interlineado IDDoble/Doble: ""
*es.Interlineado IDTriple/Triple: ""



*es.Translation Tabla/Juego de caracteres: ""
*es.Tabla IDEspanol/Español: ""
*es.Tabla IDMIT/USA-MIT: ""
*es.Tabla IDAleman/Alemán: ""
*es.Tabla IDBritanico/Británico: ""
*es.Tabla IDEspaANSI/Español ANSI: ""

*es.Translation ConverASCII/Conversión a ASCII: ""
*es.ConverASCII False/Desactivado: ""
*es.ConverASCII True/Activado: ""


*% End of localized texts


*DefaultFont: Braille6
*Font Braille6: Standard "(001.001S)" Standard ROM
*Font Braille8: Standard "(001.001S)" Standard ROM

------------





> Michael Sweet wrote:
> > Josh Mathis wrote:
> >> I have added two translations to my ppd (French and German) according
> >> to the documentation on the site
> >> (http://www.cups.org/documentation.php/spec-ppd.html). cupstestppd
> >> says it is ok. However, when I go to the web interface, all of my
> >> printer options remain in English.
> >
> > What are your language preferences set to in your browser?
>
> The preference is set to French.
>
> >> The localhost:631 homepage is localized in my desired language.
> >> However, when I go to any other page, it is either all in English or
> >> mixed languages. Example: On the home page, the top menu is completely
> >> localized, but when I click "Printers", the top menu changes back to
> >> English.
>
> > Did you translate the template files in /usr/share/cups/templates to
> > a new /usr/share/cups/templates/fr subdirectory?
>
> Actually, I just copied over the es directory to fr, just to test if the
> interface would change correctly. I rechecked all my directories and
> found that I typed fe instead of fr for the templates directory. Now,
> the whole CUPS interface (menus, buttons, etc) is localized, except for
> my PPD options when I go to Set Printer Options - they remain in English.
>
> > The home page is a static HTML file, but the other pages are all
> > generated on-the-fly.
> >
> > Also, it would be useful to have a link to your PPD file as well as
> > the locale that is reported in the error_log file...
>
> The error_log reads:
> locale="fr"...
>
> And it shows the templates coming from the fr directory.
>
> My ppd is located at http://www.joshmathis.com/temp/ttp20x0.ppd
>
> Thanks,
> Josh





More information about the cups mailing list