--- a/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Fri Jan 10 19:30:21 2014 +0100 +++ b/Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py Sat Jan 11 11:55:33 2014 +0100 @@ -41,7 +41,7 @@ QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleTo)) self.bTest = self.buttonBox.addButton( - self.trUtf8("Test"), QDialogButtonBox.ActionRole) + self.tr("Test"), QDialogButtonBox.ActionRole) @pyqtSlot(bool) def on_rItem_toggled(self, checked): @@ -140,9 +140,9 @@ if self.rText.isChecked(): code += 'getText({0}{1}'.format(os.linesep, istring) code += '{0},{1}{2}'.format(parent, os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eCaption.text(), os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eLabel.text(), os.linesep, istring) if self.rEchoNormal.isChecked(): code += 'QLineEdit.Normal' @@ -151,15 +151,15 @@ else: code += 'QLineEdit.Password' if self.eTextDefault.text(): - code += ',{0}{1}self.trUtf8("{2}")'.format( + code += ',{0}{1}self.tr("{2}")'.format( os.linesep, istring, self.eTextDefault.text()) code += '){0}'.format(estring) elif self.rInteger.isChecked(): code += 'getInt({0}{1}'.format(os.linesep, istring) code += '{0},{1}{2}'.format(parent, os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eCaption.text(), os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eLabel.text(), os.linesep, istring) code += '{0:d}, {1:d}, {2:d}, {3:d}){4}'.format( self.sIntDefault.value(), self.sIntFrom.value(), @@ -179,9 +179,9 @@ doubleTo = 2147483647 code += 'getDouble({0}{1}'.format(os.linesep, istring) code += '{0},{1}{2}'.format(parent, os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eCaption.text(), os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eLabel.text(), os.linesep, istring) code += '{0}, {1}, {2}, {3:d}){4}'.format( doubleDefault, doubleFrom, doubleTo, @@ -189,9 +189,9 @@ elif self.rItem.isChecked(): code += 'getItem({0}{1}'.format(os.linesep, istring) code += '{0},{1}{2}'.format(parent, os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eCaption.text(), os.linesep, istring) - code += 'self.trUtf8("{0}"),{1}{2}'.format( + code += 'self.tr("{0}"),{1}{2}'.format( self.eLabel.text(), os.linesep, istring) code += '{0},{1}{2}'.format( self.eVariable.text(), os.linesep, istring)