--- 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):