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