Skip to content

Commit

Permalink
Failed to resolve the path to caja-extensions.mo on guix system
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj committed Jul 16, 2022
1 parent 8f18ddd commit 500aba9
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gksu/libcaja-gksu.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,10 @@ caja_module_initialize (GTypeModule *module)
{
g_print ("Initializing caja-gksu extension\n");
gksu_context_menu_register_type (module);
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
}

void
Expand Down
4 changes: 4 additions & 0 deletions image-converter/image-converter.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ caja_module_initialize (GTypeModule *module)

caja_image_converter_register_type (module);
type_list[0] = CAJA_TYPE_IMAGE_CONVERTER;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
}

void
Expand Down
4 changes: 4 additions & 0 deletions open-terminal/open-terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ caja_module_initialize (GTypeModule *module)

caja_open_terminal_register_type (module);
type_list[0] = CAJA_TYPE_OPEN_TERMINAL;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
}

void
Expand Down
4 changes: 4 additions & 0 deletions sendto/caja-sendto-module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions sendto/plugins/caja-burn/caja-burn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
5 changes: 5 additions & 0 deletions sendto/plugins/emailclient/emailclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,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));
Expand Down
5 changes: 5 additions & 0 deletions sendto/plugins/gajim/gajim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
5 changes: 5 additions & 0 deletions sendto/plugins/pidgin/pidgin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 5 additions & 0 deletions sendto/plugins/removable-devices/removable-devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();

Expand Down
5 changes: 5 additions & 0 deletions sendto/plugins/upnp/upnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions share/caja-share.c
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,10 @@ caja_module_initialize (GTypeModule *module)
g_print ("Initializing caja-share extension\n");

caja_share_register_type (module);
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
}

/* Perform module-specific shutdown. */
Expand Down
4 changes: 4 additions & 0 deletions wallpaper/caja-wallpaper-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ caja_module_initialize (GTypeModule*module)
{
g_print ("Initializing caja-wallpaper extension\n");
caja_cwe_register_type (module);
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
}

void
Expand Down
4 changes: 4 additions & 0 deletions xattr-tags/caja-xattr-tags-extension.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ caja_module_initialize (GTypeModule *module)
{
g_print ("Initializing caja-xattr-tags extension\n");
caja_xattr_tags_register_type (module);
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
#endif /* ENABLE_NLS */
}

void
Expand Down

0 comments on commit 500aba9

Please sign in to comment.