summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2008-12-03 02:22:06 +0000
committerWilliam Jon McCann <mccann@src.gnome.org>2008-12-03 02:22:06 +0000
commit454b5f77cb08113ef4baaea8cc2a13e7bab6bc59 (patch)
treeaa0e1cbf8d293654c3b6a877e7f948dfbff16e26 /utils
parenta3efaa6a4750ebc49fb740df753b9ad13dca12ae (diff)
downloadgdm-454b5f77cb08113ef4baaea8cc2a13e7bab6bc59.tar.gz
Translate help output. Patch from: Gabor Kelemen <kelemeng@gnome.hu>
2008-12-02 William Jon McCann <jmccann@redhat.com> * common/Makefile.am: * utils/gdm-screenshot.c (main): * utils/gdmflexiserver.c (main): Translate help output. Patch from: Gabor Kelemen <kelemeng@gnome.hu> svn path=/trunk/; revision=6613
Diffstat (limited to 'utils')
-rw-r--r--utils/gdm-screenshot.c7
-rw-r--r--utils/gdmflexiserver.c7
2 files changed, 10 insertions, 4 deletions
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 <stdio.h>
#include <unistd.h>
#include <string.h>
+#include <locale.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
@@ -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 <stdio.h>
#include <unistd.h>
#include <string.h>
+#include <locale.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
@@ -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);