[brasero] Add a correct message instead of a stupid space



commit 960983d0470d8e377d62a54c4d574e0edeb7dce6
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sat May 23 17:35:33 2009 +0200

    Add a correct message instead of a stupid space
    Fix #583648 â?? Strange space to translate
---
 libbrasero-burn/brasero-track-stream-cfg.c |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/libbrasero-burn/brasero-track-stream-cfg.c b/libbrasero-burn/brasero-track-stream-cfg.c
index 889d48d..eea5bb4 100644
--- a/libbrasero-burn/brasero-track-stream-cfg.c
+++ b/libbrasero-burn/brasero-track-stream-cfg.c
@@ -36,6 +36,8 @@
 #include <glib/gi18n-lib.h>
 #include <glib-object.h>
 
+#include "brasero-misc.h"
+
 #include "brasero-track-stream-cfg.h"
 #include "brasero-io.h"
 #include "brasero-tags.h"
@@ -75,11 +77,18 @@ brasero_video_project_result_cb (GObject *obj,
 		return;
 	}
 
+	/* FIXME: we don't know whether it's audio or video that is required */
 	if (g_file_info_get_file_type (info) != G_FILE_TYPE_REGULAR
-	|| !g_file_info_get_attribute_boolean (info, BRASERO_IO_HAS_VIDEO)) {
+	|| (!g_file_info_get_attribute_boolean (info, BRASERO_IO_HAS_VIDEO)
+	&&  !g_file_info_get_attribute_boolean (info, BRASERO_IO_HAS_AUDIO))) {
+		gchar *name;
+
+		BRASERO_GET_BASENAME_FOR_DISPLAY (uri, name);
 		priv->error = g_error_new (BRASERO_BURN_ERROR,
 					   BRASERO_BURN_ERR,
-					   _(" "));
+					   _("\"%s\" is not suitable for audio or video media"),
+					   name);
+		g_free (name);
 
 		brasero_track_changed (BRASERO_TRACK (obj));
 		return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]