Preferences/ConfigurationPages/NetworkPage.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3656
441956d8fce5
--- a/Preferences/ConfigurationPages/NetworkPage.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ConfigurationPages/NetworkPage.py	Thu Apr 03 23:05:31 2014 +0200
@@ -22,6 +22,7 @@
 
 import Preferences
 import Utilities
+import UI.PixmapCache
 
 
 class NetworkPage(ConfigurationPageBase, Ui_NetworkPage):
@@ -36,28 +37,30 @@
         self.setupUi(self)
         self.setObjectName("NetworkPage")
         
+        self.downloadDirButton.setIcon(UI.PixmapCache.getIcon("open.png"))
+        
         self.downloadDirCompleter = E5DirCompleter(self.downloadDirEdit)
         
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("No FTP Proxy"), E5FtpProxyType.NoProxy)
+            self.tr("No FTP Proxy"), E5FtpProxyType.NoProxy)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("No Proxy Authentication required"),
+            self.tr("No Proxy Authentication required"),
             E5FtpProxyType.NonAuthorizing)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("User@Server"), E5FtpProxyType.UserAtServer)
+            self.tr("User@Server"), E5FtpProxyType.UserAtServer)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("SITE"), E5FtpProxyType.Site)
+            self.tr("SITE"), E5FtpProxyType.Site)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("OPEN"), E5FtpProxyType.Open)
+            self.tr("OPEN"), E5FtpProxyType.Open)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("User@Proxyuser@Server"),
+            self.tr("User@Proxyuser@Server"),
             E5FtpProxyType.UserAtProxyuserAtServer)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("Proxyuser@Server"), E5FtpProxyType.ProxyuserAtServer)
+            self.tr("Proxyuser@Server"), E5FtpProxyType.ProxyuserAtServer)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("AUTH and RESP"), E5FtpProxyType.AuthResp)
+            self.tr("AUTH and RESP"), E5FtpProxyType.AuthResp)
         self.ftpProxyTypeCombo.addItem(
-            self.trUtf8("Bluecoat Proxy"), E5FtpProxyType.Bluecoat)
+            self.tr("Bluecoat Proxy"), E5FtpProxyType.Bluecoat)
         
         # set initial values
         self.downloadDirEdit.setText(Preferences.getUI("DownloadPath"))
@@ -181,7 +184,7 @@
         """
         directory = E5FileDialog.getExistingDirectory(
             self,
-            self.trUtf8("Select download directory"),
+            self.tr("Select download directory"),
             self.downloadDirEdit.text(),
             E5FileDialog.Options(E5FileDialog.ShowDirsOnly))
             

eric ide

mercurial