From 5b76936a44de3c7ecd568300f26b5e6421901285 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Mon, 6 Aug 2007 13:08:36 +0000 Subject: Accept FS#6159 'Add voice to roughly 100 splash screens and yes-no menus' by Stephane Doyon with some minor tweaks by me. Rerun 'configure' and do a 'make clean' before rebuilding your voice files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14213 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index c15cb39d3d..a1019f8a5e 100644 --- a/apps/main.c +++ b/apps/main.c @@ -217,6 +217,17 @@ static void init_tagcache(void) if (ret > 0) { + static long talked_tick = 0; + if(talk_menus_enabled() + && (talked_tick == 0 + || TIME_AFTER(current_tick, talked_tick+7*HZ))) + { + talked_tick = current_tick; + talk_id(LANG_TAGCACHE_INIT, false); + talk_number(ret, true); + talk_id(VOICE_OF, true); + talk_number(tagcache_get_max_commit_step(), true); + } #ifdef HAVE_LCD_BITMAP gui_syncsplash(0, "%s [%d/%d]", str(LANG_TAGCACHE_INIT), ret, @@ -474,7 +485,7 @@ static void init(void) if (button_hold()) #endif { - gui_syncsplash(HZ*2, str(LANG_RESET_DONE_CLEAR)); + gui_syncsplash(HZ*2, ID2P(LANG_RESET_DONE_CLEAR)); settings_reset(); } else -- cgit v1.2.3