diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-autorun-software.c | 2 | ||||
-rw-r--r-- | src/caja-connect-server-dialog-main.c | 4 | ||||
-rw-r--r-- | src/caja-file-management-properties-main.c | 2 | ||||
-rw-r--r-- | src/caja-main.c | 2 | ||||
-rw-r--r-- | src/caja-navigation-window-menus.c | 2 | ||||
-rw-r--r-- | src/caja-spatial-window.c | 2 | ||||
-rw-r--r-- | src/caja-window-menus.c | 4 | ||||
-rw-r--r-- | src/caja-window-toolbars.c | 2 | ||||
-rw-r--r-- | src/caja-window.c | 2 | ||||
-rw-r--r-- | src/file-manager/fm-desktop-icon-view.c | 2 | ||||
-rw-r--r-- | src/file-manager/fm-directory-view.c | 2 | ||||
-rw-r--r-- | src/file-manager/fm-icon-view.c | 2 | ||||
-rw-r--r-- | src/file-manager/fm-list-view.c | 2 |
13 files changed, 30 insertions, 0 deletions
diff --git a/src/caja-autorun-software.c b/src/caja-autorun-software.c index ec2ccf74..c7e477c8 100644 --- a/src/caja-autorun-software.c +++ b/src/caja-autorun-software.c @@ -273,9 +273,11 @@ main (int argc, char *argv[]) GFile *file; GMount *mount; +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ gtk_init (&argc, &argv); diff --git a/src/caja-connect-server-dialog-main.c b/src/caja-connect-server-dialog-main.c index 2d646c67..0f531869 100644 --- a/src/caja-connect-server-dialog-main.c +++ b/src/caja-connect-server-dialog-main.c @@ -109,15 +109,19 @@ main (int argc, char *argv[]) GOptionContext *context; GError *error; +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ error = NULL; /* Translators: This is the --help description for the connect to server app, the initial newlines are between the command line arg and the description */ context = g_option_context_new (N_("\n\nAdd connect to server mount")); +#ifdef ENABLE_NLS g_option_context_set_translation_domain (context, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_option_context_add_group (context, gtk_get_option_group (TRUE)); if (!g_option_context_parse (context, &argc, &argv, &error)) diff --git a/src/caja-file-management-properties-main.c b/src/caja-file-management-properties-main.c index 5cdebdcf..1e8b6b1b 100644 --- a/src/caja-file-management-properties-main.c +++ b/src/caja-file-management-properties-main.c @@ -45,9 +45,11 @@ caja_file_management_properties_main_close_callback (GtkDialog *dialog, int main (int argc, char *argv[]) { +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ gtk_init (&argc, &argv); diff --git a/src/caja-main.c b/src/caja-main.c index 567cee42..c31938aa 100644 --- a/src/caja-main.c +++ b/src/caja-main.c @@ -243,10 +243,12 @@ main (int argc, char *argv[]) eel_make_warnings_and_criticals_stop_in_debugger (); } +#ifdef ENABLE_NLS /* Initialize gettext support */ bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_set_prgname ("caja"); diff --git a/src/caja-navigation-window-menus.c b/src/caja-navigation-window-menus.c index 2206c356..44257d05 100644 --- a/src/caja-navigation-window-menus.c +++ b/src/caja-navigation-window-menus.c @@ -946,7 +946,9 @@ caja_navigation_window_initialize_actions (CajaNavigationWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("NavigationActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ window->details->navigation_action_group = action_group; gtk_action_group_add_actions (action_group, navigation_entries, G_N_ELEMENTS (navigation_entries), diff --git a/src/caja-spatial-window.c b/src/caja-spatial-window.c index e3eecfea..41fdc803 100644 --- a/src/caja-spatial-window.c +++ b/src/caja-spatial-window.c @@ -1045,7 +1045,9 @@ caja_spatial_window_init (CajaSpatialWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("SpatialActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ window->details->spatial_action_group = action_group; gtk_action_group_add_actions (action_group, spatial_entries, G_N_ELEMENTS (spatial_entries), diff --git a/src/caja-window-menus.c b/src/caja-window-menus.c index b3380a85..ec32f8c4 100644 --- a/src/caja-window-menus.c +++ b/src/caja-window-menus.c @@ -990,7 +990,9 @@ caja_window_initialize_menus (CajaWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("ShellActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ window->details->main_action_group = action_group; gtk_action_group_add_actions (action_group, main_entries, G_N_ELEMENTS (main_entries), @@ -1190,7 +1192,9 @@ caja_window_load_extension_menus (CajaWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("ExtensionsMenuGroup"); window->details->extensions_menu_action_group = action_group; +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ G_GNUC_END_IGNORE_DEPRECATIONS; gtk_ui_manager_insert_action_group (window->details->ui_manager, action_group, 0); g_object_unref (action_group); /* owned by ui manager */ diff --git a/src/caja-window-toolbars.c b/src/caja-window-toolbars.c index 7cf2f46b..a7c5cdcc 100644 --- a/src/caja-window-toolbars.c +++ b/src/caja-window-toolbars.c @@ -176,7 +176,9 @@ caja_navigation_window_load_extension_toolbar_items (CajaNavigationWindow *windo G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("ExtensionsToolbarGroup"); window->details->extensions_toolbar_action_group = action_group; +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ G_GNUC_END_IGNORE_DEPRECATIONS; gtk_ui_manager_insert_action_group (ui_manager, action_group, -1); g_object_unref (action_group); /* owned by ui manager */ diff --git a/src/caja-window.c b/src/caja-window.c index 6d3fa5f2..22410050 100644 --- a/src/caja-window.c +++ b/src/caja-window.c @@ -1423,7 +1423,9 @@ load_view_as_menu (CajaWindow *window) window->details->short_list_merge_id = merge_id; G_GNUC_BEGIN_IGNORE_DEPRECATIONS; window->details->view_as_action_group = gtk_action_group_new ("ViewAsGroup"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (window->details->view_as_action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ G_GNUC_END_IGNORE_DEPRECATIONS; window->details->view_as_radio_action = NULL; diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c index ff0fc8eb..5decd45c 100644 --- a/src/file-manager/fm-desktop-icon-view.c +++ b/src/file-manager/fm-desktop-icon-view.c @@ -803,7 +803,9 @@ real_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("DesktopViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ desktop_view->priv->desktop_action_group = action_group; gtk_action_group_add_actions (action_group, desktop_view_entries, G_N_ELEMENTS (desktop_view_entries), diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 70db80d8..67f10bbb 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -7775,7 +7775,9 @@ real_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("DirViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ view->details->dir_action_group = action_group; gtk_action_group_add_actions (action_group, directory_view_entries, G_N_ELEMENTS (directory_view_entries), diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index 4af14ea6..1c600fa9 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -1822,7 +1822,9 @@ fm_icon_view_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("IconViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ icon_view->details->icon_action_group = action_group; gtk_action_group_add_actions (action_group, icon_view_entries, G_N_ELEMENTS (icon_view_entries), diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index c3980b90..8db0b2ca 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -2648,7 +2648,9 @@ fm_list_view_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("ListViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ list_view->details->list_action_group = action_group; gtk_action_group_add_actions (action_group, list_view_entries, G_N_ELEMENTS (list_view_entries), |