# -*- coding: utf-8 -*-
# $Id: prettynames.py 12290 2011-02-10 14:02:38Z pstorz $
import sys
PrettyNames = {       
        '3des' : '3DES' ,  
        'abortjobonerror'        :      'Abort Job On Error',
        'accurate'       :      'Accurate',                  
        'aclsupport' : 'ACL Support',
        'actiononpurge'  :      'Action On Purge',           
        'addprefix'      :      'Addprefix',                 
        'address'        :      'Address',             
        'addr'        :      'Addr',              
        'addsuffix'      :      'Addsuffix',     
        'admin'     :       'Admin',             
        'alertcommand'   :      'Alert Command',           
        'allowcompression'       :      'Allow Compression', 
        'allowduplicatejobs'     :      'Allow Duplicate Jobs',
        'allowhigherduplicates'  :      'Allow Higher Duplicates',
        'allowmixedpriority'     :      'Allow Mixed Priority',   
        'alwaysopen'     :      'Always Open',   
        'always'     :      'Always',
        'append'         :      'Append' ,                
        'archivedevice'  :      'ArchiveDevice',                  
        'autochanger'    :      'AutoChanger',                    
        'automaticmount'         :      'Automatic Mount',        
        'autoprune'      :      'Auto Prune',                     
        'autoselect'     :      'Auto Select',
        'backup'  :      'Backup',           
        'backwardspacefile'      :      'Backward Space File',    
        'backwardspacerecord'    :      'Backward Space Record',  
        'base'   :      'Base',                                   
        'basejob' : 'Base Job',
        'blockchecksum'  :      'BlockChecksum',                  
        'blockpositioning'       :      'Blockpositioning',   
        'blowfish' : 'Blowfish' ,       
        'bootstrap'      :      'Bootstrap',                      
        'bsfateom'       :      'BSF At EOM',                     
        'cancellowerlevelduplicates'     :      'Cancel Lower Level Duplicates',
        'cancelqueuedduplicates'         :      'Cancel Queued Duplicates',     
        'cancelrunningduplicates'        :      'Cancel Running Duplicates',    
        'catalogacl'     :      'Catalog ACL',                                  
        'catalog'        :      'Catalog',                                      
        'catalogfiles'   :      'Catalog Files',                                
        'changercommand'         :      'Changer Command',                      
        'changerdevice'  :      'Changer Device',                               
        'checkfilechanges' : 'Check File Changes',
        'checklabels'    :      'Check Labels',                                 
        'cleaningprefix'         :      'Cleaning Prefix',                      
        'clientacl'      :      'Client ACL',                                   
        'client'         :      'Client',                                       
        'clientconnectwait'      :      'Client Connect Wait',                  
        'clientrunafterjob'      :      'Client Run After Job',                 
        'clientrunbeforejob'     :      'Client Run Before Job',                
        'closeonpoll'    :      'Close On Poll',                                
        'commandacl'     :      'Command ACL',                                  
        'command'        :      'Command',                                      
        'compression' : 'Compression',
        'console'        :      'Console',
        'copy'       :      'Copy',                                      
        'copypool'       :      'Copy Pool',
        'counter'        :      'Counter',    
         'data' :     'Data',             
        'dbaddress'      :      'DB Address',                                   
        'dbdriver'       :      'DB Driver',                                    
        'dbname'         :      'DB Name',                                      
        'dbpassword'     :      'DB Password',                                  
        'dbport'         :      'DB Port',                                      
        'dbsocket'       :      'DB Socket',                                    
        'dbuser'         :      'DB User',                                      
        'description'    :      'Description',                                  
        'device'         :      'Device',                                       
        'devicetype'     :      'Device Type',         
        'differential'         :      'Differential',
        'differentialpool'         :      'Differential Pool',
        'differentialbackuppool'         :      'Differential Backup Pool',     
        'differentialmaxruntime'         :      'Differential Max Run Time',    
        'differentialmaxwaittime'        :      'Differential Max Wait Time',   
        'diraddress'     :      'Dir Address',                                  
        'diraddresses'   :      'Dir Addresses',                                
        'director'       :      'Director',                                     
        'dirport'        :      'Dirport',                                      
        'dirsourceaddress'       :      'Dir Source Address',      
        'disktocatalog':      'Disk To Catalog',     
        'driveindex'     :      'Drive Index',                                  
        'drivetype' : 'Drive Type',
        'enabled'        :      'Enabled',                                      
        'enablevss'      :      'Enable Vss',                                   
        'enhancedwild' : 'Enhanced Wild',
        'encryption' : 'Encryption' ,          
        'exclude'        :      'Exclude',
        'excludedircontaining' : 'Exclude Dir Containing',                                   
        'failjobonerror'         :      'Fail Job Onerror',                     
        'fastforwardspacefile'   :      'Fast Forward Spacefile',               
        'fdaddresses'    :      'FD Addresses',                                 
        'fdaddress'      :      'FD Address',                                   
        'fdconnecttimeout'       :      'FD Connect Timeout',                   
        'fdpassword'     :      'FD Password',                                  
        'fdport'         :      'FD Port',                                      
        'fdsourceaddress'        :      'FD Source Address',
        'filedaemon'     : 'Filedaemon'   ,        
        'file'     : 'File'   ,
        'fileretention'  :      'File Retention',                               
        'filesetacl'     :      'Fileset ACL',                                  
        'fileset'        :      'Fileset',                                      
        'forwardspacefile'       :      'Forward Space File',                   
        'forwardspacerecord'     :      'Forward Space Record',                 
        'freespacecommand'       :      'Free Space Command',                   
        'fstype' : 'FS Type',
        'full'         :      'Full',        
        'fullbackuppool'         :      'Full Backup Pool',                     
        'fullmaxruntime'         :      'Full Max Run Time',                    
        'fullmaxwaittime'        :      'Full Max Wait Time',   
        'fullpool'        :      'Full Pool',   
        'gzip' : 'gzip',
        'gzip1' : 'gzip1',
        'gzip2' : 'gzip2',
        'gzip3' : 'gzip3',
        'gzip4' : 'gzip4',
        'gzip5' : 'gzip5',
        'gzip6' : 'gzip6',
        'gzip7' : 'gzip7',
        'gzip8' : 'gzip8',
        'gzip9' : 'gzip9',        
        'hardlinks' : 'Hard Links',
        'hardwareendoffile'      :      'Hardware End Of File',                 
        'hardwareendofmedium'    :      'Hardware End Of Medium',               
        'heartbeatinterval'      :      'Heartbeat Interval',                   
        'hfsplussupport' : 'HFS Plus Support',
        'historyfile'    :      'Historyfile',                                  
        'honornodumpflag' : 'Honor Nodump Flag',
        'ifnewer': 'If Newer',
        'ifolder': 'If Older',
        'ignorecase' : 'Ignore Case',
        'ignorefilesetchanges'   :      'Ignore Fileset Changes',               
        'include'        :      'Include',          
        'incremental'  :      'Incremental',
        'incrementalpool'  :      'Incremental Pool',
        'incrementalbackuppool'  :      'Incremental Backup Pool',              
        'incrementalmaxruntime'  :      'Incremental Maxrun Time',              
        'incrementalmaxwaittime'         :      'Incremental Max Wait Time',
        'initcatalog':'Init Catalog',
        'ip' : 'IP' ,
        'ipv4' : 'IPv4',
        'ipv6' : 'IPv6',
        'jobacl'         :      'Job ACL',                                      
        'jobdefs'        :      'JobDefs',                                     
        'job'            :      'Job',
        'jobretention'   :      'Job Retention',                                
        'jobtoverify'    :      'Job To Verify',                                
        'keepatime' : 'Keep atime',
        'labelformat'    :      'Label Format',                                 
        'labelmedia'     :      'Label Media',                                  
        'labeltype'      :      'Label Type',                                   
        'level'  :      'Level',
        'mailcommand'    :      'Mail Command', 
        'mail'           :      'Mail'     ,        
        'mailonerror'    :      'Mail On Error'   ,             
        'mailonsuccess'  :      'Mail On Success',
        'maxdiffinterval'        :      'Max Diff Interval',                    
        'maxfullinterval'        :      'Max Full Interval',                    
        'maximumblocksize'       :      'Maximum Block Size',                   
        'maximumchangerwait'     :      'Maximum Changer Wait',                 
        'maximumconcurrentjobs'  :      'Maximum Concurrent Jobs',              
        'maximumconsoleconnections'      :      'Maximum Console Connections',  
        'maximumfilesize'        :      'Maximum File Size',                    
        'maximumjobspoolsize'    :      'Maximum Job Spool Size',               
        'maximum'        :      'Maximum',                                      
        'maximumnetworkbuffersize'       :      'Maximum Network Buffer Size',  
        'maximumopenvolumes'     :      'Maximum Open Volumes',                 
        'maximumopenwait'        :      'Maximum Open Wait',                    
        'maximumpartsize'        :      'Maximum Part Size',                    
        'maximumrewindwait'      :      'Maximum Rewind Wait',                  
        'maximumspoolsize'       :      'Maximum Spool Size',                   
        'maximumvolumebytes'     :      'Maximum Volume Bytes',                 
        'maximumvolumefiles'     :      'Maximum Volume Files',                 
        'maximumvolumejobs'      :      'Maximum Volume Jobs',                  
        'maximumvolumesize'      :      'Maximum Volume Size',                  
        'maximumvolumes'         :      'Maximum Volumes',                      
        'maxrunschedtime'        :      'Max Run Sched Time',                   
        'maxruntime'     :      'Max Run Time',                                 
        'maxstartdelay'  :      'Max Start Delay',                              
        'maxwaittime'    :      'Max Wait Time', 
        'md5' : 'md5' ,                               
        'mediatype'      :      'Media Type',                                   
        'messages'       :      'Messages',     
        'migrate'     :      'Migrate',                                 
        'migrationhighbytes'     :      'Migration High Bytes',                 
        'migrationlowbytes'      :      'Migration Low Bytes',                  
        'migrationtime'  :      'Migration Time',                               
        'minimumblocksize'       :      'Minimum Block Size',                   
        'minimum'        :      'Minimum',                                      
        'monitor'        :      'Monitor',     
        'mountcommand'   :      'Mount Command',                                
        'mountpoint'     :      'Mount Point',                                  
        'mtimeonly' : 'mtime only',
        'multipleconnections'    :      'Multiple Connections',                 
        'name'   :      'Name',     
        'never':'never',
        'nextpool'       :      'Nextpool',
        'no': 'No',                                     
        'noatime' : 'no atime',
        'oldestvolume': 'Oldest Volume',
        'offlineonunmount'       :      'Offline On Unmount', 
        'onefs' : 'one FS',
        'operatorcommand' : 'Operator Command' ,              
        'operator' : 'Operator' , 
        'options'  : 'Options' ,       
        'password'       :      'Password',                                     
        'piddirectory'   :      'Pid Directory',                                
        'pkiencryption'  :      'Pki Encryption',                               
        'pkikeypair'     :      'Pki Keypair',                                  
        'pkimasterkey'   :      'Pki Masterkey',                                
        'pkisignatures'  :      'Pki Signatures',                               
        'pkisigner'      :      'Pki Signer',                                   
        'plugindirectory'        :      'Plugin Directory',                     
        'pluginoptionsacl'       :      'Plugin Options ACL',                   
        'pluginoptions'  :      'Plugin Options',                               
        'plugin' : 'Plugin',
        'poolacl'        :      'Pool ACL',                                      
        'pool'   :      'Pool',            
        'pooloccupancy':'Pool Occupancy',
        'pooltime':'Pool Time',
        'pooltype'       :      'Pool Type',
        'pooluncopiedjobs':'Pool Uncopied Jobs',                                     
        'portable' : 'Portable',
        'port' : 'Port',
        'prefermountedvolumes'   :      'Prefer Mounted Volumes',               
        'prefixlinks'    :      'Prefix Links',                                 
        'priority'       :      'Priority',                                     
        'prunefiles'     :      'Prune Files',                                  
        'prunejobs'      :      'Prune Jobs',                                   
        'prunevolumes'   :      'Prune Volumes',                                
        'purgeoldestvolume'      :      'Purge Oldest Volume',                  
        'queryfile'      :      'Query File',                                   
        'randomaccess'   :      'Random Access',                                
        'rcfile'         :      'Rcfile',                                       
        'readfifo' : 'Read Fifo',
        'recurse' : 'Recurse',
        'recyclecurrentvolume'   :      'Recycle Current Volume',               
        'recycleoldestvolume'    :      'Recycle Oldest Volume',                
        'recyclepool'    :      'Recycle Pool',                                 
        'recycle'        :      'Recycle',                                      
        'regexdir' : 'Regex Dir',
        'regexfile' : 'Regex File',
        'regex' : 'Regex',
        'regexwhere'     :      'Regex Where',                                  
        'removablemedia'         :      'Removable Media',                      
        'replace'        :      'Replace',                                      
        'requiresmount'  :      'Requires Mount',                               
        'rerunfailedlevels'      :      'Rerunfailed Levels', 
        'restore':  'Restore',                
        'rescheduleinterval'     :      'Reschedule Interval',                  
        'rescheduleonerror'      :      'Reschedule On Error',                  
        'rescheduletimes'        :      'Reschedule Times',                     
        'runacl'         :      'Run ACL',                                      
        'runafterfailedjob'      :      'Run After Failed Job',                 
        'runafterjob'    :      'Run After Job',                                
        'runbeforejob'   :      'Run Before Job',                               
        'run'    :      'Run',                                                  
        'runscript'      :      'RunScript',                                   
        'runsonclient'   :      'Runs On Client',                               
        'runsonfailure'  :      'Runs On Failure',                              
        'runsonsuccess'  :      'Runs On Success',                              
        'runswhen'       :      'Runs When',
        'saved' :  'saved' ,                                  
        'scheduleacl'    :      'Schedule ACL',                                 
        'schedule'       :      'Schedule',                                     
        'scratchpool'    :      'Scratch Pool',                                 
        'scriptsdirectory'       :      'Scripts Directory',                    
        'sdaddresses'    :      'SD Addresses',                                 
        'sdaddress'      :      'SD Address',                                   
        'sdconnecttimeout'       :      'SD Connect Timeout',                   
        'sddport'        :      'SD port',                                     
        'sdpassword'     :      'SD Password',                                  
        'sdport'         :      'SD Port',                                      
        'selectionpattern'       :      'Selection Pattern',                    
        'selectiontype'  :      'Selection Type',      
        'sha1' : 'sha1' ,
        'sha256' : 'sha256' ,
        'sha512' : 'sha512' ,
        'since'  :'Since',                        
        'signature' : 'Signature',
        'skipped' : 'skipped',
        'smallestvolume': 'Smallest Volume',
        'sparse' : 'Sparse',
        'spoolattributes'        :      'Spool Attributes',                     
        'spooldata'      :      'Spool Data',                                   
        'spooldirectory'         :      'Spool Directory',                      
        'spoolsize'      :      'Spool Size',                   
        'sqlquery':'SQL Query', 
        'statisticsretention'    :      'Statistics Retention',     
        'started' : 'started' ,          
        'stderr'         :       'stderr', 
        'stdout'         :       'stdout',
        'storageacl'     :      'Storage ACL',                                  
        'storage'        :      'Storage',                                      
        'strippath' : 'Strip Path',
        'stripprefix'    :      'Strip Prefix',                                 
        'subsysdirectory'        :      'Subsys Directory',    
        'syslog'        :      'Syslog',                 
        'target'         :     'Target',                                       
        'tlsallowedcn'   :      'TLS Allowed CN',                               
        'tlsauthenticate'        :      'TLS Authenticate',                     
        'tlscacertificatedir'    :      'TLS CA Certificate Dir',
        'tlscacertificatefile'   :      'TLS CA Certificate File',
        'tlscertificate'         :      'TLS Certificate',
        'tlsdhfile'      :      'TLS DH File',
        'tlsenable'      :      'TLS Enable',
        'tlskey'         :      'TLS Key',
        'tlsrequire'     :      'TLS Require',
        'tlsverifypeer'  :      'TLS Verify Peer',
        'twoeof'         :      'Two EOF',
        'type'   :      'Type',
        'unmountcommand'         :      'Unmount Command',
        'usecatalog'     :      'Use Catalog',
        'usemtiocget'    :      'Use Mtiocget',
        'user'   :      'User',
        'usevolumeonce'  :      'Use Volume Once',
        'verid'  :      'VerID',
        'verifyjob'      :      'Verify Job',
        'verify' : 'Verify',
        'virtualfull': 'Virtual Full',
        'volume':'Volume',
        'volumecapacity'         :      'Volume Capacity',
        'volumepollinterval'     :      'Volume Poll Interval',
        'volumeretention'        :      'Volume Retention',
        'volumetocatalog'   : 'Volume To Catalog' ,
        'volumeuseduration'      :      'Volume Useduration',
        'whereacl'       :      'Where ACL',
        'where'  :      'Where',
        'wilddir' : 'wilddir',
        'wildfile' : 'wildfile',
        'wild' : 'wild',
        'workingdirectory'       :      'Working Directory',
        'wrapcounter'    :      'Wrap Counter',
        'writebootstrap'         :      'Write Bootstrap',
        'writepartafterjob'      :      'Write Part After Job',
        'writepartcommand'       :      'Write Partcommand',
        'writeverifylist'        :      'Write Verify List',
        'xattrsupport' : 'xattrsupport',
        'yes': 'Yes',

               }

# Format internal name to pretty name
def prettyName(name):
  if not PrettyNames.has_key(name):
    print >> sys.stderr, 'warning: no key %s' %  (name)
  return PrettyNames.get(name, name)
#
