Back to index

system-config-printer  1.3.9+20120706
Classes | Functions | Variables
ppdippstr Namespace Reference

Classes

class  TranslationDict

Functions

def init

Variables

tuple printer_error_policy = dict()
tuple printer_op_policy = dict()
tuple job_sheets = dict()
tuple job_options = dict()
tuple ppd = dict()
tuple backends = dict()

Function Documentation

def ppdippstr.init ( )

Definition at line 41 of file ppdippstr.py.

00041 
00042 def init ():
00043     ## IPP strings
00044 
00045     # Names of printer error policies
00046     global printer_error_policy
00047     printer_error_policy = TranslationDict ({
00048             "abort-job": _("Abort job"),
00049             "retry-current-job": _("Retry current job"),
00050             "retry-job": _("Retry job"),
00051             "stop-printer": _("Stop printer")
00052             })
00053     
00054     # Names of printer operation policies
00055     global printer_op_policy
00056     printer_op_policy = TranslationDict ({
00057             "default": _("Default behavior"),
00058             "authenticated": _("Authenticated")
00059             })
00060 
00061     # Names of banner pages.
00062     global job_sheets
00063     job_sheets = TranslationDict ({
00064             "none": _("None"),
00065             "classified": _("Classified"),
00066             "confidential": _("Confidential"),
00067             "secret": _("Secret"),
00068             "standard": _("Standard"),
00069             "topsecret": _("Top secret"),
00070             "unclassified": _("Unclassified")
00071             })
00072 
00073     # Names of job-hold-until values.
00074     global job_options
00075     job_options["job-hold-until"] = TranslationDict ({
00076             "no-hold": _("No hold"),
00077             "indefinite": _("Indefinite"),
00078             "day-time": _("Daytime"),
00079             "evening": _("Evening"),
00080             "night": _("Night"),
00081             "second-shift": _("Second shift"),
00082             "third-shift": _("Third shift"),
00083             "weekend": _("Weekend")
00084             })
00085 
00086     ## Common PPD strings
00087 
00088     # Foomatic strings
00089 
00090     # These are PPD option and group names and values.
00091     global ppd
00092     ppd = TranslationDict ({
00093             "General": _("General"),
00094 
00095             # HPIJS options
00096             "Printout Mode": _("Printout mode"),
00097             "Draft (auto-detect paper type)":
00098                 _("Draft (auto-detect-paper type)"),
00099             "Draft Grayscale (auto-detect paper type)":
00100                 _("Draft grayscale (auto-detect-paper type)"),
00101             "Normal (auto-detect paper type)":
00102                 _("Normal (auto-detect-paper type)"),
00103             "Normal Grayscale (auto-detect paper type)":
00104                 _("Normal grayscale (auto-detect-paper type)"),
00105             "High Quality (auto-detect paper type)":
00106                 _("High quality (auto-detect-paper type)"),
00107             "High Quality Grayscale (auto-detect paper type)":
00108                 _("High quality grayscale (auto-detect-paper type)"),
00109             "Photo (on photo paper)": _("Photo (on photo paper)"),
00110             "Best Quality (color on photo paper)":
00111                 _("Best quality (color on photo paper)"),
00112             "Normal Quality (color on photo paper)":
00113                 _("Normal quality (color on photo paper)"),
00114 
00115             "Media Source": _("Media source"),
00116             "Printer default": _("Printer default"),
00117             "Photo Tray": _("Photo tray"),
00118             "Upper Tray": _("Upper tray"),
00119             "Lower Tray": _("Lower tray"),
00120             "CD or DVD Tray": _("CD or DVD tray"),
00121             "Envelope Feeder": _("Envelope feeder"),
00122             "Large Capacity Tray": _("Large capacity tray"),
00123             "Manual Feeder": _("Manual feeder"),
00124             "Multi Purpose Tray": _("Multi-purpose tray"),
00125 
00126             "Page Size": _("Page size"),
00127             "Custom": _("Custom"),
00128             "Photo or 4x6 inch index card": _("Photo or 4x6 inch index card"),
00129             "Photo or 5x7 inch index card": _("Photo or 5x7 inch index card"),
00130             "Photo with tear-off tab": _("Photo with tear-off tab"),
00131             "3x5 inch index card": _("3x5 inch index card"),
00132             "5x8 inch index card": _("5x8 inch index card"),
00133             "A6 with tear-off tab": _("A6 with tear-off tab"),
00134             "CD or DVD 80 mm": _("CD or DVD 80mm"),
00135             "CD or DVD 120 mm": _("CD or DVD 120mm"),
00136 
00137             "Double-Sided Printing": _("Double-sided printing"),
00138             "Long Edge (Standard)": _("Long edge (standard)"),
00139             "Short Edge (Flip)": _("Short edge (flip)"),
00140             "Off": _("Off"),
00141 
00142             "Resolution, Quality, Ink Type, Media Type":
00143                 _("Resolution, quality, ink type, media type"),
00144             "Controlled by 'Printout Mode'": _("Controlled by 'Printout mode'"),
00145             "300 dpi, Color, Black + Color Cartr.":
00146                 _("300 dpi, color, black + color cartridge"),
00147             "300 dpi, Draft, Color, Black + Color Cartr.":
00148                 _("300 dpi, draft, color, black + color cartridge"),
00149             "300 dpi, Draft, Grayscale, Black + Color Cartr.":
00150                 _("300 dpi, draft, grayscale, black + color cartridge"),
00151             "300 dpi, Grayscale, Black + Color Cartr.":
00152                 _("300 dpi, grayscale, black + color cartridge"),
00153             "600 dpi, Color, Black + Color Cartr.":
00154                 _("600 dpi, color, black + color cartridge"),
00155             "600 dpi, Grayscale, Black + Color Cartr.":
00156                 _("600 dpi, grayscale, black + color cartridge"),
00157             "600 dpi, Photo, Black + Color Cartr., Photo Paper":
00158                 _("600 dpi, photo, black + color cartridge, photo paper"),
00159             "600 dpi, Color, Black + Color Cartr., Photo Paper, Normal":
00160                 _("600 dpi, color, black + color cartridge, photo paper, normal"),
00161             "1200 dpi, Photo, Black + Color Cartr., Photo Paper":
00162                 _("1200 dpi, photo, black + color cartridge, photo paper"),
00163             })
00164 
00165     ## Common backend descriptions
00166     global backends
00167     backends = TranslationDict ({
00168             "Internet Printing Protocol (ipp)":
00169                 _("Internet Printing Protocol (ipp)"),
00170             "Internet Printing Protocol (http)":
00171                 _("Internet Printing Protocol (http)"),
00172             "Internet Printing Protocol (https)":
00173                 _("Internet Printing Protocol (https)"),
00174             "LPD/LPR Host or Printer":
00175                 _("LPD/LPR Host or Printer"),
00176             "AppSocket/HP JetDirect":
00177                 _("AppSocket/HP JetDirect"),
00178             "Serial Port #1":
00179                 _("Serial Port #1"),
00180             "LPT #1":
00181                 _("LPT #1"),
00182             "Windows Printer via SAMBA":
00183                 _("Windows Printer via SAMBA"),
00184             })

Variable Documentation

tuple ppdippstr.backends = dict()

Definition at line 30 of file ppdippstr.py.

tuple ppdippstr.job_options = dict()

Definition at line 28 of file ppdippstr.py.

tuple ppdippstr.job_sheets = dict()

Definition at line 27 of file ppdippstr.py.

tuple ppdippstr.ppd = dict()

Definition at line 29 of file ppdippstr.py.

Definition at line 25 of file ppdippstr.py.

Definition at line 26 of file ppdippstr.py.