diff options
author | Felix Riemann <friemann@svn.gnome.org> | 2009-01-09 21:50:44 +0000 |
---|---|---|
committer | Felix Riemann <friemann@src.gnome.org> | 2009-01-09 21:50:44 +0000 |
commit | 71aaed02afdf0a64c04f25afa9e9da74dbc5ef2f (patch) | |
tree | 0084dd76f7cc5819e7adad18e409ce3b448b9d9a /src/main.c | |
parent | fbe253cb55db44ffe61c90853d4458e7db522630 (diff) | |
download | eog-71aaed02afdf0a64c04f25afa9e9da74dbc5ef2f.tar.gz |
Simplify error message.
2009-01-09 Felix Riemann <friemann@svn.gnome.org>
* src/main.c: (main): Simplify error message.
svn path=/trunk/; revision=4939
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -190,10 +190,15 @@ main (int argc, char **argv) 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; |