[gnome-keyring] [login] Give translatable label to created login keyring.



commit cbd304c28b215e56547861c28dc841fc98746a20
Author: Stef Walter <stef memberwebs com>
Date:   Thu Feb 18 17:48:53 2010 +0000

    [login] Give translatable label to created login keyring.

 daemon/login/gkd-login.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/daemon/login/gkd-login.c b/daemon/login/gkd-login.c
index 61308f3..9d38125 100644
--- a/daemon/login/gkd-login.c
+++ b/daemon/login/gkd-login.c
@@ -165,13 +165,18 @@ static GP11Object*
 create_login_keyring (GP11Session *session, GP11Object *cred, GError **error)
 {
 	GP11Object *login;
+	const gchar *label;
 
 	g_return_val_if_fail (GP11_IS_SESSION (session), NULL);
 	g_return_val_if_fail (GP11_IS_OBJECT (cred), NULL);
 
+	/* TRANSLATORS: This is the display label for the login keyring */
+	label = _("Login");
+
 	login = gp11_session_create_object (session, error,
 	                                    CKA_CLASS, GP11_ULONG, CKO_G_COLLECTION,
 	                                    CKA_ID, (gsize)5, "login",
+	                                    CKA_LABEL, strlen (label), label,
 	                                    CKA_G_CREDENTIAL, GP11_ULONG, gp11_object_get_handle (cred),
 	                                    CKA_TOKEN, GP11_BOOLEAN, TRUE,
 	                                    GP11_INVALID);



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