summaryrefslogtreecommitdiffstats
path: root/mp_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp_msg.c')
-rw-r--r--mp_msg.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/mp_msg.c b/mp_msg.c
index fdf6d363e3..9265d6271f 100644
--- a/mp_msg.c
+++ b/mp_msg.c
@@ -31,14 +31,18 @@ static int mp_msg_levels[MSGT_MAX]; // verbose level of this module
void mp_msg_init(){
#ifdef USE_I18N
+#ifdef MP_DEBUG
fprintf(stdout, "Using GNU internationalization\n");
fprintf(stdout, "Original domain: %s\n", textdomain(NULL));
fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
+#endif
setlocale(LC_ALL, ""); /* set from the environment variables */
bindtextdomain("mplayer", PREFIX"/share/locale");
textdomain("mplayer");
+#ifdef MP_DEBUG
fprintf(stdout, "Current domain: %s\n", textdomain(NULL));
- fprintf(stdout, "Current dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
+ fprintf(stdout, "Current dirname: %s\n\n", bindtextdomain(textdomain(NULL),NULL));
+#endif
#endif
mp_msg_set_level(MSGL_STATUS);
}
@@ -90,7 +94,8 @@ void mp_msg_c( int x, const char *format, ... ){
#endif
#ifdef MSG_USE_COLORS
-#if 1
+/* that's only a silly color test */
+#ifdef MP_DEBUG
{ int c;
static int flag=1;
if(flag)