diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/mp_msg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/mp_msg.c b/core/mp_msg.c index d0cce8e064..2e6f148438 100644 --- a/core/mp_msg.c +++ b/core/mp_msg.c @@ -26,7 +26,7 @@ #include "osdep/getch2.h" #include "osdep/io.h" -#ifdef CONFIG_TRANSLATION +#ifdef CONFIG_GETTEXT #include <locale.h> #include <libintl.h> #endif @@ -86,7 +86,7 @@ void mp_msg_init(void){ for(i=0;i<MSGT_MAX;i++) mp_msg_levels[i] = -2; mp_msg_cancolor = isatty(fileno(stdout)); mp_msg_levels[MSGT_IDENTIFY] = -1; // no -identify output by default -#ifdef CONFIG_TRANSLATION +#ifdef CONFIG_GETTEXT textdomain("mpv"); char *localedir = getenv("MPV_LOCALEDIR"); if (localedir == NULL && strlen(MPLAYER_LOCALEDIR)) @@ -249,7 +249,7 @@ void mp_msg(int mod, int lev, const char *format, ...) char *mp_gtext(const char *string) { -#ifdef CONFIG_TRANSLATION +#ifdef CONFIG_GETTEXT /* gettext expects the global locale to be set with * setlocale(LC_ALL, ""). However doing that would suck for a * couple of reasons (locale stuff is badly designed and sucks in |