Graphics/ApplicationDiagramBuilder.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3515
1b8381afe38f
diff -r 96232974dcdb -r 645c12de6b0c Graphics/ApplicationDiagramBuilder.py
--- a/Graphics/ApplicationDiagramBuilder.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Graphics/ApplicationDiagramBuilder.py	Thu Apr 03 23:05:31 2014 +0200
@@ -43,7 +43,7 @@
         self.noModules = noModules
         
         self.umlView.setDiagramName(
-            self.trUtf8("Application Diagram {0}").format(
+            self.tr("Application Diagram {0}").format(
                 self.project.getProjectName()))
         
     def __buildModulesDict(self):
@@ -64,8 +64,8 @@
                 self.project.ppath, module))
         tot = len(modules)
         progress = E5ProgressDialog(
-            self.trUtf8("Parsing modules..."),
-            None, 0, tot, self.trUtf8("%v/%m Modules"), self.parent())
+            self.tr("Parsing modules..."),
+            None, 0, tot, self.tr("%v/%m Modules"), self.parent())
         try:
             prog = 0
             progress.show()
@@ -191,9 +191,9 @@
                 if relPackage and relPackage[0] == '.':
                     relPackage = relPackage[1:]
                 else:
-                    relPackage = self.trUtf8("<<Application>>")
+                    relPackage = self.tr("<<Application>>")
             else:
-                relPackage = self.trUtf8("<<Others>>")
+                relPackage = self.tr("<<Others>>")
             shape = self.__addPackage(
                 relPackage, packages[package][0], 0.0, 0.0)
             shapeRect = shape.sceneBoundingRect()
@@ -280,8 +280,8 @@
         if projectFile != self.project.getProjectFile():
             res = E5MessageBox.yesNo(
                 None,
-                self.trUtf8("Load Diagram"),
-                self.trUtf8(
+                self.tr("Load Diagram"),
+                self.tr(
                     """<p>The diagram belongs to the project <b>{0}</b>."""
                     """ Shall this project be opened?</p>""").format(
                     projectFile))

eric ide

mercurial