aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-19 00:24:06 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-19 00:24:06 +0000
commitb2f097f145a0116cc4c9f58f6bcc2006d6dca14c (patch)
treebef187817ec35dcbad62b514ebf592207bc050a6 /lib/python
parentf9f5c691fbbff5d5393d46b05c299f38a6afdfc3 (diff)
downloadenigma2-b2f097f145a0116cc4c9f58f6bcc2006d6dca14c.tar.gz
enigma2-b2f097f145a0116cc4c9f58f6bcc2006d6dca14c.zip
show how much services are found after the scan
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/ServiceScan.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/python/Components/ServiceScan.py b/lib/python/Components/ServiceScan.py
index 24bbc10e..7cbc65db 100644
--- a/lib/python/Components/ServiceScan.py
+++ b/lib/python/Components/ServiceScan.py
@@ -29,7 +29,12 @@ class ServiceScan:
self.text.setText(_("scan in progress - %d %% done!\n%d services found!") % (self.scan.getProgress(), self.scan.getNumServices()))
if self.state == self.Done:
- self.text.setText(_("scan done!"))
+ if self.scan.getNumServices() == 1:
+ self.text.setText(_("scan done!\nOne service found!"))
+ elif self.scan.getNumServices() == 0:
+ self.text.setText(_("scan done!\nNo service found!"))
+ else:
+ self.text.setText(_("scan done!\n%d services found!") % (self.scan.getNumServices()))
if self.state == self.Error:
self.text.setText(_("ERROR - failed to scan (%s)!") % (self.Errors[self.errorcode]) )