Preferences/ConfigurationPages/DebuggerGeneralPage.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ConfigurationPages/DebuggerGeneralPage.py	Thu Apr 03 23:05:31 2014 +0200
@@ -240,8 +240,8 @@
         """
         allowedHost, ok = QInputDialog.getText(
             None,
-            self.trUtf8("Add allowed host"),
-            self.trUtf8("Enter the IP address of an allowed host"),
+            self.tr("Add allowed host"),
+            self.tr("Enter the IP address of an allowed host"),
             QLineEdit.Normal)
         if ok and allowedHost:
             if QHostAddress(allowedHost).protocol() in \
@@ -250,8 +250,8 @@
             else:
                 E5MessageBox.critical(
                     self,
-                    self.trUtf8("Add allowed host"),
-                    self.trUtf8(
+                    self.tr("Add allowed host"),
+                    self.tr(
                         """<p>The entered address <b>{0}</b> is not"""
                         """ a valid IP v4 or IP v6 address."""
                         """ Aborting...</p>""")
@@ -272,8 +272,8 @@
         allowedHost = self.allowedHostsList.currentItem().text()
         allowedHost, ok = QInputDialog.getText(
             None,
-            self.trUtf8("Edit allowed host"),
-            self.trUtf8("Enter the IP address of an allowed host"),
+            self.tr("Edit allowed host"),
+            self.tr("Enter the IP address of an allowed host"),
             QLineEdit.Normal,
             allowedHost)
         if ok and allowedHost:
@@ -283,8 +283,8 @@
             else:
                 E5MessageBox.critical(
                     self,
-                    self.trUtf8("Edit allowed host"),
-                    self.trUtf8(
+                    self.tr("Edit allowed host"),
+                    self.tr(
                         """<p>The entered address <b>{0}</b> is not"""
                         """ a valid IP v4 or IP v6 address."""
                         """ Aborting...</p>""")

eric ide

mercurial