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
diff --git a/apps/lang/bulgarian.lang b/apps/lang/bulgarian.lang
index 590bfd8..b470707 100644
--- a/apps/lang/bulgarian.lang
+++ b/apps/lang/bulgarian.lang
@@ -5919,7 +5919,7 @@
*: "Режим:"
</dest>
<voice>
- *: ""
+ *: "Режим:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/catala.lang b/apps/lang/catala.lang
index ec79dd7..cb94953 100644
--- a/apps/lang/catala.lang
+++ b/apps/lang/catala.lang
@@ -7881,7 +7881,7 @@
*: "Mode:"
</dest>
<voice>
- *: ""
+ *: "Mode:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/chinese-simp.lang b/apps/lang/chinese-simp.lang
index 25b38ac..5ba3c64 100644
--- a/apps/lang/chinese-simp.lang
+++ b/apps/lang/chinese-simp.lang
@@ -9019,7 +9019,7 @@
*: "模式:"
</dest>
<voice>
- *: ""
+ *: "模式:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/chinese-trad.lang b/apps/lang/chinese-trad.lang
index 294fb75..c798f8c 100644
--- a/apps/lang/chinese-trad.lang
+++ b/apps/lang/chinese-trad.lang
@@ -8996,7 +8996,7 @@
*: "模式:"
</dest>
<voice>
- *: ""
+ *: "模式:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/czech.lang b/apps/lang/czech.lang
index 6b9d12e..52677a8 100644
--- a/apps/lang/czech.lang
+++ b/apps/lang/czech.lang
@@ -7889,7 +7889,7 @@
*: "Mód:"
</dest>
<voice>
- *: "Mód"
+ *: "Mód:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/dansk.lang b/apps/lang/dansk.lang
index 20ebb5e..38bbb8e 100644
--- a/apps/lang/dansk.lang
+++ b/apps/lang/dansk.lang
@@ -9832,7 +9832,7 @@
*: "Tilstand:"
</dest>
<voice>
- *: ""
+ *: "Tilstand:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/deutsch.lang b/apps/lang/deutsch.lang
index 75004b4..c8c3e70 100644
--- a/apps/lang/deutsch.lang
+++ b/apps/lang/deutsch.lang
@@ -7892,7 +7892,7 @@
*: "Modus:"
</dest>
<voice>
- *: ""
+ *: "Modus:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index de23842..6e9dcdf 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -7970,7 +7970,7 @@
*: "Mode:"
</dest>
<voice>
- *: ""
+ *: "Mode:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/espanol.lang b/apps/lang/espanol.lang
index ffad4e1..15046f1 100644
--- a/apps/lang/espanol.lang
+++ b/apps/lang/espanol.lang
@@ -9562,7 +9562,7 @@
*: "Modo:"
</dest>
<voice>
- *: ""
+ *: "Modo:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/finnish.lang b/apps/lang/finnish.lang
index 87a7862..a746df1 100644
--- a/apps/lang/finnish.lang
+++ b/apps/lang/finnish.lang
@@ -9773,7 +9773,7 @@
*: "Tila:"
</dest>
<voice>
- *: ""
+ *: "Tila:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/francais.lang b/apps/lang/francais.lang
index 2adf811..7256ac6 100644
--- a/apps/lang/francais.lang
+++ b/apps/lang/francais.lang
@@ -7913,7 +7913,7 @@
*: "Mode:"
</dest>
<voice>
- *: ""
+ *: "Mode:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/galego.lang b/apps/lang/galego.lang
index 964a5fa..162c8f8 100644
--- a/apps/lang/galego.lang
+++ b/apps/lang/galego.lang
@@ -8974,7 +8974,7 @@
*: "Modo:"
</dest>
<voice>
- *: ""
+ *: "Modo:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/greek.lang b/apps/lang/greek.lang
index 06c738e..8814dee 100644
--- a/apps/lang/greek.lang
+++ b/apps/lang/greek.lang
@@ -7858,7 +7858,7 @@
*: "Τύπος:"
</dest>
<voice>
- *: ""
+ *: "Τύπος:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/hebrew.lang b/apps/lang/hebrew.lang
index b6937db..b753ce7 100644
--- a/apps/lang/hebrew.lang
+++ b/apps/lang/hebrew.lang
@@ -7896,7 +7896,7 @@
*: "מצב:"
</dest>
<voice>
- *: ""
+ *: "מצב:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/hrvatski.lang b/apps/lang/hrvatski.lang
index 1def220..1f31ff4 100644
--- a/apps/lang/hrvatski.lang
+++ b/apps/lang/hrvatski.lang
@@ -7888,7 +7888,7 @@
*: "Način rada:"
</dest>
<voice>
- *: ""
+ *: "Način rada:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/italiano.lang b/apps/lang/italiano.lang
index fa95de5..6f2b5df 100644
--- a/apps/lang/italiano.lang
+++ b/apps/lang/italiano.lang
@@ -7890,7 +7890,7 @@
*: "Modo:"
</dest>
<voice>
- *: ""
+ *: "Modo:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/japanese.lang b/apps/lang/japanese.lang
index d0b0ae8..50b2497 100644
--- a/apps/lang/japanese.lang
+++ b/apps/lang/japanese.lang
@@ -7894,7 +7894,7 @@
*: "モード:"
</dest>
<voice>
- *: ""
+ *: "モード:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/korean.lang b/apps/lang/korean.lang
index a0a332d..5ad965e 100644
--- a/apps/lang/korean.lang
+++ b/apps/lang/korean.lang
@@ -10103,7 +10103,7 @@
*: "모드:"
</dest>
<voice>
- *: ""
+ *: "모드:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/latviesu.lang b/apps/lang/latviesu.lang
index 5be873f..4c8dfa6 100644
--- a/apps/lang/latviesu.lang
+++ b/apps/lang/latviesu.lang
@@ -7888,7 +7888,7 @@
*: "Režīms:"
</dest>
<voice>
- *: ""
+ *: "Režīms:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/lietuviu.lang b/apps/lang/lietuviu.lang
index d56ffe5..5af107a 100644
--- a/apps/lang/lietuviu.lang
+++ b/apps/lang/lietuviu.lang
@@ -7946,7 +7946,7 @@
*: "Rėžimas:"
</dest>
<voice>
- *: ""
+ *: "Rėžimas:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/magyar.lang b/apps/lang/magyar.lang
index b9c388c..bdd7b4e 100644
--- a/apps/lang/magyar.lang
+++ b/apps/lang/magyar.lang
@@ -7864,7 +7864,7 @@
*: "Mód:"
</dest>
<voice>
- *: ""
+ *: "Mód:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/nederlands.lang b/apps/lang/nederlands.lang
index 08bf3df..535622a 100644
--- a/apps/lang/nederlands.lang
+++ b/apps/lang/nederlands.lang
@@ -9785,7 +9785,7 @@
*: "Mode:"
</dest>
<voice>
- *: ""
+ *: "Mode:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/norsk-nynorsk.lang b/apps/lang/norsk-nynorsk.lang
index 0957678..835a6bd 100644
--- a/apps/lang/norsk-nynorsk.lang
+++ b/apps/lang/norsk-nynorsk.lang
@@ -9581,7 +9581,7 @@
*: "Modus:"
</dest>
<voice>
- *: ""
+ *: "Modus:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/norsk.lang b/apps/lang/norsk.lang
index 293c493..6c7a371 100644
--- a/apps/lang/norsk.lang
+++ b/apps/lang/norsk.lang
@@ -9878,7 +9878,7 @@
*: "Modus:"
</dest>
<voice>
- *: ""
+ *: "Modus:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/polski.lang b/apps/lang/polski.lang
index 00e1dde..65ea35f 100644
--- a/apps/lang/polski.lang
+++ b/apps/lang/polski.lang
@@ -7900,7 +7900,7 @@
*: "Tryb:"
</dest>
<voice>
- *: ""
+ *: "Tryb:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/portugues-brasileiro.lang b/apps/lang/portugues-brasileiro.lang
index 3036a79..d397530 100644
--- a/apps/lang/portugues-brasileiro.lang
+++ b/apps/lang/portugues-brasileiro.lang
@@ -7888,7 +7888,7 @@
*: "Modo:"
</dest>
<voice>
- *: ""
+ *: "Modo:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/portugues.lang b/apps/lang/portugues.lang
index f2ce99b..9fa8649 100644
--- a/apps/lang/portugues.lang
+++ b/apps/lang/portugues.lang
@@ -8188,7 +8188,7 @@
*: "Modo:"
</dest>
<voice>
- *: ""
+ *: "Modo:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/romaneste.lang b/apps/lang/romaneste.lang
index 35b136f..adc031d 100644
--- a/apps/lang/romaneste.lang
+++ b/apps/lang/romaneste.lang
@@ -6142,7 +6142,7 @@
*: "Mod:"
</dest>
<voice>
- *: ""
+ *: "Mod:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/russian.lang b/apps/lang/russian.lang
index cbe432d..db66ee8 100644
--- a/apps/lang/russian.lang
+++ b/apps/lang/russian.lang
@@ -8869,7 +8869,7 @@
*: "Режим:"
</dest>
<voice>
- *: ""
+ *: "Режим:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/slovak.lang b/apps/lang/slovak.lang
index 94a175e..4529efe 100644
--- a/apps/lang/slovak.lang
+++ b/apps/lang/slovak.lang
@@ -7888,7 +7888,7 @@
*: "Režim:"
</dest>
<voice>
- *: ""
+ *: "Režim:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/slovenscina.lang b/apps/lang/slovenscina.lang
index 14ef2c9..de8e509 100644
--- a/apps/lang/slovenscina.lang
+++ b/apps/lang/slovenscina.lang
@@ -6970,7 +6970,7 @@
*: "Mode:"
</dest>
<voice>
- *: ""
+ *: "Mode:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/srpski.lang b/apps/lang/srpski.lang
index 179e6963..271aacd 100644
--- a/apps/lang/srpski.lang
+++ b/apps/lang/srpski.lang
@@ -7872,7 +7872,7 @@
*: "Мод:"
</dest>
<voice>
- *: ""
+ *: "Мод:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/svenska.lang b/apps/lang/svenska.lang
index 22a9539..41499ee 100644
--- a/apps/lang/svenska.lang
+++ b/apps/lang/svenska.lang
@@ -7891,7 +7891,7 @@
*: "Läge:"
</dest>
<voice>
- *: ""
+ *: "Läge:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/tagalog.lang b/apps/lang/tagalog.lang
index 816c039..d7c329c 100644
--- a/apps/lang/tagalog.lang
+++ b/apps/lang/tagalog.lang
@@ -8227,7 +8227,7 @@
*: "Paraan:"
</dest>
<voice>
- *: ""
+ *: "Paraan:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/thai.lang b/apps/lang/thai.lang
index 0fceae4..7018867 100644
--- a/apps/lang/thai.lang
+++ b/apps/lang/thai.lang
@@ -7853,7 +7853,7 @@
*: "โหมด:"
</dest>
<voice>
- *: ""
+ *: "โหมด:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/ukrainian.lang b/apps/lang/ukrainian.lang
index d8a6c3b..9a9e778 100644
--- a/apps/lang/ukrainian.lang
+++ b/apps/lang/ukrainian.lang
@@ -7881,7 +7881,7 @@
*: "Режим:"
</dest>
<voice>
- *: ""
+ *: "Режим:"
</voice>
</phrase>
<phrase>
diff --git a/apps/lang/walon.lang b/apps/lang/walon.lang
index 46b0cfb..45fb041 100644
--- a/apps/lang/walon.lang
+++ b/apps/lang/walon.lang
@@ -7892,7 +7892,7 @@
*: "Môde:"
</dest>
<voice>
- *: ""
+ *: "Môde:"
</voice>
</phrase>
<phrase>
diff --git a/apps/menus/radio_menu.c b/apps/menus/radio_menu.c
index e787aaa..8ab7151 100644
--- a/apps/menus/radio_menu.c
+++ b/apps/menus/radio_menu.c
@@ -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 @@
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 @@
}
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,