policykit-gnome r76 - trunk/src
- From: fcrozat svn gnome org
- To: svn-commits-list gnome org
- Subject: policykit-gnome r76 - trunk/src
- Date: Thu, 11 Sep 2008 16:01:42 +0000 (UTC)
Author: fcrozat
Date: Thu Sep 11 16:01:42 2008
New Revision: 76
URL: http://svn.gnome.org/viewvc/policykit-gnome?rev=76&view=rev
Log:
- Fix i18n initialization (GNOME bug #551697)
Modified:
trunk/src/main.c
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Thu Sep 11 16:01:42 2008
@@ -33,7 +33,7 @@
#include <fcntl.h>
#include <glib.h>
-#include <glib/gi18n-lib.h>
+#include <glib/gi18n.h>
#include <glib-object.h>
#include <gtk/gtk.h>
@@ -145,6 +145,12 @@
g_type_init ();
gtk_init (&argc, &argv);
+ bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+#if HAVE_BIND_TEXTDOMAIN_CODESET
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#endif
+ textdomain (GETTEXT_PACKAGE);
+
context = g_option_context_new (_("PolicyKit GNOME session daemon"));
g_option_context_add_main_entries (context, entries, NULL);
g_option_context_parse (context, &argc, &argv, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]