From 454b5f77cb08113ef4baaea8cc2a13e7bab6bc59 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Wed, 3 Dec 2008 02:22:06 +0000 Subject: Translate help output. Patch from: Gabor Kelemen 2008-12-02 William Jon McCann * common/Makefile.am: * utils/gdm-screenshot.c (main): * utils/gdmflexiserver.c (main): Translate help output. Patch from: Gabor Kelemen svn path=/trunk/; revision=6613 --- utils/gdm-screenshot.c | 7 +++++-- utils/gdmflexiserver.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/gdm-screenshot.c b/utils/gdm-screenshot.c index f92744b5..b6f60117 100644 --- a/utils/gdm-screenshot.c +++ b/utils/gdm-screenshot.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -224,10 +225,12 @@ main (int argc, char *argv[]) bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); + setlocale (LC_ALL, ""); /* Option parsing */ - ctx = g_option_context_new ("- New GDM login"); - g_option_context_add_main_entries (ctx, options, _("Main Options")); + ctx = g_option_context_new (_("Take a picture of the screeen")); + g_option_context_set_translation_domain (ctx, GETTEXT_PACKAGE); + g_option_context_add_main_entries (ctx, options, NULL); g_option_context_parse (ctx, &argc, &argv, NULL); g_option_context_free (ctx); diff --git a/utils/gdmflexiserver.c b/utils/gdmflexiserver.c index 6afa5b5e..f2159345 100644 --- a/utils/gdmflexiserver.c +++ b/utils/gdmflexiserver.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -704,10 +705,12 @@ main (int argc, char *argv[]) bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); + setlocale (LC_ALL, ""); /* Option parsing */ - ctx = g_option_context_new ("- New GDM login"); - g_option_context_add_main_entries (ctx, options, _("Main Options")); + ctx = g_option_context_new (_("- New GDM login")); + g_option_context_set_translation_domain (ctx, GETTEXT_PACKAGE); + g_option_context_add_main_entries (ctx, options, NULL); g_option_context_parse (ctx, &argc, &argv, NULL); g_option_context_free (ctx); -- cgit v1.2.1