[frogr] Fix missing gettext call
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Fix missing gettext call
- Date: Wed, 19 Dec 2012 16:01:07 +0000 (UTC)
commit 6f901ed4da539633e30a42aa8429860d9a905c75
Author: Alexandre Franke <alexandre franke gmail com>
Date: Tue Dec 18 15:15:49 2012 +0100
Fix missing gettext call
The auth_txt string was displayed in the C locale regardless of the user's locale.
Also get rid of the useless variables and have the strings directly in the fonction calls.
https://bugzilla.gnome.org/show_bug.cgi?id=690416
src/frogr-auth-dialog.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/frogr-auth-dialog.c b/src/frogr-auth-dialog.c
index 830db49..3cfcea0 100644
--- a/src/frogr-auth-dialog.c
+++ b/src/frogr-auth-dialog.c
@@ -27,13 +27,6 @@
#include <config.h>
#include <glib/gi18n.h>
-static gchar *unauth_txt =
- N_("Please press the button to authorize %s "
- "and then come back to complete the process.");
-
-static gchar *auth_txt =
- N_("Enter verification code:");
-
/* Prototypes */
static void _ask_for_authorization (GtkWindow *parent);
@@ -56,7 +49,8 @@ _ask_for_authorization (GtkWindow *parent)
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_MESSAGE_INFO,
GTK_BUTTONS_CLOSE,
- _(unauth_txt),
+ _("Please press the button to authorize %s "
+ "and then come back to complete the process."),
APP_SHORTNAME);
title = g_strdup_printf (_("Authorize %s"), APP_SHORTNAME);
@@ -161,7 +155,7 @@ _ask_for_auth_confirmation (GtkWindow *parent)
gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE);
/* Description label */
- label = gtk_label_new (auth_txt);
+ label = gtk_label_new (_("Enter verification code:"));
gtk_misc_set_padding (GTK_MISC (label), 12, 0);
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, TRUE, 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]