All pastes #710138 Raw Edit

Miscellany

public text v1 · immutable
#710138 ·published 2007-09-25 07:41 UTC
rendered paste body
Index: apps/plugins/stats.c
===================================================================
--- apps/plugins/stats.c	(revision 14854)
+++ apps/plugins/stats.c	(working copy)
@@ -17,6 +17,7 @@
  *
  ****************************************************************************/
 #include "plugin.h"
+#include "lang_enum.h"
 
 PLUGIN_HEADER
 
@@ -177,13 +178,16 @@
     musicfiles = 0;
     largestdir = 0;
     abort = false;
-
+    if(rb->talk_menus_enabled ())
+        rb->talk_id(VOICE_COUNTING, true);
     rb->splash(HZ, "Counting...");
     update_screen();
     lasttick = *rb->current_tick;
 
     traversedir("", "");
     if (abort == true) {
+        if(rb->talk_menus_enabled ()) 
+            rb->talk_id(VOICE_ABORTED, true);
         rb->splash(HZ, "Aborted");
         return PLUGIN_OK;
     }
@@ -192,8 +196,14 @@
     rb->remote_backlight_on();
 #endif
     rb->backlight_on();
+    if(rb->talk_menus_enabled ())
+        rb->talk_id(VOICE_DONE, true);
     rb->splash(HZ, "Done");
     update_screen();
+    if(rb->talk_menus_enabled ()){
+    rb->talk_id(VOICE_MUSICFILES, true);
+    rb->talk_value(musicfiles, UNIT_INT, true);
+    }
     button = rb->button_get(true);
     while (1) {
         switch (button) {
Index: apps/lang/english.lang
===================================================================
--- apps/lang/english.lang	(revision 14854)
+++ apps/lang/english.lang	(working copy)
@@ -11242,3 +11242,45 @@
     usbstack: "Device Driver"
   </voice>
 </phrase>
+<phrase>
+  id: VOICE_MUSICFILES
+  desc: in stats plugin
+  user:
+  <source>
+    *: none
+  </source>
+  <dest>
+    *: none
+  </dest>
+  <voice>
+    *: "Music files ="
+</voice>
+</phrase>
+<phrase>
+  id: VOICE_DONE
+  desc: in stats plugin
+  user:
+  <source>
+    *: none
+  </source>
+  <dest>
+    *: none
+  </dest>
+  <voice>
+    *: "Done"
+ </voice>
+</phrase>
+<phrase>
+  id: VOICE_ABORTED
+  desc: in stats plugin
+  user:
+  <source>
+    *: none
+  </source>
+  <dest>
+    *: none
+  </dest>
+  <voice>
+    *: "Aborted"
+</voice>
+</phrase>
\ No newline at end of file