VirtualMailManager/Transport.py
changeset 34 6d74e20c5b3b
parent 32 ceb700bc4a80
child 47 191d5a5adc4a
--- a/VirtualMailManager/Transport.py	Thu May 15 19:24:11 2008 +0000
+++ b/VirtualMailManager/Transport.py	Sun May 18 04:51:12 2008 +0000
@@ -37,14 +37,14 @@
         """
         self._dbh = dbh
         if tid is None and transport is None:
-            raise VMMTransportException(
-                    ('Either tid or transport must be specified.',
-                        ERR.TRANSPORT_INIT))
+            raise VMMTransportException((
+                _('Either tid or transport must be specified.'),
+                ERR.TRANSPORT_INIT))
         elif tid is not None:
             try:
                 self.__id = long(tid)
             except ValueError:
-                raise VMMTransportException(('tid must be an int/long.',
+                raise VMMTransportException((_('tid must be an int/long.'),
                     ERR.TRANSPORT_INIT))
             self._loadByID()
         else:
@@ -59,7 +59,7 @@
         if result is not None:
             self.__transport = result[0]
         else:
-            raise VMMTransportException(('Unknown tid specified.',
+            raise VMMTransportException((_('Unknown tid specified.'),
                 ERR.UNKNOWN_TRANSPORT_ID))
 
     def _loadByName(self):