--- a/Preferences/ToolConfigurationDialog.py Fri Oct 18 23:00:41 2013 +0200 +++ b/Preferences/ToolConfigurationDialog.py Fri Nov 01 15:48:48 2013 +0100 @@ -99,30 +99,37 @@ redirect = self.redirectionModes[self.redirectCombo.currentIndex()][0] if not executable: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Add tool entry"), - self.trUtf8("You have to set an executable to add to the" + self.trUtf8( + "You have to set an executable to add to the" " Tools-Menu first.")) return if not menutext: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Add tool entry"), - self.trUtf8("You have to insert a menuentry text to add the" + self.trUtf8( + "You have to insert a menuentry text to add the" " selected program to the Tools-Menu first.")) return if not Utilities.isinpath(executable): - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Add tool entry"), - self.trUtf8("The selected file could not be found or" + self.trUtf8( + "The selected file could not be found or" " is not an executable." " Please choose an executable filename.")) return if len(self.toolsList.findItems( menutext, Qt.MatchFlags(Qt.MatchExactly))): - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Add tool entry"), self.trUtf8("An entry for the menu text {0} already exists.")\ .format(menutext)) @@ -154,23 +161,29 @@ redirect = self.redirectionModes[self.redirectCombo.currentIndex()][0] if not executable: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Change tool entry"), - self.trUtf8("You have to set an executable to change the" + self.trUtf8( + "You have to set an executable to change the" " Tools-Menu entry.")) return if not menutext: - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Change tool entry"), - self.trUtf8("You have to insert a menuentry text to change the" + self.trUtf8( + "You have to insert a menuentry text to change the" " selected Tools-Menu entry.")) return if not Utilities.isinpath(executable): - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Change tool entry"), - self.trUtf8("The selected file could not be found or" + self.trUtf8( + "The selected file could not be found or" " is not an executable." " Please choose an existing executable filename.")) return @@ -261,9 +274,11 @@ if execfile: execfile = Utilities.toNativeSeparators(execfile) if not Utilities.isinpath(execfile): - E5MessageBox.critical(self, + E5MessageBox.critical( + self, self.trUtf8("Select executable"), - self.trUtf8("The selected file is not an executable." + self.trUtf8( + "The selected file is not an executable." " Please choose an executable filename.")) return