[gnome-user-share] Bug 594252 - WebDAV share name untraslated at runtime



commit faecaeb8f4f84a03528b29e82f12138f9d55dd13
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 7 14:11:33 2009 +0100

    Bug 594252 - WebDAV share name untraslated at runtime
    
    Init the i18n system in our session daemon, otherwise we
    won't ever translate anything...

 src/user_share.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/user_share.c b/src/user_share.c
index 07868c0..6a982c0 100644
--- a/src/user_share.c
+++ b/src/user_share.c
@@ -475,6 +475,10 @@ main (int argc, char **argv)
 	Window selection_owner;
 	Atom xatom;
 
+	bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+	textdomain (GETTEXT_PACKAGE);
+
 	gtk_init (&argc, &argv);
 
 	if (g_strcmp0 (g_get_real_name (), "root") == 0) {
@@ -489,7 +493,7 @@ main (int argc, char **argv)
 
 	xdisplay = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
 	if (xdisplay == NULL) {
-		fprintf (stderr, "Can't open display\n");
+		g_warning ("Can't open display");
 		return 1;
 	}
 



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