summaryrefslogtreecommitdiff
path: root/apps/playlist.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-09-18 14:08:05 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-09-18 14:08:05 +0000
commit505eca76e661df673ae3ff77863936e6a533f663 (patch)
treec09f07ca4eaf5c4433af9a4365ccb136e02f3d5a /apps/playlist.c
parenta24bd9a894c1d8594e99f95e470cbd8296e5b3d2 (diff)
downloadrockbox-505eca76e661df673ae3ff77863936e6a533f663.tar.gz
rockbox-505eca76e661df673ae3ff77863936e6a533f663.zip
New language/string handling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2327 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist.c')
-rw-r--r--apps/playlist.c16
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
38struct playlist_info playlist; 40struct 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();