[pitivi: 6/9] Make the project load error dialog human-readable



commit 1e04ed5a397867aee5be7308b4055ae263993f82
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date:   Mon Dec 27 12:12:08 2010 -0500

    Make the project load error dialog human-readable

 pitivi/ui/mainwindow.py |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/ui/mainwindow.py b/pitivi/ui/mainwindow.py
index 7bdfa3d..75b1098 100644
--- a/pitivi/ui/mainwindow.py
+++ b/pitivi/ui/mainwindow.py
@@ -922,16 +922,15 @@ class PitiviMainWindow(gtk.Window, Loggable):
 
 
     def _projectManagerNewProjectFailedCb(self, projectManager, uri, exception):
-        # ungrey UI
+        project_filename = unquote(uri.split("/")[-1])
         dialog = gtk.MessageDialog(self,
             gtk.DIALOG_MODAL,
             gtk.MESSAGE_ERROR,
             gtk.BUTTONS_OK,
-            _("PiTiVi is unable to load file \"%s\"") %
-                uri)
+            _('Unable to load project "%s"') % project_filename)
         dialog.set_icon_name("pitivi")
         dialog.set_title(_("Error Loading File"))
-        dialog.set_property("secondary-text", str(exception))
+        dialog.set_property("secondary-text", unquote(str(exception)))
         dialog.run()
         dialog.destroy()
         self.set_sensitive(True)



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