Plugins/PluginCodeStyleChecker.py

changeset 3190
a9a94491c4fd
parent 3180
2ed66f1e69fd
child 3345
071afe8be2a1
--- a/Plugins/PluginCodeStyleChecker.py	Fri Jan 10 19:30:21 2014 +0100
+++ b/Plugins/PluginCodeStyleChecker.py	Sat Jan 11 11:55:33 2014 +0100
@@ -77,12 +77,12 @@
         menu = e5App().getObject("Project").getMenu("Checks")
         if menu:
             self.__projectAct = E5Action(
-                self.trUtf8('Check Code Style'),
-                self.trUtf8('&Code Style...'), 0, 0,
+                self.tr('Check Code Style'),
+                self.tr('&Code Style...'), 0, 0,
                 self, 'project_check_pep8')
             self.__projectAct.setStatusTip(
-                self.trUtf8('Check code style.'))
-            self.__projectAct.setWhatsThis(self.trUtf8(
+                self.tr('Check code style.'))
+            self.__projectAct.setWhatsThis(self.tr(
                 """<b>Check Code Style...</b>"""
                 """<p>This checks Python files for compliance to the"""
                 """ code style conventions given in various PEPs.</p>"""
@@ -93,10 +93,10 @@
             menu.addAction(self.__projectAct)
         
         self.__editorAct = E5Action(
-            self.trUtf8('Check Code Style'),
-            self.trUtf8('&Code Style...'), 0, 0,
+            self.tr('Check Code Style'),
+            self.tr('&Code Style...'), 0, 0,
             self, "")
-        self.__editorAct.setWhatsThis(self.trUtf8(
+        self.__editorAct.setWhatsThis(self.tr(
             """<b>Check Code Style...</b>"""
             """<p>This checks Python files for compliance to the"""
             """ code style conventions given in various PEPs.</p>"""
@@ -173,10 +173,10 @@
             self.__projectBrowserMenu = menu
             if self.__projectBrowserAct is None:
                 self.__projectBrowserAct = E5Action(
-                    self.trUtf8('Check Code Style'),
-                    self.trUtf8('&Code Style...'), 0, 0,
+                    self.tr('Check Code Style'),
+                    self.tr('&Code Style...'), 0, 0,
                     self, "")
-                self.__projectBrowserAct.setWhatsThis(self.trUtf8(
+                self.__projectBrowserAct.setWhatsThis(self.tr(
                     """<b>Check Code Style...</b>"""
                     """<p>This checks Python files for compliance to the"""
                     """ code style conventions given in various PEPs.</p>"""

eric ide

mercurial