Tomas Bzatek 9ed3249
From f77498214f945c988a0bcbe570782dcaf37e771d Mon Sep 17 00:00:00 2001
Tomas Bzatek 9ed3249
From: Bastien Nocera <hadess@hadess.net>
Tomas Bzatek 9ed3249
Date: Fri, 26 Jun 2009 09:30:42 +0000
Tomas Bzatek 9ed3249
Subject: Bug 586755 – Localized realm in the passwd file doesn't work
Tomas Bzatek 9ed3249
Tomas Bzatek 9ed3249
And apparently, they're not supposed to either... So remove the
Tomas Bzatek 9ed3249
translation for the realm instead.
Tomas Bzatek 9ed3249
---
Tomas Bzatek 9ed3249
diff --git a/src/file-share-properties.c b/src/file-share-properties.c
Tomas Bzatek 9ed3249
index 2b9cd2e..4d69a62 100644
Tomas Bzatek 9ed3249
--- a/src/file-share-properties.c
Tomas Bzatek 9ed3249
+++ b/src/file-share-properties.c
Tomas Bzatek 9ed3249
@@ -32,7 +32,7 @@
Tomas Bzatek 9ed3249
 
Tomas Bzatek 9ed3249
 #include "user_share-private.h"
Tomas Bzatek 9ed3249
 
Tomas Bzatek 9ed3249
-#define REALM N_("Please log in as the user guest")
Tomas Bzatek 9ed3249
+#define REALM "Please log in as the user guest"
Tomas Bzatek 9ed3249
 #define USER "guest"
Tomas Bzatek 9ed3249
 
Tomas Bzatek 9ed3249
 static GtkBuilder* builder;
Tomas Bzatek 9ed3249
@@ -47,10 +47,10 @@ write_out_password (const char *password)
Tomas Bzatek 9ed3249
     char *filename;
Tomas Bzatek 9ed3249
     FILE *file;
Tomas Bzatek 9ed3249
 
Tomas Bzatek 9ed3249
-    to_hash = g_strdup_printf ("%s:%s:%s", USER, _(REALM), password);
Tomas Bzatek 9ed3249
+    to_hash = g_strdup_printf ("%s:%s:%s", USER, REALM, password);
Tomas Bzatek 9ed3249
     ascii_digest = g_compute_checksum_for_string (G_CHECKSUM_MD5, to_hash, strlen (to_hash));
Tomas Bzatek 9ed3249
     g_free (to_hash);
Tomas Bzatek 9ed3249
-    line = g_strdup_printf ("%s:%s:%s\n", USER, _(REALM), ascii_digest);
Tomas Bzatek 9ed3249
+    line = g_strdup_printf ("%s:%s:%s\n", USER, REALM, ascii_digest);
Tomas Bzatek 9ed3249
     g_free (ascii_digest);
Tomas Bzatek 9ed3249
 
Tomas Bzatek 9ed3249
     filename = g_build_filename (g_get_user_config_dir (), "user-share", "passwd", NULL);
Tomas Bzatek 9ed3249
--
Tomas Bzatek 9ed3249
cgit v0.8.2