[Mplayer-cvslog] CVS: main/Gui/mplayer/gtk about.h,1.3,1.4 mb.h,1.2,1.3 sb.h,1.4,1.5

Zoltan Ponekker pontscho at mplayer.dev.hu
Wed Sep 12 17:47:20 CEST 2001


Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mplayer:/var/tmp.root/cvs-serv25896/Gui/mplayer/gtk

Modified Files:
	about.h mb.h sb.h 
Log Message:
add to multi lang support

Index: about.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/about.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- about.h	12 Sep 2001 15:08:53 -0000	1.3
+++ about.h	12 Sep 2001 15:47:18 -0000	1.4
@@ -33,10 +33,10 @@
   accel_group=gtk_accel_group_new( );
 
   About=gtk_window_new( GTK_WINDOW_TOPLEVEL );
-  gtk_widget_set_name( About,"About" );
-  gtk_object_set_data( GTK_OBJECT( About ),"About",About );
+  gtk_widget_set_name( About,MSGTR_About );
+  gtk_object_set_data( GTK_OBJECT( About ),MSGTR_About,About );
   gtk_widget_set_usize( About,340,415 );
-  gtk_window_set_title( GTK_WINDOW( About ),"MPlayer About" );
+  gtk_window_set_title( GTK_WINDOW( About ),MSGTR_About );
   gtk_window_set_position( GTK_WINDOW( About ),GTK_WIN_POS_CENTER );
   gtk_window_set_policy( GTK_WINDOW( About ),TRUE,FALSE,FALSE );
 
@@ -183,10 +183,10 @@
   gtk_widget_show( hbuttonbox1 );
   gtk_box_pack_start( GTK_BOX( vbox1 ),hbuttonbox1,FALSE,FALSE,0 );
 
-  Ok=gtk_button_new_with_label( "Ok" );
-  gtk_widget_set_name( Ok,"Ok" );
+  Ok=gtk_button_new_with_label( MSGTR_Ok );
+  gtk_widget_set_name( Ok,MSGTR_Ok );
   gtk_widget_ref( Ok );
-  gtk_object_set_data_full( GTK_OBJECT( About ),"Ok",Ok,( GtkDestroyNotify ) gtk_widget_unref );
+  gtk_object_set_data_full( GTK_OBJECT( About ),MSGTR_Ok,Ok,( GtkDestroyNotify ) gtk_widget_unref );
   gtk_widget_show( Ok );
   gtk_container_add( GTK_CONTAINER( hbuttonbox1 ),Ok );
   GTK_WIDGET_SET_FLAGS( Ok,GTK_CAN_DEFAULT );

Index: mb.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/mb.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mb.h	12 Sep 2001 15:08:53 -0000	1.2
+++ mb.h	12 Sep 2001 15:47:18 -0000	1.3
@@ -155,4 +155,4 @@
   return MessageBox;
 }
 
-#endif
\ No newline at end of file
+#endif

Index: sb.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/sb.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sb.h	12 Sep 2001 15:08:53 -0000	1.4
+++ sb.h	12 Sep 2001 15:47:18 -0000	1.5
@@ -13,7 +13,6 @@
 GtkWidget * SkinList;
 GtkWidget * sbOk;
 char      * sbSelectedSkin=NULL;
-char      * sbNotEnoughMemory="SkinBrowser: not enough memory.";
 char      * sbMPlayerDirInHome=NULL;
 char      * sbMPlayerPrefixDir=NULL;
 
@@ -42,7 +41,7 @@
  strcpy( gtkOldSkin,gtkShMem->sb.name );
  if ( ( str[0]=(char *)calloc( 1,7 ) ) == NULL )
   {
-   gtkMessageBox( sbNotEnoughMemory );
+   gtkMessageBox( MSGTR_SKINBROWSER_NotEnoughMemory );
    return 0;
   }
  str[1]="";
@@ -59,7 +58,7 @@
     {
      tmp=strrchr( gg.gl_pathv[i],'/' ); tmp++;
      if ( !strcmp( tmp,"default" ) ) continue;
-     if ( ( str[0]=(char *)malloc( strlen( tmp ) + 1 ) ) == NULL ) { gtkMessageBox( sbNotEnoughMemory ); return 0; }
+     if ( ( str[0]=(char *)malloc( strlen( tmp ) + 1 ) ) == NULL ) { gtkMessageBox( MSGTR_SKINBROWSER_NotEnoughMemory ); return 0; }
      strcpy( str[0],tmp );
      if ( gtkFindCList( SkinList,str[0] ) == -1 ) gtk_clist_append( GTK_CLIST( SkinList ),str );
      free( str[0] );




More information about the MPlayer-cvslog mailing list