[kupfer: 46/53] fileactions: Make a reminder in error message that "Set Default" exists



commit 316041a650bbeb3fce261476bd3f7cfc0c7ab77b
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Mar 24 17:22:41 2011 +0100

    fileactions: Make a reminder in error message that "Set Default" exists

 kupfer/obj/fileactions.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/obj/fileactions.py b/kupfer/obj/fileactions.py
index 8795522..938927d 100644
--- a/kupfer/obj/fileactions.py
+++ b/kupfer/obj/fileactions.py
@@ -41,8 +41,9 @@ class Open (Action):
 		if not def_app:
 			apps_for_type = gio.app_info_get_all_for_type(content_type)
 			raise NoDefaultApplicationError(
-					_("No default application for %(file)s (%(type)s)") % 
-					{"file": unicode(leaf), "type": content_type}
+					(_("No default application for %(file)s (%(type)s)") % 
+					 {"file": unicode(leaf), "type": content_type}) + "\n" +
+					_('Please use "%s"') % _("Set Default Application...")
 				)
 		return def_app
 



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