? .bug-buddy.c.swp
? p
Index: bug-buddy.c
===================================================================
RCS file: /cvs/gnome/bug-buddy/src/bug-buddy.c,v
retrieving revision 1.146
diff -U5 -p -r1.146 bug-buddy.c
--- bug-buddy.c	16 Nov 2006 14:21:38 -0000	1.146
+++ bug-buddy.c	23 Nov 2006 21:28:04 -0000
@@ -789,28 +789,39 @@ show_pending_checkbox_if_pending (GladeX
 static void
 known_app_finished (GladeXML *xml)
 {
 	GtkWidget *email_entry;
 	char *default_email;
+	char *lang_note, *label_text;
+        const char *en_lang_note = N_("\nPlease write your report in English, if possible.\n");
 
 	fill_stderr_info (xml);
 	
 	gtk_widget_show (glade_xml_get_widget (xml, "final-box"));
 	gtk_widget_show (glade_xml_get_widget (xml, "send-button"));
 	gtk_widget_hide (glade_xml_get_widget (xml, "progressbar"));
 	gtk_statusbar_pop (GTK_STATUSBAR (glade_xml_get_widget (xml, "statusbar")), DEBUGGING);
 
+	lang_note = gettext (en_lang_note);
+ 
+	label_text = g_strconcat (_("The information about the crash has been successfully collected. "
+				    "Please provide some background about what you were doing when "
+				    "the application crashed.\n\n"
+				    "A valid email address is required.  This will allow developers to "
+				    "contact you for more information if necessary.\n\n" 
+				    "Sensitive data may be present in the debug information, so please "
+				    "review details below if you are concerned about transmitting "
+				    "passwords or other sensitive data.\n"), 
+				  strcmp (lang_note, en_lang_note) ? lang_note : NULL, 
+				  NULL);
+	
 
 	gtk_label_set_text (GTK_LABEL (glade_xml_get_widget (xml, "main-text")),
-			    _("The information about the crash has been successfully collected. "
-			      "Please provide some background about what you were doing when "
-			      "the application crashed.\n\n"
-			      "A valid email address is required.  This will allow developers to "
-			      "contact you for more information if necessary.\n\n" 
-			      "Sensitive data may be present in the debug information, so please "
-			      "review details below if you are concerned about transmitting "
-	                      "passwords or other sensitive data.\n"));
+                            label_text);
+
+        g_free (label_text);
+        g_free (lang_note);
 
 	show_pending_checkbox_if_pending (xml);
 	
 	g_signal_connect (glade_xml_get_widget (xml, "send-button"), "clicked", 
 	                  G_CALLBACK (on_send_clicked), xml);
@@ -1348,10 +1359,12 @@ main (int argc, char *argv[])
 		g_object_set_data (G_OBJECT (xml), "type", GINT_TO_POINTER(BUG_TYPE_CRASH));
 	} else {
 		/* No binary file, so this is a non-crashing bug. Look the application from the --package arg */
 		GtkWidget *email_entry;
 		char *default_email;
+ 		char *msg, *lang_note;
+                const char *en_lang_note = N_("\nPlease write your report in English, if possible.\n");
 		
 		app = g_hash_table_find (apps, (GHRFunc)bugzilla_search_for_package, gopt_data.package);
 		if (app == NULL) {
 			/* Fallback to binary name */
 			app = g_hash_table_lookup (apps, gopt_data.package);
@@ -1359,15 +1372,24 @@ main (int argc, char *argv[])
 		if (app == NULL) {
 			buddy_error (NULL, _("Bug Buddy doesn't know how to send a suggestion for the application %s.\n"),
 		                     	     gopt_data.package);
 			return 0;
 		}
-		s = g_markup_printf_escaped (_("Thank you for helping us improving our software.\n"
-				               "Please fill your suggestions/error information for %s application.\n"),
-                                              	app->name);
+
+		lang_note = gettext (en_lang_note);
+		msg = g_strconcat (_("Thank you for helping us improving our software.\n"
+				     "Please fill your suggestions/error information for %s application.\n"),
+				   strcmp (lang_note, en_lang_note)? lang_note: NULL, 
+				   NULL);
+
+		s = g_markup_printf_escaped (msg, app->name);
+
 		gtk_label_set_text (GTK_LABEL (glade_xml_get_widget (xml, "main-text")), s);
 		g_free (s);
+
+                g_free (lang_note);
+                g_free (msg);
 		
 		g_object_set_data (G_OBJECT (xml), "app", app);
 	
 		if (app->pixbuf)
 			gtk_image_set_from_pixbuf (GTK_IMAGE (glade_xml_get_widget (xml, "app-image")),
