--- a/UI/EmailDialog.py Fri Oct 18 23:00:41 2013 +0200 +++ b/UI/EmailDialog.py Fri Nov 01 15:48:48 2013 +0100 @@ -120,7 +120,8 @@ @param ev key event (QKeyEvent) """ if ev.key() == Qt.Key_Escape: - res = E5MessageBox.yesNo(self, + res = E5MessageBox.yesNo( + self, self.trUtf8("Close dialog"), self.trUtf8("""Do you really want to close the dialog?""")) if res: @@ -139,7 +140,8 @@ """ Private slot to handle the rejected signal of the button box. """ - res = E5MessageBox.yesNo(self, + res = E5MessageBox.yesNo( + self, self.trUtf8("Close dialog"), self.trUtf8("""Do you really want to close the dialog?""")) if res: @@ -220,8 +222,8 @@ @return string containing the mail message """ mpPreamble = ("This is a MIME-encoded message with attachments. " - "If you see this message, your mail client is not " - "capable of displaying the attachments.") + "If you see this message, your mail client is not " + "capable of displaying the attachments.") msgtext = "{0}\r\n----\r\n{1}----\r\n{2}----\r\n{3}".format( self.message.toPlainText(), @@ -303,7 +305,8 @@ errorStr = e[1] else: errorStr = str(e) - res = E5MessageBox.retryAbort(self, + res = E5MessageBox.retryAbort( + self, self.trUtf8("Send bug report"), self.trUtf8( """<p>Authentication failed.<br>Reason: {0}</p>""") @@ -328,7 +331,8 @@ errorStr = e[1] else: errorStr = str(e) - res = E5MessageBox.retryAbort(self, + res = E5MessageBox.retryAbort( + self, self.trUtf8("Send bug report"), self.trUtf8( """<p>Message could not be sent.<br>Reason: {0}</p>""")