diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-05 18:51:26 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-05 18:51:26 +0000 |
commit | 9b2d077c7f5dca6e4013f04318f7b83531fac387 (patch) | |
tree | fa6ea3f9e8ba86e744cfe53ea1a6d58a9e63ecf9 /src/support.c | |
parent | 225e70a38b68cba219aeb7cb239f426ca739ed7d (diff) | |
download | mpd-9b2d077c7f5dca6e4013f04318f7b83531fac387.tar.gz mpd-9b2d077c7f5dca6e4013f04318f7b83531fac387.tar.xz mpd-9b2d077c7f5dca6e4013f04318f7b83531fac387.zip |
Added initial i18n support
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/support.c')
-rw-r--r-- | src/support.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/support.c b/src/support.c index d292e8462..8cb4ecafd 100644 --- a/src/support.c +++ b/src/support.c @@ -23,18 +23,13 @@ #include <glib.h> #include "config.h" +#include "ncmpc.h" #include "support.h" #ifdef HAVE_LOCALE_H #include <locale.h> #endif -#ifdef DEBUG -#define D(x) x -#else -#define D(x) -#endif - #define BUFSIZE 1024 extern void screen_status_printf(char *format, ...); @@ -174,7 +169,7 @@ utf8_to_locale(char *utf8str) &error); if( error ) { - screen_status_printf("Error: Unable to convert characters to %s", + screen_status_printf(_("Error: Unable to convert characters to %s"), charset); D(g_printerr("utf8_to_locale(): %s\n", error->message)); g_error_free(error); @@ -203,7 +198,7 @@ locale_to_utf8(char *localestr) &error); if( error ) { - screen_status_printf("Error: Unable to convert characters to UTF-8"); + screen_status_printf(_("Error: Unable to convert characters to UTF-8")); D(g_printerr("locale_to_utf8: %s\n", error->message)); g_error_free(error); return g_strdup(localestr); |