forked from len0rd/rockbox
Fix FS#12158 - Make the "Mode: " line in the radio menu voice.
Translators need to verify the voice string, dumbly copied from the dest string git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30007 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
851cac848a
commit
142725ebc9
38 changed files with 51 additions and 38 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include "presets.h"
|
||||
#include "exported_menus.h"
|
||||
#include "sound_menu.h" /* recording_menu() */
|
||||
#include "talk.h"
|
||||
|
||||
#ifdef HAVE_RECORDING
|
||||
#include "recording.h" /* recording_screen() */
|
||||
|
|
@ -108,6 +109,17 @@ static char* get_mode_text(int selected_item, void * data, char *buffer)
|
|||
str(LANG_RADIO_SCAN_MODE));
|
||||
return buffer;
|
||||
}
|
||||
static int mode_speak_item(int selected_item, void * data)
|
||||
{
|
||||
(void)selected_item;
|
||||
(void)data;
|
||||
long talk_ids[4];
|
||||
talk_ids[0] = LANG_MODE;
|
||||
talk_ids[1] = radio_mode ? LANG_PRESET : LANG_RADIO_SCAN_MODE;
|
||||
talk_ids[2] = TALK_FINAL_ID;
|
||||
talk_idarray(talk_ids, true);
|
||||
return 0;
|
||||
}
|
||||
static int toggle_radio_mode(void)
|
||||
{
|
||||
radio_mode = (radio_mode == RADIO_SCAN_MODE) ?
|
||||
|
|
@ -116,7 +128,8 @@ static int toggle_radio_mode(void)
|
|||
}
|
||||
MENUITEM_FUNCTION_DYNTEXT(radio_mode_item, 0,
|
||||
toggle_radio_mode, NULL,
|
||||
get_mode_text, NULL, NULL, NULL, Icon_NOICON);
|
||||
get_mode_text, mode_speak_item,
|
||||
NULL, NULL, Icon_NOICON);
|
||||
#endif
|
||||
|
||||
MENUITEM_FUNCTION(scan_presets_item, MENU_FUNC_USEPARAM,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue