[Mplayer-cvslog] CVS: main mp_msg.c,1.11,1.12
Alex Beregszaszi
alex at mplayer.dev.hu
Wed Mar 20 16:14:45 CET 2002
Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv9895
Modified Files:
mp_msg.c
Log Message:
splitted mp_msg_init and mp_msg_set_level and added i18n support to init
Index: mp_msg.c
===================================================================
RCS file: /cvsroot/mplayer/main/mp_msg.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- mp_msg.c 15 Mar 2002 21:08:14 -0000 1.11
+++ mp_msg.c 20 Mar 2002 15:14:42 -0000 1.12
@@ -16,7 +16,21 @@
#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;
More information about the MPlayer-cvslog
mailing list