eog r4939 - in trunk: . src



Author: friemann
Date: Fri Jan  9 21:50:44 2009
New Revision: 4939
URL: http://svn.gnome.org/viewvc/eog?rev=4939&view=rev

Log:
2009-01-09  Felix Riemann  <friemann svn gnome org>

	* src/main.c: (main): Simplify error message.


Modified:
   trunk/ChangeLog
   trunk/src/main.c

Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c	(original)
+++ trunk/src/main.c	Fri Jan  9 21:50:44 2009
@@ -190,10 +190,15 @@
 	gtk_init (&argc, &argv);
 
 	if (!g_option_context_parse (ctx, &argc, &argv, &error)) {
-		/* I18N: The first %s is the error message from GOption.
-		         The second %s is eog's command name (argv[0]) */
-                g_print(_("Error: %s\nRun '%s --help' to see a full list of available command line options.\n"), error->message, argv[0]); 
+		gchar *help_msg;
+
+		/* I18N: The '%s' is replaced with eog's command name. */ 
+		help_msg = g_strdup_printf (_("Run '%s --help' to see a full "
+					      "list of available command line "
+					      "options."), argv[0]);
+                g_print("%s\n%s\n", error->message, help_msg); 
                 g_error_free (error);
+		g_free (help_msg);
                 g_option_context_free (ctx);
                 
                 return 1;



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