From e6db1305ab8f0ec981cf6b38820e84108b67b11d Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 16 Jul 2022 15:46:08 +0200 Subject: Failed to resolve the path to caja-extensions.mo on guix system --- sendto/caja-sendto-module.c | 4 ++++ sendto/plugins/caja-burn/caja-burn.c | 5 +++++ sendto/plugins/emailclient/emailclient.c | 5 +++++ sendto/plugins/gajim/gajim.c | 5 +++++ sendto/plugins/pidgin/pidgin.c | 5 +++++ sendto/plugins/removable-devices/removable-devices.c | 5 +++++ sendto/plugins/upnp/upnp.c | 5 +++++ 7 files changed, 34 insertions(+) (limited to 'sendto') diff --git a/sendto/caja-sendto-module.c b/sendto/caja-sendto-module.c index ed580ba..dc453ae 100644 --- a/sendto/caja-sendto-module.c +++ b/sendto/caja-sendto-module.c @@ -37,6 +37,10 @@ caja_module_initialize (GTypeModule*module) { g_print ("Initializing caja-sendto extension\n"); caja_nste_register_type (module); +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ } void diff --git a/sendto/plugins/caja-burn/caja-burn.c b/sendto/plugins/caja-burn/caja-burn.c index b9cbb53..80aa7d5 100644 --- a/sendto/plugins/caja-burn/caja-burn.c +++ b/sendto/plugins/caja-burn/caja-burn.c @@ -50,6 +50,11 @@ gboolean init (NstPlugin *plugin) g_print ("Init caja burn plugin\n"); +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ + it = gtk_icon_theme_get_default (); gtk_icon_theme_append_search_path (it, DATADIR "/brasero/icons"); diff --git a/sendto/plugins/emailclient/emailclient.c b/sendto/plugins/emailclient/emailclient.c index dee9e07..5414398 100644 --- a/sendto/plugins/emailclient/emailclient.c +++ b/sendto/plugins/emailclient/emailclient.c @@ -82,6 +82,11 @@ init (NstPlugin *plugin) g_print ("Init email client plugin\n"); +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ + app_info = g_app_info_get_default_for_uri_scheme ("mailto"); if (app_info) { mail_cmd = g_strdup(g_app_info_get_executable (app_info)); diff --git a/sendto/plugins/gajim/gajim.c b/sendto/plugins/gajim/gajim.c index 303f4ab..29f3a15 100644 --- a/sendto/plugins/gajim/gajim.c +++ b/sendto/plugins/gajim/gajim.c @@ -262,6 +262,11 @@ init (NstPlugin *plugin) { g_print ("Init gajim plugin\n"); +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ + /* connect to gajim dbus service */ jid_table = g_hash_table_new (g_str_hash, g_str_equal); if (!init_dbus()) { diff --git a/sendto/plugins/pidgin/pidgin.c b/sendto/plugins/pidgin/pidgin.c index 14cd6a7..f180a3c 100644 --- a/sendto/plugins/pidgin/pidgin.c +++ b/sendto/plugins/pidgin/pidgin.c @@ -83,6 +83,11 @@ init (NstPlugin *plugin) g_print ("Init pidgin plugin\n"); +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ + error = NULL; connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error); if(error != NULL) { diff --git a/sendto/plugins/removable-devices/removable-devices.c b/sendto/plugins/removable-devices/removable-devices.c index 1b09b19..0144be7 100644 --- a/sendto/plugins/removable-devices/removable-devices.c +++ b/sendto/plugins/removable-devices/removable-devices.c @@ -151,6 +151,11 @@ init (NstPlugin *plugin) { g_print ("Init removable-devices plugin\n"); +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ + vol_monitor = g_volume_monitor_get (); cb = gtk_combo_box_new (); diff --git a/sendto/plugins/upnp/upnp.c b/sendto/plugins/upnp/upnp.c index b7000c9..7b6775b 100644 --- a/sendto/plugins/upnp/upnp.c +++ b/sendto/plugins/upnp/upnp.c @@ -201,6 +201,11 @@ init (NstPlugin *plugin) GtkCellRenderer *renderer; char *upload_cmd; +#ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); +#endif /* ENABLE_NLS */ + upload_cmd = g_find_program_in_path ("gupnp-upload"); if (upload_cmd == NULL) return FALSE; -- cgit v1.2.1