[Xfce4-commits] <xfconf:master> Improve version output.

Nick Schermer noreply at xfce.org
Wed May 25 22:54:02 CEST 2011


Updating branch refs/heads/master
         to 2455ed213a842d7124da339795041d29bd6c2694 (commit)
       from 4da808ec52afec087b82c16840bbe05aafa0135e (commit)

commit 2455ed213a842d7124da339795041d29bd6c2694
Author: Nick Schermer <nick at xfce.org>
Date:   Wed May 25 22:08:01 2011 +0200

    Improve version output.

 xfconf-query/main.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/xfconf-query/main.c b/xfconf-query/main.c
index bfc6dcc..bc34052 100644
--- a/xfconf-query/main.c
+++ b/xfconf-query/main.c
@@ -234,8 +234,7 @@ main(int argc, char **argv)
         return 1;
     }
 
-    context = g_option_context_new("- xfconf commandline utility");
-
+    context = g_option_context_new(_("- Xfconf commandline utility"));
     g_option_context_add_main_entries(context, entries, GETTEXT_PACKAGE);
 
     if(!g_option_context_parse(context, &argc, &argv, &cli_error))
@@ -246,8 +245,14 @@ main(int argc, char **argv)
 
     if(version)
     {
-        g_print("xfconf-query %s\n", PACKAGE_VERSION);
-        return 0;
+        g_print("xfconf-query");
+        g_print(" %s\n\n", PACKAGE_VERSION);
+        g_print("%s\n", "Copyright (c) 2008-2011");
+        g_print("\t%s\n\n", _("The Xfce development team. All rights reserved."));
+        g_print(_("Please report bugs to <%s>."), PACKAGE_BUGREPORT);
+        g_print("\n");
+
+        return EXIT_SUCCESS;
     }
 
     /** Check if the channel is specified */



More information about the Xfce4-commits mailing list