Mercurial > audlegacy-plugins
changeset 1290:5daedb3af7c9
"amidi-plug" : "i18n project" (part 1)
author | Stany HENRY <StrassBoy@gmail.com> |
---|---|
date | Thu, 19 Jul 2007 00:36:28 +0200 |
parents | 90d9d4cf619c |
children | 8298974410fe |
files | src/amidi-plug/i_backend.c src/amidi-plug/i_configure-alsa.c src/amidi-plug/i_configure-ap.c src/amidi-plug/i_configure-dummy.c src/amidi-plug/i_configure-fluidsynth.c src/amidi-plug/i_configure-timidity.c src/amidi-plug/i_configure.c src/amidi-plug/i_utils.c |
diffstat | 8 files changed, 25 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/src/amidi-plug/i_backend.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_backend.c Thu Jul 19 00:36:28 2007 +0200 @@ -51,7 +51,7 @@ /* seems to be a backend for amidi-plug , try to load it */ module = g_module_open( module_pathfilename , G_MODULE_BIND_LOCAL ); if ( module == NULL ) - g_warning( "Error loading module %s - %s\n" , module_pathfilename , g_module_error() ); + g_warning( _("Error loading module %s - %s\n") , module_pathfilename , g_module_error() ); else { /* try to get the module name */ @@ -62,14 +62,14 @@ /* name and desc dinamically allocated */ getapmoduleinfo( &mn->name , &mn->longname , &mn->desc , &mn->ppos ); mn->filename = g_strdup(module_pathfilename); /* dinamically allocated */ - DEBUGMSG( "Backend found and added in list, filename: %s and lname: %s\n" , + DEBUGMSG( _("Backend found and added in list, filename: %s and lname: %s\n") , mn->filename, mn->longname ); backend_list = g_slist_append( backend_list , mn ); } else { /* module name not found, this is not a backend for amidi-plug */ - g_warning( "File %s is not a backend for amidi-plug!\n" , module_pathfilename ); + g_warning( _("File %s is not a backend for amidi-plug!\n") , module_pathfilename ); } g_module_close( module ); } @@ -79,7 +79,7 @@ g_dir_close( backend_directory ); } else - g_warning( "Unable to open the backend directory %s\n" , AMIDIPLUGBACKENDDIR ); + g_warning( _("Unable to open the backend directory %s\n") , AMIDIPLUGBACKENDDIR ); return backend_list; } @@ -104,7 +104,7 @@ gint i_backend_load( gchar * module_name ) { gchar * module_pathfilename = g_strjoin( "" , AMIDIPLUGBACKENDDIR , "/ap-" , module_name , ".so" , NULL ); - DEBUGMSG( "loading backend '%s'\n" , module_pathfilename ); + DEBUGMSG( _("loading backend '%s'\n") , module_pathfilename ); backend.gmodule = g_module_open( module_pathfilename , 0 ); if ( backend.gmodule != NULL ) @@ -140,7 +140,7 @@ g_module_symbol( backend.gmodule , "audio_check_autonomous" , (gpointer*)&checkautonomousaudio ); getapmoduleinfo( &backend.name , NULL , NULL , NULL ); backend.autonomous_audio = checkautonomousaudio(); - DEBUGMSG( "backend %s (name '%s') successfully loaded\n" , module_pathfilename , backend.name ); + DEBUGMSG( _("backend %s (name '%s') successfully loaded\n") , module_pathfilename , backend.name ); backend.init( i_configure_cfg_get_file ); g_free( module_pathfilename ); return 1; @@ -148,7 +148,7 @@ else { backend.name = NULL; - g_warning( "unable to load backend '%s'\n" , module_pathfilename ); + g_warning( _("unable to load backend '%s'\n") , module_pathfilename ); g_free( module_pathfilename ); return 0; } @@ -159,17 +159,17 @@ { if ( backend.gmodule != NULL ) { - DEBUGMSG( "unloading backend '%s'\n" , backend.name ); + DEBUGMSG( _("unloading backend '%s'\n") , backend.name ); backend.cleanup(); g_module_close( backend.gmodule ); - DEBUGMSG( "backend '%s' unloaded\n" , backend.name ); + DEBUGMSG( _("backend '%s' unloaded\n") , backend.name ); g_free( backend.name ); backend.gmodule = NULL; return 1; } else { - g_warning( "attempting to unload backend, but no backend is loaded\n" ); + g_warning( _("attempting to unload backend, but no backend is loaded\n") ); return 0; } }
--- a/src/amidi-plug/i_configure-alsa.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_configure-alsa.c Thu Jul 19 00:36:28 2007 +0200 @@ -460,7 +460,7 @@ pagelabel_image_pix = gdk_pixbuf_new_from_xpm_data( (const gchar **)backend_alsa_icon_xpm ); pagelabel_image = gtk_image_new_from_pixbuf( pagelabel_image_pix ); g_object_unref( pagelabel_image_pix ); pagelabel_label = gtk_label_new( "" ); - gtk_label_set_markup( GTK_LABEL(pagelabel_label) , "<span size=\"smaller\">ALSA\nbackend</span>" ); + gtk_label_set_markup( GTK_LABEL(pagelabel_label) , _("<span size=\"smaller\">ALSA\nbackend</span>") ); gtk_label_set_justify( GTK_LABEL(pagelabel_label) , GTK_JUSTIFY_CENTER ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_image , FALSE , FALSE , 1 ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_label , FALSE , FALSE , 1 );
--- a/src/amidi-plug/i_configure-ap.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_configure-ap.c Thu Jul 19 00:36:28 2007 +0200 @@ -372,7 +372,7 @@ pagelabel_image_pix = gdk_pixbuf_new_from_xpm_data( (const gchar **)amidi_plug_icon_xpm ); pagelabel_image = gtk_image_new_from_pixbuf( pagelabel_image_pix ); g_object_unref( pagelabel_image_pix ); pagelabel_label = gtk_label_new( "" ); - gtk_label_set_markup( GTK_LABEL(pagelabel_label) , "<span size=\"smaller\">AMIDI\nPlug</span>" ); + gtk_label_set_markup( GTK_LABEL(pagelabel_label) , _("<span size=\"smaller\">AMIDI\nPlug</span>") ); gtk_label_set_justify( GTK_LABEL(pagelabel_label) , GTK_JUSTIFY_CENTER ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_image , FALSE , FALSE , 1 ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_label , FALSE , FALSE , 1 );
--- a/src/amidi-plug/i_configure-dummy.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_configure-dummy.c Thu Jul 19 00:36:28 2007 +0200 @@ -345,7 +345,7 @@ pagelabel_image_pix = gdk_pixbuf_new_from_xpm_data( (const gchar **)backend_dummy_icon_xpm ); pagelabel_image = gtk_image_new_from_pixbuf( pagelabel_image_pix ); g_object_unref( pagelabel_image_pix ); pagelabel_label = gtk_label_new( "" ); - gtk_label_set_markup( GTK_LABEL(pagelabel_label) , "<span size=\"smaller\">Dummy\nbackend</span>" ); + gtk_label_set_markup( GTK_LABEL(pagelabel_label) , _("<span size=\"smaller\">Dummy\nbackend</span>") ); gtk_label_set_justify( GTK_LABEL(pagelabel_label) , GTK_JUSTIFY_CENTER ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_image , FALSE , FALSE , 1 ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_label , FALSE , FALSE , 1 );
--- a/src/amidi-plug/i_configure-fluidsynth.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_configure-fluidsynth.c Thu Jul 19 00:36:28 2007 +0200 @@ -806,7 +806,7 @@ gtk_tooltips_set_tip( GTK_TOOLTIPS(tips) , soundfont_file_lv , _("* Select SoundFont files *\n" "In order to play MIDI with FluidSynth, you need to specify at " - "least one valid SoundFont file here (use absolute paths). The " + "least one valid SoundFont file here (use absolute paths). The " "loading order is from the top (first) to the bottom (last).") , "" ); gtk_tooltips_set_tip( GTK_TOOLTIPS(tips) , soundfont_load_option[0] , _("* Load SoundFont on player start *\n" @@ -953,7 +953,7 @@ pagelabel_image_pix = gdk_pixbuf_new_from_xpm_data( (const gchar **)backend_fluidsynth_icon_xpm ); pagelabel_image = gtk_image_new_from_pixbuf( pagelabel_image_pix ); g_object_unref( pagelabel_image_pix ); pagelabel_label = gtk_label_new( "" ); - gtk_label_set_markup( GTK_LABEL(pagelabel_label) , "<span size=\"smaller\">FluidSynth\nbackend</span>" ); + gtk_label_set_markup( GTK_LABEL(pagelabel_label) , _("<span size=\"smaller\">FluidSynth\nbackend</span>") ); gtk_label_set_justify( GTK_LABEL(pagelabel_label) , GTK_JUSTIFY_CENTER ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_image , FALSE , FALSE , 1 ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_label , FALSE , FALSE , 1 );
--- a/src/amidi-plug/i_configure-timidity.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_configure-timidity.c Thu Jul 19 00:36:28 2007 +0200 @@ -61,7 +61,7 @@ { /* display "not available" information */ GtkWidget * info_label; - info_label = gtk_label_new( "TiMidity Backend not loaded or not available" ); + info_label = gtk_label_new( _("TiMidity Backend not loaded or not available") ); gtk_box_pack_start( GTK_BOX(timi_page_vbox) , info_label , FALSE , FALSE , 2 ); } @@ -80,7 +80,7 @@ pagelabel_image_pix = gdk_pixbuf_new_from_xpm_data( (const gchar **)backend_timidity_icon_xpm ); pagelabel_image = gtk_image_new_from_pixbuf( pagelabel_image_pix ); g_object_unref( pagelabel_image_pix ); pagelabel_label = gtk_label_new( "" ); - gtk_label_set_markup( GTK_LABEL(pagelabel_label) , "<span size=\"smaller\">TiMidity\nbackend</span>" ); + gtk_label_set_markup( GTK_LABEL(pagelabel_label) , _("<span size=\"smaller\">TiMidity\nbackend</span>") ); gtk_label_set_justify( GTK_LABEL(pagelabel_label) , GTK_JUSTIFY_CENTER ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_image , FALSE , FALSE , 1 ); gtk_box_pack_start( GTK_BOX(pagelabel_vbox) , pagelabel_label , FALSE , FALSE , 1 );
--- a/src/amidi-plug/i_configure.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_configure.c Thu Jul 19 00:36:28 2007 +0200 @@ -83,7 +83,7 @@ { gchar *filename = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER(browse_dialog) ); gtk_entry_set_text( GTK_ENTRY(target_entry) , filename ); - DEBUGMSG( "selected file: %s\n" , filename ); + DEBUGMSG( _("selected file: %s\n") , filename ); g_free( filename ); } gtk_widget_destroy( browse_dialog ); @@ -109,7 +109,7 @@ if ( configwin != NULL ) { - DEBUGMSG( "config window is already open!\n" ); + DEBUGMSG( _("config window is already open!\n") ); return; } @@ -255,15 +255,15 @@ void i_configure_ev_bok( GtkWidget * button_ok , gpointer configwin ) { - DEBUGMSG( "saving configuration...\n" ); + DEBUGMSG( _("saving configuration...\n") ); i_configure_cfg_ap_save(); /* save amidiplug settings */ i_configure_cfg_backend_save(); /* save backend settings */ - DEBUGMSG( "configuration saved\n" ); + DEBUGMSG( _("configuration saved\n") ); /* check if a different backend has been selected */ if (( backend.name == NULL ) || ( strcmp( amidiplug_cfg_ap.ap_seq_backend , backend.name ) )) { - DEBUGMSG( "a new backend has been selected, unloading previous and loading the new one\n" ); + DEBUGMSG( _("a new backend has been selected, unloading previous and loading the new one\n") ); i_backend_unload(); /* unload previous backend */ i_backend_load( amidiplug_cfg_ap.ap_seq_backend ); /* load new backend */ } @@ -271,7 +271,7 @@ { if ( backend.gmodule != NULL ) { - DEBUGMSG( "the selected backend is already loaded, so just perform backend cleanup and reinit\n" ); + DEBUGMSG( _("the selected backend is already loaded, so just perform backend cleanup and reinit\n") ); backend.cleanup(); backend.init( i_configure_cfg_get_file ); }
--- a/src/amidi-plug/i_utils.c Wed Jul 18 23:04:11 2007 +0200 +++ b/src/amidi-plug/i_utils.c Thu Jul 19 00:36:28 2007 +0200 @@ -39,7 +39,7 @@ aboutwin = gtk_window_new( GTK_WINDOW_TOPLEVEL ); gtk_window_set_type_hint( GTK_WINDOW(aboutwin), GDK_WINDOW_TYPE_HINT_DIALOG ); - gtk_window_set_title( GTK_WINDOW(aboutwin), "AMIDI-Plug - about" ); + gtk_window_set_title( GTK_WINDOW(aboutwin), _("AMIDI-Plug - about") ); gtk_window_set_resizable( GTK_WINDOW(aboutwin) , FALSE ); gtk_container_set_border_width( GTK_CONTAINER(aboutwin), 10 ); g_signal_connect( G_OBJECT(aboutwin) , "destroy" , G_CALLBACK(gtk_widget_destroyed) , &aboutwin ); @@ -130,7 +130,7 @@ gtk_window_set_title( GTK_WINDOW(win) , title ); g_signal_connect_swapped( G_OBJECT(win) , "response" , G_CALLBACK(gtk_widget_destroy) , win ); - + if ( show_win == TRUE ) gtk_widget_show_all( win );