--- a/VCS/StatusMonitorThread.py Fri Mar 31 17:53:47 2017 +0200 +++ b/VCS/StatusMonitorThread.py Mon Apr 03 18:44:16 2017 +0200 @@ -9,7 +9,8 @@ from __future__ import unicode_literals -from PyQt5.QtCore import QThread, QMutex, QWaitCondition, pyqtSignal +from PyQt5.QtCore import QThread, QMutex, QWaitCondition, pyqtSignal, \ + QCoreApplication class VcsStatusMonitorThread(QThread): @@ -60,7 +61,8 @@ # perform the checking task self.statusList = [] self.vcsStatusMonitorStatus.emit( - "wait", self.tr("Waiting for lock")) + "wait", QCoreApplication.translate( + "VcsStatusMonitorThread", "Waiting for lock")) try: locked = self.vcs.vcsExecutionMutex.tryLock(5000) except TypeError: @@ -68,7 +70,9 @@ if locked: try: self.vcsStatusMonitorStatus.emit( - "op", self.tr("Checking repository status")) + "op", QCoreApplication.translate( + "VcsStatusMonitorThread", + "Checking repository status")) res, statusMsg = self._performMonitor() finally: self.vcs.vcsExecutionMutex.unlock() @@ -77,12 +81,15 @@ else: status = "nok" self.vcsStatusMonitorStatus.emit( - "send", self.tr("Sending data")) + "send", QCoreApplication.translate( + "VcsStatusMonitorThread", "Sending data")) self.vcsStatusMonitorData.emit(self.statusList) self.vcsStatusMonitorStatus.emit(status, statusMsg) else: self.vcsStatusMonitorStatus.emit( - "timeout", self.tr("Timed out waiting for lock")) + "timeout", QCoreApplication.translate( + "VcsStatusMonitorThread", + "Timed out waiting for lock")) if self.autoUpdate and self.shouldUpdate: self.vcs.vcsUpdate(self.projectDir, True)