From 0b6f0dd36f5b4c02a444825c77cae02cc5066f34 Mon Sep 17 00:00:00 2001 From: mkaay Date: Mon, 6 Sep 2010 19:14:02 +0200 Subject: gui: status translation, core: added scheduler -> better account fetching UploadedTo + ShareonlineBiz account fix --- module/gui/Queue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/gui/Queue.py') diff --git a/module/gui/Queue.py b/module/gui/Queue.py index ca527bb2c..9225df58f 100644 --- a/module/gui/Queue.py +++ b/module/gui/Queue.py @@ -185,9 +185,9 @@ class QueueModel(CollectorModel): status = item.data["status"] if speed is None or status == 7 or status == 10 or status == 5: - return QVariant(statusMapReverse[status]) + return QVariant(self.translateStatus(statusMapReverse[status])) else: - return QVariant("%s (%s KB/s)" % (statusMapReverse[status], speed)) + return QVariant("%s (%s KB/s)" % (self.translateStatus(statusMapReverse[status]), speed)) elif index.column() == 3: item = index.internalPointer() if isinstance(item, Package): @@ -251,7 +251,7 @@ class QueueProgressBarDelegate(QItemDelegate): opts.textVisible = True opts.textAlignment = Qt.AlignCenter if not wait is None: - opts.text = QString("waiting %d seconds" % (wait,)) + opts.text = QString(_("waiting %d seconds") % (wait,)) else: opts.text = QString.number(opts.progress) + "%" QApplication.style().drawControl(QStyle.CE_ProgressBar, opts, painter) -- cgit v1.2.3