diff src/amidi-plug/i_utils.c @ 1317:78861d8b86f2

updated info boxes to make them translatable
author Giacomo Lozito <james@develia.org>
date Sat, 21 Jul 2007 04:05:35 +0200
parents 5daedb3af7c9
children f0b81aeed25f
line wrap: on
line diff
--- a/src/amidi-plug/i_utils.c	Fri Jul 20 20:33:46 2007 -0500
+++ b/src/amidi-plug/i_utils.c	Sat Jul 21 04:05:35 2007 +0200
@@ -33,6 +33,7 @@
   GtkWidget *hseparator , *hbuttonbox , *button_ok;
   GtkTextBuffer *info_textbuffer;
   GdkPixbuf *logo_pixbuf;
+  gchar *info_textbuffer_content = NULL;
 
   if ( aboutwin != NULL )
     return;
@@ -64,22 +65,22 @@
   gtk_text_view_set_justification( GTK_TEXT_VIEW(info_textview) , GTK_JUSTIFY_LEFT );
   gtk_text_view_set_left_margin( GTK_TEXT_VIEW(info_textview) , 10 );
 
-  gtk_text_buffer_set_text( info_textbuffer ,
-                            "\nAMIDI-Plug " AMIDIPLUG_VERSION
-                            "\nmodular MIDI music player\n"
-                            "http://www.develia.org/projects.php?p=amidiplug\n\n"
-                            "written by Giacomo Lozito\n"
-                            "< james@develia.org >\n\n\n"
-                            "special thanks to...\n\n"
-                            "Clemens Ladisch and Jaroslav Kysela\n"
-                            "for their cool programs aplaymidi and amixer; those\n"
-                            "were really useful, along with alsa-lib docs, in order\n"
-                            "to learn more about the ALSA API\n\n"
-                            "Alfredo Spadafina\n"
-                            "for the nice midi keyboard logo\n\n"
-                            "Tony Vroon\n"
-                            "for the good help with alpha testing\n\n"
-                            , -1 );
+  info_textbuffer_content = g_strjoin( NULL , "\nAMIDI-Plug " , AMIDIPLUG_VERSION ,
+                                       _("\nmodular MIDI music player\n"
+                                         "http://www.develia.org/projects.php?p=amidiplug\n\n"
+                                         "written by Giacomo Lozito\n") ,
+                                       "< james@develia.org >\n\n\n" ,
+                                       _("special thanks to...\n\n"
+                                         "Clemens Ladisch and Jaroslav Kysela\n"
+                                         "for their cool programs aplaymidi and amixer; those\n"
+                                         "were really useful, along with alsa-lib docs, in order\n"
+                                         "to learn more about the ALSA API\n\n"
+                                         "Alfredo Spadafina\n"
+                                         "for the nice midi keyboard logo\n\n"
+                                         "Tony Vroon\n"
+                                         "for the good help with alpha testing\n\n") , NULL );
+  gtk_text_buffer_set_text( info_textbuffer , info_textbuffer_content , -1 );
+  g_free( info_textbuffer_content );
 
   info_scrolledwin = gtk_scrolled_window_new( NULL , NULL );
   gtk_scrolled_window_set_policy( GTK_SCROLLED_WINDOW(info_scrolledwin) ,