diff options
author | mkaay <mkaay@mkaay.de> | 2010-02-04 19:06:26 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-02-04 19:06:26 +0100 |
commit | dfcf74000e0c8021b62a74ffe0068ff685decb97 (patch) | |
tree | f12e1475ecacdbe862788527ebbe1de80b5c4578 /module/gui/ConnectionManager.py | |
parent | little fixes, closed #71 (diff) | |
download | pyload-dfcf74000e0c8021b62a74ffe0068ff685decb97.tar.xz |
better gui performance, i18n in gui, new pot files
Diffstat (limited to 'module/gui/ConnectionManager.py')
-rw-r--r-- | module/gui/ConnectionManager.py | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/module/gui/ConnectionManager.py b/module/gui/ConnectionManager.py index 57aed3a18..29e95f637 100644 --- a/module/gui/ConnectionManager.py +++ b/module/gui/ConnectionManager.py @@ -30,10 +30,10 @@ class ConnectionManager(QWidget): connList = QListWidget() - new = QPushButton("New") - edit = QPushButton("Edit") - remove = QPushButton("Remove") - connect = QPushButton("Connect") + new = QPushButton(_("New")) + edit = QPushButton(_("Edit")) + remove = QPushButton(_("Remove")) + connect = QPushButton(_("Connect")) mainLayout.addWidget(connList) mainLayout.addLayout(buttonLayout) @@ -73,7 +73,7 @@ class ConnectionManager(QWidget): item.setData(Qt.UserRole, QVariant(conn)) self.connList.addItem(item) if conn["default"]: - item.setData(Qt.DisplayRole, QVariant("%s (Default)" % conn["name"])) + item.setData(Qt.DisplayRole, QVariant(_("%s (Default)") % conn["name"])) self.connList.setCurrentItem(item) def slotNew(self): @@ -135,12 +135,12 @@ class ConnectionManager(QWidget): grid = QGridLayout() - nameLabel = QLabel("Name:") - hostLabel = QLabel("Host:") - sslLabel = QLabel("SSL:") - localLabel = QLabel("Local:") - userLabel = QLabel("User:") - portLabel = QLabel("Port:") + nameLabel = QLabel(_("Name:")) + hostLabel = QLabel(_("Host:")) + sslLabel = QLabel(_("SSL:")) + localLabel = QLabel(_("Local:")) + userLabel = QLabel(_("User:")) + portLabel = QLabel(_("Port:")) name = QLineEdit() host = QLineEdit() @@ -150,8 +150,8 @@ class ConnectionManager(QWidget): port = QSpinBox() port.setRange(1,10000) - save = QPushButton("Save") - cancel = QPushButton("Cancel") + save = QPushButton(_("Save")) + cancel = QPushButton(_("Cancel")) grid.addWidget(nameLabel, 0, 0) grid.addWidget(name, 0, 1) |