diff -r 10516539f238 -r 0a02c433f52d Graphics/UMLDialog.py --- a/Graphics/UMLDialog.py Fri Oct 18 23:00:41 2013 +0200 +++ b/Graphics/UMLDialog.py Fri Nov 01 15:48:48 2013 +0100 @@ -232,7 +232,8 @@ if ex: fname += ex if QFileInfo(fname).exists(): - res = E5MessageBox.yesNo(self, + res = E5MessageBox.yesNo( + self, self.trUtf8("Save Diagram"), self.trUtf8("<p>The file <b>{0}</b> already exists." " Overwrite it?</p>").format(fname), @@ -243,8 +244,8 @@ lines = [ "version: 1.0", - "diagram_type: {0} ({1})".format(self.__diagramType, - self.__diagramTypeString()), + "diagram_type: {0} ({1})".format( + self.__diagramType, self.__diagramTypeString()), "scene_size: {0};{1}".format(self.scene.width(), self.scene.height()), ] @@ -258,7 +259,8 @@ f.write("\n".join(lines)) f.close() except (IOError, OSError) as err: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Save Diagram"), self.trUtf8( """<p>The file <b>{0}</b> could not be saved.</p>""" @@ -287,7 +289,8 @@ data = f.read() f.close() except (IOError, OSError) as err: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Load Diagram"), self.trUtf8( """<p>The file <b>{0}</b> could not be read.</p>"""