summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
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);