diff --git a/src/screen_help.c b/src/screen_help.c
index a501aad045281cf818ab23c6e516c704879354aa..faa9603e7aea0aaf1db978cd930852bc3f546f61 100644 (file)
--- a/src/screen_help.c
+++ b/src/screen_help.c
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2009 The Music Player Daemon Project
+ * (c) 2004-2010 The Music Player Daemon Project
* Project homepage: http://musicpd.org
* This program is free software; you can redistribute it and/or modify
{ 0, CMD_SCREEN_PREVIOUS,NULL },
{ 0, CMD_SCREEN_NEXT, NULL },
- { 0, CMD_SCREEN_SWAP, NULL },
+ { 0, CMD_SCREEN_SWAP, NULL },
{ 0, CMD_SCREEN_HELP, NULL },
{ 0, CMD_SCREEN_PLAY, NULL },
{ 0, CMD_SCREEN_FILE, NULL },
{ 0, CMD_LIST_JUMP, NULL },
{ 0, CMD_TOGGLE_FIND_WRAP, NULL },
{ 0, CMD_LOCATE, NULL },
+#ifdef ENABLE_SONG_SCREEN
{ 0, CMD_SCREEN_SONG, NULL },
+#endif
{ 0, CMD_NONE, NULL },
{ 0, CMD_QUIT, NULL },
{ 0, CMD_INTERRUPT, N_("Interrupt retrieval") },
{ 0, CMD_LYRICS_UPDATE, N_("Download lyrics for currently playing song") },
{ 0, CMD_SAVE_PLAYLIST, N_("Save lyrics") },
+ { 0, CMD_DELETE, N_("Delete saved lyrics") },
#endif
#ifdef ENABLE_OUTPUTS_SCREEN
{ 0, CMD_NONE, NULL },
static void
help_init(WINDOW *w, int cols, int rows)
{
- lw = list_window_init(w, cols, rows);
+ lw = list_window_init(w, cols, rows);
lw->hide_cursor = true;
list_window_set_length(lw, G_N_ELEMENTS(help_text));
}
static void
help_exit(void)
{
- list_window_free(lw);
+ list_window_free(lw);
}
if (row->command == CMD_NONE) {
if (row->text != NULL)
- mvwaddstr(w, y, 6, row->text);
+ mvwaddstr(w, y, 6, _(row->text));
else if (row->highlight == 2)
mvwhline(w, y, 3, '-', width - 6);
} else {