Show
Ignore:
Timestamp:
02/09/03 13:56:53 (21 years ago)
Author:
jalet
Message:

Internationalization begins...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r764 r772  
    1515# 
    1616# $Log$ 
     17# Revision 1.16  2003/02/09 12:56:53  jalet 
     18# Internationalization begins... 
     19# 
    1720# Revision 1.15  2003/02/08 22:09:52  jalet 
    1821# Name check method moved here 
     
    7073import getopt 
    7174import smtplib 
     75import gettext 
     76from locale import setlocale, LC_ALL 
    7277 
    7378from mx import DateTime 
     
    8893    def __init__(self, isfilter=0, doc="PyKota %s (c) 2003 %s" % (version.__version__, version.__author__)) : 
    8994        """Initializes the command line tool.""" 
     95        # locale stuff 
     96        setlocale(LC_ALL, "") 
     97        gettext.install("pykota") 
     98     
     99        # pykota specific stuff 
    90100        self.documentation = doc 
    91101        self.config = config.PyKotaConfig(os.environ.get("CUPS_SERVERROOT", "/etc/cups"))