UI/EmailDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
diff -r 9a21c547de5f -r a9a94491c4fd UI/EmailDialog.py
--- a/UI/EmailDialog.py	Fri Jan 10 19:30:21 2014 +0100
+++ b/UI/EmailDialog.py	Sat Jan 11 11:55:33 2014 +0100
@@ -73,20 +73,20 @@
         
         self.__mode = mode
         if self.__mode == "feature":
-            self.setWindowTitle(self.trUtf8("Send feature request"))
-            self.msgLabel.setText(self.trUtf8(
+            self.setWindowTitle(self.tr("Send feature request"))
+            self.msgLabel.setText(self.tr(
                 "Enter your &feature request below."
                 " Version information is added automatically."))
             self.__toAddress = FeatureAddress
         else:
             # default is bug
-            self.msgLabel.setText(self.trUtf8(
+            self.msgLabel.setText(self.tr(
                 "Enter your &bug description below."
                 " Version information is added automatically."))
             self.__toAddress = BugAddress
         
         self.sendButton = self.buttonBox.addButton(
-            self.trUtf8("Send"), QDialogButtonBox.ActionRole)
+            self.tr("Send"), QDialogButtonBox.ActionRole)
         self.sendButton.setEnabled(False)
         self.sendButton.setDefault(True)
         
@@ -120,8 +120,8 @@
         if ev.key() == Qt.Key_Escape:
             res = E5MessageBox.yesNo(
                 self,
-                self.trUtf8("Close dialog"),
-                self.trUtf8("""Do you really want to close the dialog?"""))
+                self.tr("Close dialog"),
+                self.tr("""Do you really want to close the dialog?"""))
             if res:
                 self.reject()
         
@@ -140,8 +140,8 @@
         """
         res = E5MessageBox.yesNo(
             self,
-            self.trUtf8("Close dialog"),
-            self.trUtf8("""Do you really want to close the dialog?"""))
+            self.tr("Close dialog"),
+            self.tr("""Do you really want to close the dialog?"""))
         if res:
             self.reject()
         
@@ -287,8 +287,8 @@
                 if not password:
                     password, ok = QInputDialog.getText(
                         self,
-                        self.trUtf8("Mail Server Password"),
-                        self.trUtf8("Enter your mail server password"),
+                        self.tr("Mail Server Password"),
+                        self.tr("Enter your mail server password"),
                         QLineEdit.Password)
                     if not ok:
                         # abort
@@ -305,8 +305,8 @@
                         errorStr = str(e)
                     res = E5MessageBox.retryAbort(
                         self,
-                        self.trUtf8("Send bug report"),
-                        self.trUtf8(
+                        self.tr("Send bug report"),
+                        self.tr(
                             """<p>Authentication failed.<br>Reason: {0}</p>""")
                         .format(errorStr),
                         E5MessageBox.Critical)
@@ -331,8 +331,8 @@
                 errorStr = str(e)
             res = E5MessageBox.retryAbort(
                 self,
-                self.trUtf8("Send bug report"),
-                self.trUtf8(
+                self.tr("Send bug report"),
+                self.tr(
                     """<p>Message could not be sent.<br>Reason: {0}</p>""")
                 .format(errorStr),
                 E5MessageBox.Critical)
@@ -349,7 +349,7 @@
         """
         fname = E5FileDialog.getOpenFileName(
             self,
-            self.trUtf8("Attach file"))
+            self.tr("Attach file"))
         if fname:
             self.attachFile(fname, False)
         

eric ide

mercurial