Preferences/ConfigurationPages/EmailPage.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3539
0c2dc1446ebf
--- a/Preferences/ConfigurationPages/EmailPage.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ConfigurationPages/EmailPage.py	Thu Apr 03 23:05:31 2014 +0200
@@ -135,8 +135,8 @@
                 QApplication.restoreOverrideCursor()
                 E5MessageBox.information(
                     self,
-                    self.trUtf8("Login Test"),
-                    self.trUtf8("""The login test succeeded."""))
+                    self.tr("Login Test"),
+                    self.tr("""The login test succeeded."""))
             except (smtplib.SMTPException, socket.error) as e:
                 QApplication.restoreOverrideCursor()
                 if isinstance(e,  smtplib.SMTPResponseException):
@@ -152,8 +152,8 @@
                     errorStr = str(e)
                 E5MessageBox.critical(
                     self,
-                    self.trUtf8("Login Test"),
-                    self.trUtf8(
+                    self.tr("Login Test"),
+                    self.tr(
                         """<p>The login test failed.<br>Reason: {0}</p>""")
                     .format(errorStr))
             server.quit()
@@ -172,8 +172,8 @@
                 errorStr = str(e)
             E5MessageBox.critical(
                 self,
-                self.trUtf8("Login Test"),
-                self.trUtf8("""<p>The login test failed.<br>Reason: {0}</p>""")
+                self.tr("Login Test"),
+                self.tr("""<p>The login test failed.<br>Reason: {0}</p>""")
                 .format(errorStr))
 
 

eric ide

mercurial