Code

Added initial i18n support
[ncmpc.git] / src / screen_utils.c
index f8dfa4c1d25b6781b95ca979396910660302d0ee..080b118b13fee989ca00f230fc21f8809ab50c4e 100644 (file)
@@ -23,6 +23,7 @@
 #include <ncurses.h>
 
 #include "config.h"
+#include "ncmpc.h"
 #include "libmpdclient.h"
 #include "mpc.h"
 #include "support.h"
@@ -32,8 +33,8 @@
 #include "colors.h"
 #include "screen.h"
 
-#define FIND_PROMPT  "Find: "
-#define RFIND_PROMPT "Find backward: "
+#define FIND_PROMPT  _("Find: ")
+#define RFIND_PROMPT _("Find backward: ")
 
 int
 screen_getch(WINDOW *w, char *prompt)
@@ -140,7 +141,7 @@ screen_find(screen_t *screen,
        }
       else
        {
-         screen_status_printf("Unable to find \'%s\'", screen->findbuf);
+         screen_status_printf(_("Unable to find \'%s\'"), screen->findbuf);
          beep();
        }
       return 1;