VirtualMailManager/Domain.py
changeset 32 ceb700bc4a80
parent 24 48ea255e8a85
child 34 6d74e20c5b3b
--- a/VirtualMailManager/Domain.py	Sat May 10 02:56:33 2008 +0000
+++ b/VirtualMailManager/Domain.py	Tue May 13 03:20:02 2008 +0000
@@ -13,6 +13,7 @@
 __revision__ = 'rev '+'$Rev$'.split()[1]
 __date__ = '$Date$'.split()[1]
 
+import gettext
 from random import choice
 
 from Exceptions import VMMDomainException
@@ -21,6 +22,10 @@
 
 MAILDIR_CHARS = '0123456789abcdefghijklmnopqrstuvwxyz'
 
+gettext.bindtextdomain('vmm', '/usr/local/share/locale')
+gettext.textdomain('vmm')
+_ = gettext.gettext
+
 class Domain:
     """Class to manage e-mail domains."""
     def __init__(self, dbh, domainname, basedir=None, transport=None):