Mercurial > mplayer.hg
changeset 1885:b55335dc4df8
add to multi lang support
author | pontscho |
---|---|
date | Wed, 12 Sep 2001 15:47:18 +0000 |
parents | d21f8afc7680 |
children | a4e2aa412c75 |
files | Gui/mplayer/gtk/about.h Gui/mplayer/gtk/mb.h Gui/mplayer/gtk/sb.h help_mp-de.h help_mp-en.h help_mp-hu.h help_mp-pl.h |
diffstat | 7 files changed, 13 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/gtk/about.h Wed Sep 12 15:08:53 2001 +0000 +++ b/Gui/mplayer/gtk/about.h Wed Sep 12 15:47:18 2001 +0000 @@ -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 );
--- a/Gui/mplayer/gtk/mb.h Wed Sep 12 15:08:53 2001 +0000 +++ b/Gui/mplayer/gtk/mb.h Wed Sep 12 15:47:18 2001 +0000 @@ -155,4 +155,4 @@ return MessageBox; } -#endif \ No newline at end of file +#endif
--- a/Gui/mplayer/gtk/sb.h Wed Sep 12 15:08:53 2001 +0000 +++ b/Gui/mplayer/gtk/sb.h Wed Sep 12 15:47:18 2001 +0000 @@ -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] );
--- a/help_mp-de.h Wed Sep 12 15:08:53 2001 +0000 +++ b/help_mp-de.h Wed Sep 12 15:47:18 2001 +0000 @@ -157,5 +157,6 @@ #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
--- a/help_mp-en.h Wed Sep 12 15:08:53 2001 +0000 +++ b/help_mp-en.h Wed Sep 12 15:47:18 2001 +0000 @@ -155,5 +155,6 @@ #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
--- a/help_mp-hu.h Wed Sep 12 15:08:53 2001 +0000 +++ b/help_mp-hu.h Wed Sep 12 15:47:18 2001 +0000 @@ -156,5 +156,6 @@ #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
--- a/help_mp-pl.h Wed Sep 12 15:08:53 2001 +0000 +++ b/help_mp-pl.h Wed Sep 12 15:47:18 2001 +0000 @@ -156,6 +156,7 @@ #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