summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/eq_menu.c8
-rw-r--r--apps/menus/main_menu.c26
-rw-r--r--apps/menus/playback_menu.c2
-rw-r--r--apps/menus/playlist_menu.c4
-rw-r--r--apps/menus/recording_menu.c20
-rw-r--r--apps/menus/settings_menu.c4
6 files changed, 31 insertions, 33 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index 3248f10f0e..d16ef6912d 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -281,8 +281,8 @@ static int draw_eq_slider(struct screen * screen, int x, int y,
281#if NB_SCREENS > 1 281#if NB_SCREENS > 1
282 if (screen->screen_type == SCREEN_REMOTE) { 282 if (screen->screen_type == SCREEN_REMOTE) {
283 if (mode == GAIN) { 283 if (mode == GAIN) {
284 screen->putsxy(current_x, y + 2, str(LANG_EQUALIZER_BAND_GAIN)); 284 screen->putsxy(current_x, y + 2, str(LANG_GAIN));
285 screen->getstringsize(str(LANG_EQUALIZER_BAND_GAIN), &w, &h); 285 screen->getstringsize(str(LANG_GAIN), &w, &h);
286 } else if (mode == CUTOFF) { 286 } else if (mode == CUTOFF) {
287 screen->putsxy(current_x, y + 2, str(LANG_EQUALIZER_BAND_CUTOFF)); 287 screen->putsxy(current_x, y + 2, str(LANG_EQUALIZER_BAND_CUTOFF));
288 screen->getstringsize(str(LANG_EQUALIZER_BAND_CUTOFF), &w, &h); 288 screen->getstringsize(str(LANG_EQUALIZER_BAND_CUTOFF), &w, &h);
@@ -454,7 +454,7 @@ bool eq_menu_graphical(void)
454 voice_unit = UNIT_DB; 454 voice_unit = UNIT_DB;
455 455
456 snprintf(buf, sizeof(buf), str(LANG_SYSFONT_EQUALIZER_EDIT_MODE), 456 snprintf(buf, sizeof(buf), str(LANG_SYSFONT_EQUALIZER_EDIT_MODE),
457 str(LANG_SYSFONT_EQUALIZER_BAND_GAIN)); 457 str(LANG_SYSFONT_GAIN));
458 458
459 screens[SCREEN_MAIN].putsxy(2, y, buf); 459 screens[SCREEN_MAIN].putsxy(2, y, buf);
460 } else if (mode == CUTOFF) { 460 } else if (mode == CUTOFF) {
@@ -596,7 +596,7 @@ static bool eq_save_preset(void)
596 break; 596 break;
597 } 597 }
598 else { 598 else {
599 gui_syncsplash(HZ, str(LANG_MENU_SETTING_CANCEL)); 599 gui_syncsplash(HZ, str(LANG_CANCEL));
600 return false; 600 return false;
601 } 601 }
602 } 602 }
diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c
index 7891a5c8a8..9529d93027 100644
--- a/apps/menus/main_menu.c
+++ b/apps/menus/main_menu.c
@@ -67,12 +67,12 @@ int browse_folder(void *param)
67 67
68static int reset_settings(void) 68static int reset_settings(void)
69{ 69{
70 unsigned char *lines[]={str(LANG_RESET_ASK_RECORDER)}; 70 unsigned char *lines[]={str(LANG_RESET_ASK)};
71 unsigned char *yes_lines[]={ 71 unsigned char *yes_lines[]={
72 str(LANG_RESET_DONE_SETTING), 72 str(LANG_SETTINGS),
73 str(LANG_RESET_DONE_CLEAR) 73 str(LANG_RESET_DONE_CLEAR)
74 }; 74 };
75 unsigned char *no_lines[]={yes_lines[0], str(LANG_RESET_DONE_CANCEL)}; 75 unsigned char *no_lines[]={yes_lines[0], str(LANG_CANCEL)};
76 struct text_message message={(char **)lines, 1}; 76 struct text_message message={(char **)lines, 1};
77 struct text_message yes_message={(char **)yes_lines, 2}; 77 struct text_message yes_message={(char **)yes_lines, 2};
78 struct text_message no_message={(char **)no_lines, 2}; 78 struct text_message no_message={(char **)no_lines, 2};
@@ -186,9 +186,11 @@ static bool show_info(void)
186 talk_value(battery_level(), UNIT_PERCENT, true); 186 talk_value(battery_level(), UNIT_PERCENT, true);
187#if CONFIG_CHARGING >= CHARGING_MONITOR 187#if CONFIG_CHARGING >= CHARGING_MONITOR
188 if (charge_state == CHARGING) 188 if (charge_state == CHARGING)
189 talk_id(LANG_BATTERY_CHARGE, true); 189 talk_id(LANG_BATTERY_CHARGE, true);
190#if CONFIG_CHARGING == CHARGING_CONTROL
190 else if (charge_state == TOPOFF) 191 else if (charge_state == TOPOFF)
191 talk_id(LANG_BATTERY_TOPOFF_CHARGE, true); 192 talk_id(LANG_BATTERY_TOPOFF_CHARGE, true);
193#endif
192 else if (charge_state == TRICKLE) 194 else if (charge_state == TRICKLE)
193 talk_id(LANG_BATTERY_TRICKLE_CHARGE, true); 195 talk_id(LANG_BATTERY_TRICKLE_CHARGE, true);
194#endif 196#endif
@@ -252,13 +254,9 @@ static bool show_info(void)
252 int integer = buflen / 1000; 254 int integer = buflen / 1000;
253 int decimal = buflen % 1000; 255 int decimal = buflen % 1000;
254 256
255#ifdef HAVE_LCD_CHARCELLS 257 snprintf(s, sizeof(s), (char *)str(LANG_BUFFER_STAT),
256 snprintf(s, sizeof(s), (char *)str(LANG_BUFFER_STAT_PLAYER),
257 integer, decimal); 258 integer, decimal);
258#else 259
259 snprintf(s, sizeof(s), (char *)str(LANG_BUFFER_STAT_RECORDER),
260 integer, decimal);
261#endif
262 FOR_NB_SCREENS(i) 260 FOR_NB_SCREENS(i)
263 screens[i].puts_scroll(0, y, (unsigned char *)s); 261 screens[i].puts_scroll(0, y, (unsigned char *)s);
264 y++; 262 y++;
@@ -341,7 +339,7 @@ static bool show_info(void)
341 339
342#ifndef SIMULATOR 340#ifndef SIMULATOR
343 case ACTION_STD_OK: 341 case ACTION_STD_OK:
344 gui_syncsplash(0, str(LANG_DIRCACHE_BUILDING)); 342 gui_syncsplash(0, str(LANG_SCANNING_DISK));
345 fat_recalc_free(IF_MV(0)); 343 fat_recalc_free(IF_MV(0));
346#ifdef HAVE_MULTIVOLUME 344#ifdef HAVE_MULTIVOLUME
347 if (fat_ismounted(1)) 345 if (fat_ismounted(1))
@@ -359,7 +357,7 @@ static bool show_info(void)
359 } 357 }
360 return false; 358 return false;
361} 359}
362MENUITEM_FUNCTION(show_info_item, 0, ID2P(LANG_INFO_MENU), 360MENUITEM_FUNCTION(show_info_item, 0, ID2P(LANG_ROCKBOX_INFO),
363 (menu_function)show_info, NULL, NULL, Icon_NOICON); 361 (menu_function)show_info, NULL, NULL, Icon_NOICON);
364 362
365 363
@@ -406,7 +404,7 @@ MENUITEM_FUNCTION(simulate_usb_item, 0, ID2P(LANG_USB),
406 (menu_function)simulate_usb, NULL, NULL, Icon_NOICON); 404 (menu_function)simulate_usb, NULL, NULL, Icon_NOICON);
407#endif 405#endif
408 406
409MAKE_MENU(info_menu, ID2P(LANG_INFO), 0, Icon_Questionmark, 407MAKE_MENU(info_menu, ID2P(LANG_SYSTEM), 0, Icon_Questionmark,
410 &show_info_item, &show_credits_item, &show_runtime_item, 408 &show_info_item, &show_credits_item, &show_runtime_item,
411 &sleep_timer_call, &debug_menu_item 409 &sleep_timer_call, &debug_menu_item
412#ifdef SIMULATOR 410#ifdef SIMULATOR
@@ -440,7 +438,7 @@ int mainmenu_callback(int action,const struct menu_item_ex *this_item)
440#else 438#else
441#define mainmenu_callback NULL 439#define mainmenu_callback NULL
442#endif 440#endif
443MAKE_MENU(main_menu_, ID2P(LANG_SETTINGS_MENU), mainmenu_callback, 441MAKE_MENU(main_menu_, ID2P(LANG_SETTINGS), mainmenu_callback,
444 Icon_Submenu_Entered, 442 Icon_Submenu_Entered,
445 &sound_settings, 443 &sound_settings,
446 &settings_menu_item, &manage_settings, &browse_themes, 444 &settings_menu_item, &manage_settings, &browse_themes,
diff --git a/apps/menus/playback_menu.c b/apps/menus/playback_menu.c
index c1de862cd0..17e54d7771 100644
--- a/apps/menus/playback_menu.c
+++ b/apps/menus/playback_menu.c
@@ -167,7 +167,7 @@ MENUITEM_SETTING(cuesheet, &global_settings.cuesheet, cuesheet_callback);
167MENUITEM_SETTING(unplug_mode, &global_settings.unplug_mode, NULL); 167MENUITEM_SETTING(unplug_mode, &global_settings.unplug_mode, NULL);
168MENUITEM_SETTING(unplug_rw, &global_settings.unplug_rw, NULL); 168MENUITEM_SETTING(unplug_rw, &global_settings.unplug_rw, NULL);
169MENUITEM_SETTING(unplug_autoresume, &global_settings.unplug_autoresume, NULL); 169MENUITEM_SETTING(unplug_autoresume, &global_settings.unplug_autoresume, NULL);
170MAKE_MENU(unplug_menu, ID2P(LANG_UNPLUG), 0, Icon_NOICON, 170MAKE_MENU(unplug_menu, ID2P(LANG_HEADPHONE_UNPLUG), 0, Icon_NOICON,
171 &unplug_mode, &unplug_rw, &unplug_autoresume); 171 &unplug_mode, &unplug_rw, &unplug_autoresume);
172#endif 172#endif
173 173
diff --git a/apps/menus/playlist_menu.c b/apps/menus/playlist_menu.c
index b942dab3ee..d66a71caba 100644
--- a/apps/menus/playlist_menu.c
+++ b/apps/menus/playlist_menu.c
@@ -75,10 +75,10 @@ MENUITEM_FUNCTION(catalog, 0, ID2P(LANG_CATALOG),
75MENUITEM_SETTING(recursive_dir_insert, &global_settings.recursive_dir_insert, NULL); 75MENUITEM_SETTING(recursive_dir_insert, &global_settings.recursive_dir_insert, NULL);
76MENUITEM_SETTING(warn_on_erase, &global_settings.warnon_erase_dynplaylist, NULL); 76MENUITEM_SETTING(warn_on_erase, &global_settings.warnon_erase_dynplaylist, NULL);
77 77
78MAKE_MENU(playlist_settings, ID2P(LANG_PLAYLIST_MENU), NULL, 78MAKE_MENU(playlist_settings, ID2P(LANG_PLAYLISTS), NULL,
79 Icon_Playlist, 79 Icon_Playlist,
80 &recursive_dir_insert, &warn_on_erase); 80 &recursive_dir_insert, &warn_on_erase);
81MAKE_MENU(playlist_options, ID2P(LANG_PLAYLIST_MENU), NULL, 81MAKE_MENU(playlist_options, ID2P(LANG_PLAYLISTS), NULL,
82 Icon_Playlist, 82 Icon_Playlist,
83 &create_playlist_item, &view_playlist, &save_playlist, &catalog); 83 &create_playlist_item, &view_playlist, &save_playlist, &catalog);
84 84
diff --git a/apps/menus/recording_menu.c b/apps/menus/recording_menu.c
index 3fdaa02f3d..d53d42ddfa 100644
--- a/apps/menus/recording_menu.c
+++ b/apps/menus/recording_menu.c
@@ -76,7 +76,7 @@ static int recsource_func(void)
76 HAVE_MIC_REC_([AUDIO_SRC_MIC] 76 HAVE_MIC_REC_([AUDIO_SRC_MIC]
77 = { STR(LANG_RECORDING_SRC_MIC) },) 77 = { STR(LANG_RECORDING_SRC_MIC) },)
78 HAVE_LINE_REC_([AUDIO_SRC_LINEIN] 78 HAVE_LINE_REC_([AUDIO_SRC_LINEIN]
79 = { STR(LANG_RECORDING_SRC_LINE) },) 79 = { STR(LANG_LINE_IN) },)
80 HAVE_SPDIF_REC_([AUDIO_SRC_SPDIF] 80 HAVE_SPDIF_REC_([AUDIO_SRC_SPDIF]
81 = { STR(LANG_RECORDING_SRC_DIGITAL) },) 81 = { STR(LANG_RECORDING_SRC_DIGITAL) },)
82 HAVE_FMRADIO_REC_([AUDIO_SRC_FMRADIO] 82 HAVE_FMRADIO_REC_([AUDIO_SRC_FMRADIO]
@@ -217,7 +217,7 @@ static int recchannels_func(void)
217 [CHN_MODE_MONO] = { STR(LANG_CHANNEL_MONO) } 217 [CHN_MODE_MONO] = { STR(LANG_CHANNEL_MONO) }
218 }; 218 };
219#if CONFIG_CODEC == MAS3587F 219#if CONFIG_CODEC == MAS3587F
220 return set_option(str(LANG_RECORDING_CHANNELS), 220 return set_option(str(LANG_CHANNELS),
221 &global_settings.rec_channels, INT, 221 &global_settings.rec_channels, INT,
222 names, CHN_NUM_MODES, NULL ); 222 names, CHN_NUM_MODES, NULL );
223#endif /* CONFIG_CODEC == MAS3587F */ 223#endif /* CONFIG_CODEC == MAS3587F */
@@ -245,7 +245,7 @@ static int recchannels_func(void)
245 245
246 make_options_from_indexes(names, table, n_opts, opts); 246 make_options_from_indexes(names, table, n_opts, opts);
247 247
248 ret = set_option(str(LANG_RECORDING_CHANNELS), &rec_channels, 248 ret = set_option(str(LANG_CHANNELS), &rec_channels,
249 INT, opts, n_opts, NULL ); 249 INT, opts, n_opts, NULL );
250 250
251 if (!ret) 251 if (!ret)
@@ -254,7 +254,7 @@ static int recchannels_func(void)
254 return ret; 254 return ret;
255#endif /* CONFIG_CODEC == SWCODEC */ 255#endif /* CONFIG_CODEC == SWCODEC */
256} 256}
257MENUITEM_FUNCTION(recchannels, 0, ID2P(LANG_RECORDING_CHANNELS), 257MENUITEM_FUNCTION(recchannels, 0, ID2P(LANG_CHANNELS),
258 recchannels_func, NULL, NULL, Icon_Menu_setting); 258 recchannels_func, NULL, NULL, Icon_Menu_setting);
259 259
260#if CONFIG_CODEC == SWCODEC 260#if CONFIG_CODEC == SWCODEC
@@ -438,7 +438,7 @@ bool rectrigger(void)
438 static const unsigned char *trigger_modes[] = { 438 static const unsigned char *trigger_modes[] = {
439 ID2P(LANG_OFF), 439 ID2P(LANG_OFF),
440 ID2P(LANG_RECORD_TRIG_NOREARM), 440 ID2P(LANG_RECORD_TRIG_NOREARM),
441 ID2P(LANG_RECORD_TRIG_REARM) 441 ID2P(LANG_REPEAT)
442 }; 442 };
443 443
444#define PRERECORD_TIMES_COUNT 31 444#define PRERECORD_TIMES_COUNT 31
@@ -452,18 +452,18 @@ bool rectrigger(void)
452#define TRIGGER_TYPE_COUNT 3 452#define TRIGGER_TYPE_COUNT 3
453 static const unsigned char *trigger_types[] = { 453 static const unsigned char *trigger_types[] = {
454 ID2P(LANG_RECORD_TRIGGER_STOP), 454 ID2P(LANG_RECORD_TRIGGER_STOP),
455 ID2P(LANG_RECORD_TRIGGER_PAUSE), 455 ID2P(LANG_PAUSE),
456 ID2P(LANG_RECORD_TRIGGER_NEWFILESTP), 456 ID2P(LANG_RECORD_TRIGGER_NEWFILESTP),
457 }; 457 };
458 458
459 static const unsigned char *option_name[] = { 459 static const unsigned char *option_name[] = {
460 [TRIGGER_MODE] = ID2P(LANG_RECORD_TRIGGER_MODE), 460 [TRIGGER_MODE] = ID2P(LANG_RECORD_TRIGGER),
461 [TRIGGER_TYPE] = ID2P(LANG_RECORD_TRIGGER_TYPE), 461 [TRIGGER_TYPE] = ID2P(LANG_RECORD_TRIGGER_TYPE),
462 [PRERECORD_TIME] = ID2P(LANG_RECORD_PRERECORD_TIME), 462 [PRERECORD_TIME] = ID2P(LANG_RECORD_PRERECORD_TIME),
463 [START_THRESHOLD] = ID2P(LANG_RECORD_START_THRESHOLD), 463 [START_THRESHOLD] = ID2P(LANG_RECORD_START_THRESHOLD),
464 [START_DURATION] = ID2P(LANG_RECORD_MIN_DURATION), 464 [START_DURATION] = ID2P(LANG_MIN_DURATION),
465 [STOP_THRESHOLD] = ID2P(LANG_RECORD_STOP_THRESHOLD), 465 [STOP_THRESHOLD] = ID2P(LANG_RECORD_STOP_THRESHOLD),
466 [STOP_POSTREC] = ID2P(LANG_RECORD_STOP_POSTREC), 466 [STOP_POSTREC] = ID2P(LANG_MIN_DURATION),
467 [STOP_GAP] = ID2P(LANG_RECORD_STOP_GAP) 467 [STOP_GAP] = ID2P(LANG_RECORD_STOP_GAP)
468 }; 468 };
469 469
@@ -637,7 +637,7 @@ bool rectrigger(void)
637 637
638 switch (button) { 638 switch (button) {
639 case ACTION_STD_CANCEL: 639 case ACTION_STD_CANCEL:
640 gui_syncsplash(50, str(LANG_MENU_SETTING_CANCEL)); 640 gui_syncsplash(50, str(LANG_CANCEL));
641 global_settings.rec_start_thres = old_start_thres; 641 global_settings.rec_start_thres = old_start_thres;
642 global_settings.rec_start_duration = old_start_duration; 642 global_settings.rec_start_duration = old_start_duration;
643 global_settings.rec_prerecord_time = old_prerecord_time; 643 global_settings.rec_prerecord_time = old_prerecord_time;
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c
index cd2950665c..1e09abed5d 100644
--- a/apps/menus/settings_menu.c
+++ b/apps/menus/settings_menu.c
@@ -228,7 +228,7 @@ static int timedate_set(void)
228 tm.tm_year = YEAR-1900; 228 tm.tm_year = YEAR-1900;
229 } 229 }
230 230
231 result = (int)set_time_screen(str(LANG_TIME), &tm); 231 result = (int)set_time_screen(str(LANG_SET_TIME), &tm);
232 232
233 if(tm.tm_year != -1) { 233 if(tm.tm_year != -1) {
234 set_time(&tm); 234 set_time(&tm);
@@ -236,7 +236,7 @@ static int timedate_set(void)
236 return result; 236 return result;
237} 237}
238 238
239MENUITEM_FUNCTION(time_set, 0, ID2P(LANG_TIME), 239MENUITEM_FUNCTION(time_set, 0, ID2P(LANG_SET_TIME),
240 timedate_set, NULL, NULL, Icon_NOICON); 240 timedate_set, NULL, NULL, Icon_NOICON);
241MENUITEM_SETTING(timeformat, &global_settings.timeformat, NULL); 241MENUITEM_SETTING(timeformat, &global_settings.timeformat, NULL);
242MAKE_MENU(time_menu, ID2P(LANG_TIME_MENU), 0, Icon_NOICON, &time_set, &timeformat); 242MAKE_MENU(time_menu, ID2P(LANG_TIME_MENU), 0, Icon_NOICON, &time_set, &timeformat);