Skip to content
Permalink
Browse files

Default to A4 paper size outside of US and countries that use Letter

  • Loading branch information
simoncadman committed Jun 30, 2013
1 parent 508c63f commit e23f3ccccfb8394b386e5d9dfbf6019df57dc1aa
Showing with 6 additions and 2 deletions.
  1. +6 −2 dynamicppd.py
@@ -53,11 +53,15 @@ def showUsage():
capabilities = []
# generate and output ppd
language = "en"
defaultpapertype = "Letter"
defaultlocal = locale.getdefaultlocale()[0]
if defaultlocal != None:
language = defaultlocal

defaultpapertype = "Letter"

# taken from wikipedia
lettercountries = [ 'US', 'CA', 'MX', 'BO', 'CO', 'VE', 'PH', 'CL' ]
if language.split('_')[1] not in lettercountries:
defaultpapertype = "A4"

ppddetails = """*PPD-Adobe: "4.3"
*%%%% PPD file for Cloud Print with CUPS.

0 comments on commit e23f3cc

Please sign in to comment.
You can’t perform that action at this time.