tell entries found for each directory, as it may be rather long
authorGuillaume Cottenceau <gcottenc@gmail.com>
Sun, 29 Nov 2009 21:21:29 +0000 (22:21 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Sun, 29 Nov 2009 21:21:29 +0000 (22:21 +0100)
bin/booh-classifier

index c54b420..9a75848 100644 (file)
@@ -1257,7 +1257,7 @@ end
 def open_dir(*paths)
     #- remove visual stuff, so that user will see something is happening
     reset_all
-    sb_msg(_("Scanning source directory..."))
+    sb_msg(_("Scanning source directory... %s") % "")
     Gtk.main_iteration while Gtk.events_pending?
 
     for path in paths
@@ -1285,6 +1285,8 @@ def open_dir(*paths)
                     next
                 end
                 entries += Dir.entries(dir).collect { |file| File.join(dir, file) }
+                sb_msg(_("Scanning source directory... %s") % (_("%d entries found") % entries.size))
+                Gtk.main_iteration while Gtk.events_pending?
             }
 
         else