summaryrefslogtreecommitdiffstats
path: root/mp_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'mp_msg.c')
-rw-r--r--mp_msg.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/mp_msg.c b/mp_msg.c
index 6be0d01e68..7ba3116a6b 100644
--- a/mp_msg.c
+++ b/mp_msg.c
@@ -16,7 +16,21 @@ static int mp_msg_levels[MSGT_MAX]; // verbose level of this module
#if 1
-void mp_msg_init(int verbose){
+void mp_msg_init(){
+#ifdef USE_I18N
+ fprintf(stdout, "Using GNU internationalization\n");
+ fprintf(stdout, "Original domain: %s\n", textdomain(NULL));
+ fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
+ setlocale(LC_ALL, ""); /* set from the environment variables */
+ bindtextdomain("mplayer", PREFIX"/share/locale");
+ textdomain("mplayer");
+ fprintf(stdout, "Current domain: %s\n", textdomain(NULL));
+ fprintf(stdout, "Current dirname: %s\n", bindtextdomain(textdomain(NULL),NULL));
+#endif
+ mp_msg_set_level(MSGL_STATUS);
+}
+
+void mp_msg_set_level(int verbose){
int i;
for(i=0;i<MSGT_MAX;i++){
mp_msg_levels[i]=verbose;