Project/CreateDialogCodeDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
diff -r 9a21c547de5f -r a9a94491c4fd Project/CreateDialogCodeDialog.py
--- a/Project/CreateDialogCodeDialog.py	Fri Jan 10 19:30:21 2014 +0100
+++ b/Project/CreateDialogCodeDialog.py	Sat Jan 11 11:55:33 2014 +0100
@@ -115,8 +115,8 @@
             self.__initError = True
             E5MessageBox.critical(
                 self,
-                self.trUtf8("Create Dialog Code"),
-                self.trUtf8(
+                self.tr("Create Dialog Code"),
+                self.tr(
                     """The file <b>{0}</b> exists but does not contain"""
                     """ any classes.""").format(self.srcFile))
         
@@ -144,8 +144,8 @@
         except (AttributeError, ImportError) as err:
             E5MessageBox.critical(
                 self,
-                self.trUtf8("uic error"),
-                self.trUtf8(
+                self.tr("uic error"),
+                self.tr(
                     """<p>There was an error loading the form <b>{0}</b>"""
                     """.</p><p>{1}</p>""").format(self.formFile, str(err)))
             return ""
@@ -162,8 +162,8 @@
         except (AttributeError, ImportError) as err:
             E5MessageBox.critical(
                 self,
-                self.trUtf8("uic error"),
-                self.trUtf8(
+                self.tr("uic error"),
+                self.tr(
                     """<p>There was an error loading the form <b>{0}</b>"""
                     """.</p><p>{1}</p>""").format(self.formFile, str(err)))
             return ""
@@ -326,8 +326,8 @@
         except (AttributeError, ImportError) as err:
             E5MessageBox.critical(
                 self,
-                self.trUtf8("uic error"),
-                self.trUtf8(
+                self.tr("uic error"),
+                self.tr(
                     """<p>There was an error loading the form <b>{0}</b>"""
                     """.</p><p>{1}</p>""").format(self.formFile, str(err)))
         
@@ -395,8 +395,8 @@
             except IOError as why:
                 E5MessageBox.critical(
                     self,
-                    self.trUtf8("Code Generation"),
-                    self.trUtf8(
+                    self.tr("Code Generation"),
+                    self.tr(
                         """<p>Could not open the code template file"""
                         """ "{0}".</p><p>Reason: {1}</p>""")
                     .format(tmplName, str(why)))
@@ -431,8 +431,8 @@
             except IOError as why:
                 E5MessageBox.critical(
                     self,
-                    self.trUtf8("Code Generation"),
-                    self.trUtf8(
+                    self.tr("Code Generation"),
+                    self.tr(
                         """<p>Could not open the source file "{0}".</p>"""
                         """<p>Reason: {1}</p>""")
                     .format(self.srcFile, str(why)))
@@ -510,9 +510,9 @@
         except IOError as why:
             E5MessageBox.critical(
                 self,
-                self.trUtf8("Code Generation"),
-                self.trUtf8("""<p>Could not write the source file "{0}".</p>"""
-                            """<p>Reason: {1}</p>""")
+                self.tr("Code Generation"),
+                self.tr("""<p>Could not write the source file "{0}".</p>"""
+                        """<p>Reason: {1}</p>""")
                 .format(self.filenameEdit.text(), str(why)))
             return
         

eric ide

mercurial