Helpviewer/Network/FtpReply.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
--- a/Helpviewer/Network/FtpReply.py	Fri Jan 10 19:30:21 2014 +0100
+++ b/Helpviewer/Network/FtpReply.py	Sat Jan 11 11:55:33 2014 +0100
@@ -268,11 +268,11 @@
                         # found a not supported proxy
                         self.setError(
                             QNetworkReply.ProxyConnectionRefusedError,
-                            self.trUtf8("The proxy type seems to be wrong."
-                                        " If it is not in the list of"
-                                        " supported proxy types please report"
-                                        " it with the instructions given by"
-                                        " the proxy.\n{0}").format(
+                            self.tr("The proxy type seems to be wrong."
+                                    " If it is not in the list of"
+                                    " supported proxy types please report"
+                                    " it with the instructions given by"
+                                    " the proxy.\n{0}").format(
                                 "\n".join(lines[1:])))
                         self.error.emit(
                             QNetworkReply.ProxyConnectionRefusedError)
@@ -280,7 +280,7 @@
                     else:
                         from UI.AuthenticationDialog import \
                             AuthenticationDialog
-                        info = self.trUtf8(
+                        info = self.tr(
                             "<b>Connect to proxy '{0}' using:</b>")\
                             .format(Utilities.html_encode(
                                 Preferences.getUI("ProxyHost/Ftp")))
@@ -415,7 +415,7 @@
             icon = UI.PixmapCache.getIcon("up.png")
             linkClasses["link_parent"] = \
                 self.__cssLinkClass(icon, iconSize).format("link_parent")
-            parentStr = self.trUtf8(
+            parentStr = self.tr(
                 """  <p><a class="link_parent" href="{0}">"""
                 """Change to parent directory</a></p>"""
             ).format(parent.toString())
@@ -428,7 +428,7 @@
             """<td class="size">{4}</td>"""\
             """<td class="modified">{5}</td>"""\
             """</tr>\n"""
-        table = self.trUtf8(
+        table = self.tr(
             """    <tr>"""
             """<th align="left">Name</th>"""
             """<th>Size</th>"""
@@ -454,7 +454,7 @@
                     else:
                         break
                 
-                sizeStr = self.trUtf8("{0} {1}", "size unit")\
+                sizeStr = self.tr("{0} {1}", "size unit")\
                     .format(size, self.__units[unit])
                 linkClass = "link_file"
                 if linkClass not in linkClasses:
@@ -481,7 +481,7 @@
         content = ftpListPage_html.format(
             Utilities.html_encode(baseUrl),
             "".join(linkClasses.values()),
-            self.trUtf8("Listing of {0}").format(basePath),
+            self.tr("Listing of {0}").format(basePath),
             parentStr,
             table
         )

eric ide

mercurial