diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 76ce81b51a..b81aed8763 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -35,6 +35,8 @@ | |||
35 | #include "widgets.h" | 35 | #include "widgets.h" |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #include "lang.h" | ||
39 | |||
38 | struct playlist_info playlist; | 40 | struct playlist_info playlist; |
39 | 41 | ||
40 | #define PLAYLIST_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH*MAX_FILES_IN_DIR) | 42 | #define PLAYLIST_BUFFER_SIZE (AVERAGE_FILENAME_LENGTH*MAX_FILES_IN_DIR) |
@@ -209,7 +211,7 @@ int play_list(char *dir, /* "current directory" */ | |||
209 | /* If file is NULL, the list is in RAM */ | 211 | /* If file is NULL, the list is in RAM */ |
210 | if(file) { | 212 | if(file) { |
211 | lcd_clear_display(); | 213 | lcd_clear_display(); |
212 | lcd_puts(0,0,"Loading..."); | 214 | lcd_puts(0,0,str(LANG_PLAYLIST_LOAD)); |
213 | status_draw(); | 215 | status_draw(); |
214 | lcd_update(); | 216 | lcd_update(); |
215 | playlist.in_ram = false; | 217 | playlist.in_ram = false; |
@@ -273,7 +275,7 @@ int play_list(char *dir, /* "current directory" */ | |||
273 | } | 275 | } |
274 | 276 | ||
275 | if(!playlist.in_ram) { | 277 | if(!playlist.in_ram) { |
276 | lcd_puts(0,0,"Playing... "); | 278 | lcd_puts(0,0,str(LANG_PLAYLIST_PLAY)); |
277 | status_draw(); | 279 | status_draw(); |
278 | lcd_update(); | 280 | lcd_update(); |
279 | } | 281 | } |
@@ -350,8 +352,8 @@ void add_indices_to_playlist(void) | |||
350 | close(fd); | 352 | close(fd); |
351 | 353 | ||
352 | lcd_clear_display(); | 354 | lcd_clear_display(); |
353 | lcd_puts(0,0,"Playlist"); | 355 | lcd_puts(0,0,str(LANG_PLAYINDICES_PLAYLIST)); |
354 | lcd_puts(0,1,"buffer full"); | 356 | lcd_puts(0,1,str(LANG_PLAYINDICES_BUFFER)); |
355 | lcd_update(); | 357 | lcd_update(); |
356 | sleep(HZ*2); | 358 | sleep(HZ*2); |
357 | lcd_clear_display(); | 359 | lcd_clear_display(); |
@@ -363,7 +365,8 @@ void add_indices_to_playlist(void) | |||
363 | if(!playlist.in_ram) { | 365 | if(!playlist.in_ram) { |
364 | if ( current_tick >= next_tick ) { | 366 | if ( current_tick >= next_tick ) { |
365 | next_tick = current_tick + HZ; | 367 | next_tick = current_tick + HZ; |
366 | snprintf(line, sizeof line, "%d files", | 368 | snprintf(line, sizeof line, |
369 | str(LANG_PLAYINDICES_AMOUNT), | ||
367 | playlist.amount); | 370 | playlist.amount); |
368 | lcd_puts(0,1,line); | 371 | lcd_puts(0,1,line); |
369 | status_draw(); | 372 | status_draw(); |
@@ -380,7 +383,8 @@ void add_indices_to_playlist(void) | |||
380 | break; | 383 | break; |
381 | } | 384 | } |
382 | if(!playlist.in_ram) { | 385 | if(!playlist.in_ram) { |
383 | snprintf(line, sizeof line, "%d files", playlist.amount); | 386 | snprintf(line, sizeof line, str(LANG_PLAYINDICES_AMOUNT), |
387 | playlist.amount); | ||
384 | lcd_puts(0,1,line); | 388 | lcd_puts(0,1,line); |
385 | status_draw(); | 389 | status_draw(); |
386 | lcd_update(); | 390 | lcd_update(); |