summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/caja-autorun-software.c2
-rw-r--r--src/caja-connect-server-dialog-main.c4
-rw-r--r--src/caja-file-management-properties-main.c2
-rw-r--r--src/caja-main.c2
-rw-r--r--src/caja-navigation-window-menus.c2
-rw-r--r--src/caja-spatial-window.c2
-rw-r--r--src/caja-window-menus.c4
-rw-r--r--src/caja-window-toolbars.c2
-rw-r--r--src/caja-window.c2
-rw-r--r--src/file-manager/fm-desktop-icon-view.c2
-rw-r--r--src/file-manager/fm-directory-view.c2
-rw-r--r--src/file-manager/fm-icon-view.c2
-rw-r--r--src/file-manager/fm-list-view.c2
13 files changed, 30 insertions, 0 deletions
diff --git a/src/caja-autorun-software.c b/src/caja-autorun-software.c
index c389144e..fef3c483 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 9a9b3cf7..a31e3bd3 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 b2b79552..355a0bd4 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 1fb7e360..76fc2752 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 08b47212..93867743 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 50e00a2d..5fcb39fb 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 953f4fb5..2e2b7b8b 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 76426319..87fa627f 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 640932c2..37dbb4ee 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 aa40b2db..9d096fd2 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 ad10b01a..9425887b 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 e8e33a49..828ac59f 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 e544cdd8..39e4bcdb 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),