50 syncMgr.syncError.connect(self.__syncError) |
50 syncMgr.syncError.connect(self.__syncError) |
51 syncMgr.syncStatus.connect(self.__updateMessages) |
51 syncMgr.syncStatus.connect(self.__updateMessages) |
52 syncMgr.syncFinished.connect(self.__updateLabels) |
52 syncMgr.syncFinished.connect(self.__updateLabels) |
53 |
53 |
54 if Preferences.getHelp("SyncType") == SyncGlobals.SyncTypeFtp: |
54 if Preferences.getHelp("SyncType") == SyncGlobals.SyncTypeFtp: |
55 self.handlerLabel.setText(self.trUtf8("FTP")) |
55 self.handlerLabel.setText(self.tr("FTP")) |
56 self.infoLabel.setText(self.trUtf8("Host:")) |
56 self.infoLabel.setText(self.tr("Host:")) |
57 self.infoDataLabel.setText(Preferences.getHelp("SyncFtpServer")) |
57 self.infoDataLabel.setText(Preferences.getHelp("SyncFtpServer")) |
58 elif Preferences.getHelp("SyncType") == SyncGlobals.SyncTypeDirectory: |
58 elif Preferences.getHelp("SyncType") == SyncGlobals.SyncTypeDirectory: |
59 self.handlerLabel.setText(self.trUtf8("Shared Directory")) |
59 self.handlerLabel.setText(self.tr("Shared Directory")) |
60 self.infoLabel.setText(self.trUtf8("Directory:")) |
60 self.infoLabel.setText(self.tr("Directory:")) |
61 self.infoDataLabel.setText( |
61 self.infoDataLabel.setText( |
62 Preferences.getHelp("SyncDirectoryPath")) |
62 Preferences.getHelp("SyncDirectoryPath")) |
63 else: |
63 else: |
64 self.handlerLabel.setText(self.trUtf8("No Synchronization")) |
64 self.handlerLabel.setText(self.tr("No Synchronization")) |
65 self.hostLabel.setText("") |
65 self.hostLabel.setText("") |
66 |
66 |
67 self.bookmarkMsgLabel.setText("") |
67 self.bookmarkMsgLabel.setText("") |
68 self.historyMsgLabel.setText("") |
68 self.historyMsgLabel.setText("") |
69 self.passwordsMsgLabel.setText("") |
69 self.passwordsMsgLabel.setText("") |
202 Private slot to handle general synchronization issues. |
202 Private slot to handle general synchronization issues. |
203 |
203 |
204 @param message error message (string) |
204 @param message error message (string) |
205 """ |
205 """ |
206 self.syncErrorLabel.show() |
206 self.syncErrorLabel.show() |
207 self.syncErrorLabel.setText(self.trUtf8( |
207 self.syncErrorLabel.setText(self.tr( |
208 '<font color="#FF0000"><b>Error:</b> {0}</font>').format(message)) |
208 '<font color="#FF0000"><b>Error:</b> {0}</font>').format(message)) |