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 | |
parent | fdf4a82029cf9e49e275101175c417b903e16b58 (diff) | |
download | mpv-bfc981f4ee23549eac6c30f9e51fcb8aaa52404a.tar.bz2 mpv-bfc981f4ee23549eac6c30f9e51fcb8aaa52404a.tar.xz |
add to multi lang support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1886 b3059339-0415-0410-9bf9-f77b7e298cf2
-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 | ||||
-rw-r--r-- | help_mp-de.h | 1 | ||||
-rw-r--r-- | help_mp-en.h | 1 | ||||
-rw-r--r-- | help_mp-hu.h | 1 | ||||
-rw-r--r-- | help_mp-pl.h | 1 |
7 files changed, 13 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] ); diff --git a/help_mp-de.h b/help_mp-de.h index 69fd427307..8b7260698f 100644 --- a/help_mp-de.h +++ b/help_mp-de.h @@ -157,5 +157,6 @@ static char help_text[]= #define MSGTR_SKIN_FONT_FontImageNotFound "font image file not found\n" #define MSGTR_SKIN_FONT_NonExistentFontID "non-existent font identifier ( %s )\n" #define MSGTR_SKIN_UnknownParameter "unknown parameter ( %s )\n" +#define MSGTR_SKINBROWSER_NotEnoughMemory "[skinbrowser] not enought memory.\n" #endif diff --git a/help_mp-en.h b/help_mp-en.h index 84ae25dcad..740b70004f 100644 --- a/help_mp-en.h +++ b/help_mp-en.h @@ -155,5 +155,6 @@ static char help_text[]= #define MSGTR_SKIN_FONT_FontImageNotFound "font image file not found\n" #define MSGTR_SKIN_FONT_NonExistentFontID "non-existent font identifier ( %s )\n" #define MSGTR_SKIN_UnknownParameter "unknown parameter ( %s )\n" +#define MSGTR_SKINBROWSER_NotEnoughMemory "[skinbrowser] not enought memory.\n" #endif diff --git a/help_mp-hu.h b/help_mp-hu.h index 4942fbe3fc..96fe5d792e 100644 --- a/help_mp-hu.h +++ b/help_mp-hu.h @@ -156,5 +156,6 @@ static char help_text[]= #define MSGTR_SKIN_FONT_FontImageNotFound "font image file not found\n" #define MSGTR_SKIN_FONT_NonExistentFontID "non-existent font identifier ( %s )\n" #define MSGTR_SKIN_UnknownParameter "unknown parameter ( %s )\n" +#define MSGTR_SKINBROWSER_NotEnoughMemory "[skinbrowser] not enought memory.\n" #endif diff --git a/help_mp-pl.h b/help_mp-pl.h index 9d5e1f9c4d..92af388e73 100644 --- a/help_mp-pl.h +++ b/help_mp-pl.h @@ -156,6 +156,7 @@ static char help_text[]= #define MSGTR_SKIN_FONT_FontImageNotFound "font image file not found\n" #define MSGTR_SKIN_FONT_NonExistentFontID "non-existent font identifier ( %s )\n" #define MSGTR_SKIN_UnknownParameter "unknown parameter ( %s )\n" +#define MSGTR_SKINBROWSER_NotEnoughMemory "[skinbrowser] not enought memory.\n" #endif |