QScintilla/SearchReplaceWidget.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3345
071afe8be2a1
--- a/QScintilla/SearchReplaceWidget.py	Fri Jan 10 19:30:21 2014 +0100
+++ b/QScintilla/SearchReplaceWidget.py	Sat Jan 11 11:55:33 2014 +0100
@@ -52,7 +52,7 @@
             from .Ui_ReplaceWidget import Ui_ReplaceWidget
             self.replaceHistory = vm.getSRHistory('replace')
             self.ui = Ui_ReplaceWidget()
-            whatsThis = self.trUtf8(
+            whatsThis = self.tr(
 r"""<b>Find and Replace</b>
 <p>This dialog is used to find some text and replace it with another text.
 By checking the various checkboxes, the search can be made more specific.
@@ -63,7 +63,7 @@
         else:
             from .Ui_SearchWidget import Ui_SearchWidget
             self.ui = Ui_SearchWidget()
-            whatsThis = self.trUtf8(
+            whatsThis = self.tr(
 r"""<b>Find</b>
 <p>This dialog is used to find some text. By checking the various checkboxes,
 the search can be made more specific. The search string might be a regular
@@ -74,7 +74,7 @@
         if not replace:
             self.ui.wrapCheckBox.setChecked(True)
         
-        whatsThis += self.trUtf8(
+        whatsThis += self.tr(
 r"""<table border="0">
 <tr><td><code>.</code></td><td>Matches any character</td></tr>
 <tr><td><code>\(</code></td><td>This marks the start of a region for tagging a
@@ -140,16 +140,16 @@
                 self.on_replaceButton_clicked)
         
         self.findNextAct = E5Action(
-            self.trUtf8('Find Next'),
-            self.trUtf8('Find Next'),
+            self.tr('Find Next'),
+            self.tr('Find Next'),
             0, 0, self, 'search_widget_find_next')
         self.findNextAct.triggered[()].connect(self.on_findNextButton_clicked)
         self.findNextAct.setEnabled(False)
         self.ui.findtextCombo.addAction(self.findNextAct)
         
         self.findPrevAct = E5Action(
-            self.trUtf8('Find Prev'),
-            self.trUtf8('Find Prev'),
+            self.tr('Find Prev'),
+            self.tr('Find Prev'),
             0, 0, self, 'search_widget_find_prev')
         self.findPrevAct.triggered[()].connect(self.on_findPrevButton_clicked)
         self.findPrevAct.setEnabled(False)
@@ -245,7 +245,7 @@
         else:
             E5MessageBox.information(
                 self, self.windowTitle(),
-                self.trUtf8("'{0}' was not found.").format(txt))
+                self.tr("'{0}' was not found.").format(txt))
 
     @pyqtSlot()
     def on_findPrevButton_clicked(self):
@@ -282,7 +282,7 @@
         else:
             E5MessageBox.information(
                 self, self.windowTitle(),
-                self.trUtf8("'{0}' was not found.").format(txt))
+                self.tr("'{0}' was not found.").format(txt))
     
     def __findByReturnPressed(self):
         """
@@ -642,7 +642,7 @@
                 self.ui.replaceSearchButton.setEnabled(False)
                 E5MessageBox.information(
                     self, self.windowTitle(),
-                    self.trUtf8("'{0}' was not found.").format(ftxt))
+                    self.tr("'{0}' was not found.").format(ftxt))
         else:
             self.ui.replaceButton.setEnabled(False)
             self.ui.replaceSearchButton.setEnabled(False)
@@ -764,12 +764,12 @@
         if found:
             E5MessageBox.information(
                 self, self.windowTitle(),
-                self.trUtf8("Replaced {0} occurrences.")
+                self.tr("Replaced {0} occurrences.")
                 .format(replacements))
         else:
             E5MessageBox.information(
                 self, self.windowTitle(),
-                self.trUtf8("Nothing replaced because '{0}' was not found.")
+                self.tr("Nothing replaced because '{0}' was not found.")
                 .format(ftxt))
         
         aw.setCursorPosition(cline, cindex)

eric ide

mercurial