diff options
author | Christian Neumair <cneumair@gnome.org> | 2008-02-22 12:46:00 +0000 |
---|---|---|
committer | Christian Neumair <cneumair@src.gnome.org> | 2008-02-22 12:46:00 +0000 |
commit | c381ff4ff910581441bfb9c9493812c27319c28e (patch) | |
tree | 7deac1f61db3e8b31c85edd38638af148cb03546 /client | |
parent | 7098f9ab8a63ad3804e68bc92d8d9afc677ca120 (diff) | |
download | gvfs-c381ff4ff910581441bfb9c9493812c27319c28e.tar.gz |
Bind to GVFS text domain. Fixes #517892.
2007-02-22 Christian Neumair <cneumair@gnome.org>
* gconf/gconf-module.c: (g_io_module_load):
* gconf/Makefile.am:
* hal/hal-module.c: (g_io_module_load):
* hal/Makefile.am:
* client/gdaemonvfs.c: (g_daemon_vfs_init):
* client/Makefile.am:
Bind to GVFS text domain. Fixes #517892.
svn path=/trunk/; revision=1330
Diffstat (limited to 'client')
-rw-r--r-- | client/Makefile.am | 1 | ||||
-rw-r--r-- | client/gdaemonvfs.c | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/client/Makefile.am b/client/Makefile.am index 738b13b6..bf97c020 100644 --- a/client/Makefile.am +++ b/client/Makefile.am @@ -6,6 +6,7 @@ INCLUDES = -I$(top_srcdir) \ $(GLIB_CFLAGS) $(DBUS_CFLAGS) \ -DG_LOG_DOMAIN=\"GVFS\" -DG_DISABLE_DEPRECATED \ -DGVFS_MODULE_DIR=\"$(libdir)/gvfs/modules\" \ + -DGVFS_LOCALEDIR=\""$(localedir)"\" \ -DDBUS_API_SUBJECT_TO_CHANGE module_flags = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_vfs_.*|g_io_module_load|g_io_module_unload' diff --git a/client/gdaemonvfs.c b/client/gdaemonvfs.c index 9379ef86..d8f8e00b 100644 --- a/client/gdaemonvfs.c +++ b/client/gdaemonvfs.c @@ -175,7 +175,10 @@ g_daemon_vfs_init (GDaemonVfs *vfs) GVfsUriMapper *mapper; GList *modules; int i; - + + bindtextdomain (GETTEXT_PACKAGE, GVFS_LOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); + vfs->async_bus = dbus_bus_get_private (DBUS_BUS_SESSION, NULL); if (vfs->async_bus == NULL) |