diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-12 15:47:18 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-09-12 15:47:18 +0000 |
commit | bfc981f4ee23549eac6c30f9e51fcb8aaa52404a (patch) | |
tree | ecfbc75bbdb9ccfbdf3b0afa5dd1c4c4ad409014 /Gui/mplayer/gtk | |
parent | fdf4a82029cf9e49e275101175c417b903e16b58 (diff) |
add to multi lang support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1886 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/gtk')
-rw-r--r-- | Gui/mplayer/gtk/about.h | 12 | ||||
-rw-r--r-- | Gui/mplayer/gtk/mb.h | 2 | ||||
-rw-r--r-- | Gui/mplayer/gtk/sb.h | 5 |
3 files changed, 9 insertions, 10 deletions
diff --git a/Gui/mplayer/gtk/about.h b/Gui/mplayer/gtk/about.h index 1deeb6d2f4..c7698ceb68 100644 --- a/Gui/mplayer/gtk/about.h +++ b/Gui/mplayer/gtk/about.h @@ -33,10 +33,10 @@ GtkWidget * create_About( void ) 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 @@ GtkWidget * create_About( void ) 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 ); diff --git a/Gui/mplayer/gtk/mb.h b/Gui/mplayer/gtk/mb.h index a92ba6f583..1f60aaaea4 100644 --- a/Gui/mplayer/gtk/mb.h +++ b/Gui/mplayer/gtk/mb.h @@ -155,4 +155,4 @@ GtkWidget * create_MessageBox( void ) return MessageBox; } -#endif
\ No newline at end of file +#endif diff --git a/Gui/mplayer/gtk/sb.h b/Gui/mplayer/gtk/sb.h index 32321eea3d..ceb0357f9b 100644 --- a/Gui/mplayer/gtk/sb.h +++ b/Gui/mplayer/gtk/sb.h @@ -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 @@ int gtkFillSkinList( gchar * mdir ) 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 @@ int gtkFillSkinList( gchar * mdir ) { 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] ); |