[gnome-keyring] gcr: Mark strings as translatable.



commit a9ac0911ce27c82aa19c2652704b2783b399bfb4
Author: Stef Walter <stefw collabora co uk>
Date:   Wed Mar 30 15:12:16 2011 +0200

    gcr: Mark strings as translatable.

 gcr/gcr-certificate-renderer.c |    2 +-
 gcr/gcr-display-view.c         |    6 +++++-
 po/POTFILES.in                 |    2 ++
 3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gcr/gcr-certificate-renderer.c b/gcr/gcr-certificate-renderer.c
index 760df1e..71ba2da 100644
--- a/gcr/gcr-certificate-renderer.c
+++ b/gcr/gcr-certificate-renderer.c
@@ -451,7 +451,7 @@ gcr_certificate_renderer_render (GcrRenderer *renderer, GcrViewer *viewer)
 	g_free (display);
 
 	/* Signature */
-	_gcr_display_view_append_heading (view, renderer, ("Signature"));
+	_gcr_display_view_append_heading (view, renderer, _("Signature"));
 
 	oid = egg_asn1x_get_oid_as_quark (egg_asn1x_node (asn, "signatureAlgorithm", "algorithm", NULL));
 	text = egg_oid_get_description (oid);
diff --git a/gcr/gcr-display-view.c b/gcr/gcr-display-view.c
index f5fb2ec..ddf54b6 100644
--- a/gcr/gcr-display-view.c
+++ b/gcr/gcr-display-view.c
@@ -27,6 +27,7 @@
 #include "egg/egg-hex.h"
 
 #include <gdk/gdk.h>
+#include <glib/gi18n-lib.h>
 
 static void _gcr_display_view_viewer_iface (GcrViewerIface *iface);
 
@@ -245,6 +246,7 @@ create_display_item (GcrDisplayView *self, GcrRenderer *renderer)
 	GtkWidget *widget;
 	GtkWidget *label;
 	GtkWidget *alignment;
+	gchar *text;
 
 	item = g_new0 (GcrDisplayItem, 1);
 	item->display_view = self;
@@ -278,10 +280,12 @@ create_display_item (GcrDisplayView *self, GcrRenderer *renderer)
 
 	widget = gtk_expander_new_with_mnemonic ("");
 	label = gtk_expander_get_label_widget (GTK_EXPANDER (widget));
-	gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), "<b>_Details</b>");
+	text = g_strdup_printf ("<b>%s</b>", _("_Details"));
+	gtk_label_set_markup_with_mnemonic (GTK_LABEL (label), text);
 	g_signal_connect (widget, "notify::expanded", G_CALLBACK (on_expander_expanded), item);
 	g_signal_connect (widget, "realize", G_CALLBACK (on_expander_realize), NULL);
 	item->expanded = gtk_expander_get_expanded (GTK_EXPANDER (widget));
+	g_free (text);
 
 	alignment = gtk_alignment_new (0.5, 0.5, 0.5, 0.5);
 	gtk_alignment_set_padding (GTK_ALIGNMENT (alignment), 6, 9, 0, 0);
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7485677..6779f8d 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -12,8 +12,10 @@ daemon/login/gkd-login.c
 daemon/org.gnome.keyring.service.in
 egg/egg-oid.c
 egg/egg-spawn.c
+gcr/gcr-certificate-exporter.c
 gcr/gcr-certificate-renderer.c
 gcr/gcr-certificate-widget.c
+gcr/gcr-display-view.c
 [type: gettext/glade]gcr/gcr-import-dialog.ui
 [type: gettext/glade]gcr/gcr-unlock-options-widget.ui
 gcr/gcr-importer.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]