Plugins/PluginTabnanny.py

changeset 3190
a9a94491c4fd
parent 3180
2ed66f1e69fd
child 3345
071afe8be2a1
--- a/Plugins/PluginTabnanny.py	Fri Jan 10 19:30:21 2014 +0100
+++ b/Plugins/PluginTabnanny.py	Sat Jan 11 11:55:33 2014 +0100
@@ -73,12 +73,12 @@
         menu = e5App().getObject("Project").getMenu("Checks")
         if menu:
             self.__projectAct = E5Action(
-                self.trUtf8('Check Indentations'),
-                self.trUtf8('&Indentations...'), 0, 0,
+                self.tr('Check Indentations'),
+                self.tr('&Indentations...'), 0, 0,
                 self, 'project_check_indentations')
             self.__projectAct.setStatusTip(
-                self.trUtf8('Check indentations using tabnanny.'))
-            self.__projectAct.setWhatsThis(self.trUtf8(
+                self.tr('Check indentations using tabnanny.'))
+            self.__projectAct.setWhatsThis(self.tr(
                 """<b>Check Indentations...</b>"""
                 """<p>This checks Python files"""
                 """ for bad indentations using tabnanny.</p>"""
@@ -88,10 +88,10 @@
             menu.addAction(self.__projectAct)
         
         self.__editorAct = E5Action(
-            self.trUtf8('Check Indentations'),
-            self.trUtf8('&Indentations...'), 0, 0,
+            self.tr('Check Indentations'),
+            self.tr('&Indentations...'), 0, 0,
             self, "")
-        self.__editorAct.setWhatsThis(self.trUtf8(
+        self.__editorAct.setWhatsThis(self.tr(
             """<b>Check Indentations...</b>"""
             """<p>This checks Python files"""
             """ for bad indentations using tabnanny.</p>"""
@@ -168,10 +168,10 @@
             self.__projectBrowserMenu = menu
             if self.__projectBrowserAct is None:
                 self.__projectBrowserAct = E5Action(
-                    self.trUtf8('Check Indentations'),
-                    self.trUtf8('&Indentations...'), 0, 0,
+                    self.tr('Check Indentations'),
+                    self.tr('&Indentations...'), 0, 0,
                     self, "")
-                self.__projectBrowserAct.setWhatsThis(self.trUtf8(
+                self.__projectBrowserAct.setWhatsThis(self.tr(
                     """<b>Check Indentations...</b>"""
                     """<p>This checks Python files"""
                     """ for bad indentations using tabnanny.</p>"""

eric ide

mercurial