VirtualMailManager/Config.py
changeset 32 ceb700bc4a80
parent 24 48ea255e8a85
child 34 6d74e20c5b3b
equal deleted inserted replaced
31:b7a7e566833c 32:ceb700bc4a80
    15 __version__ = VERSION
    15 __version__ = VERSION
    16 __revision__ = 'rev '+'$Rev$'.split()[1]
    16 __revision__ = 'rev '+'$Rev$'.split()[1]
    17 __date__ = '$Date$'.split()[1]
    17 __date__ = '$Date$'.split()[1]
    18 
    18 
    19 import sys
    19 import sys
       
    20 import gettext
    20 from shutil import copy2
    21 from shutil import copy2
    21 from ConfigParser import ConfigParser
    22 from ConfigParser import ConfigParser
    22 from cStringIO import StringIO
    23 from cStringIO import StringIO
    23 
    24 
    24 from Exceptions import VMMConfigException
    25 from Exceptions import VMMConfigException
    25 import constants.ERROR as ERR
    26 import constants.ERROR as ERR
       
    27 
       
    28 gettext.bindtextdomain('vmm', '/usr/local/share/locale')
       
    29 gettext.textdomain('vmm')
       
    30 _ = gettext.gettext
    26 
    31 
    27 class VMMConfig(ConfigParser):
    32 class VMMConfig(ConfigParser):
    28     """This class is for configure the Virtual Mail Manager.
    33     """This class is for configure the Virtual Mail Manager.
    29 
    34 
    30     You can specify settings for the database connection
    35     You can specify settings for the database connection