VirtualMailManager/MailLocation.py
changeset 34 6d74e20c5b3b
parent 32 ceb700bc4a80
child 47 191d5a5adc4a
--- a/VirtualMailManager/MailLocation.py	Thu May 15 19:24:11 2008 +0000
+++ b/VirtualMailManager/MailLocation.py	Sun May 18 04:51:12 2008 +0000
@@ -37,13 +37,13 @@
         """
         self._dbh = dbh
         if mid is None and maillocation is None:
-            raise MLE(('Either mid or maillocation must be specified.',
+            raise MLE((_('Either mid or maillocation must be specified.'),
                 ERR.MAILLOCATION_INIT))
         elif mid is not None:
             try:
                 self.__id = long(mid)
             except ValueError:
-                raise MLE(('mid must be an int/long.', ERR.MAILLOCATION_INIT))
+                raise MLE((_('mid must be an int/long.'),ERR.MAILLOCATION_INIT))
             self._loadByID()
         else:
             self.__maillocation = maillocation
@@ -58,7 +58,7 @@
         if result is not None:
             self.__maillocation = result[0]
         else:
-            raise MLE(('Unknown mid specified.', ERR.UNKNOWN_MAILLOCATION_ID))
+            raise MLE((_('Unknown mid specified.'),ERR.UNKNOWN_MAILLOCATION_ID))
 
     def _loadByName(self):
         dbc = self._dbh.cursor()