]> www.fi.muni.cz Git - evince.git/blobdiff - shell/main.c
Fixed wrong translation.
[evince.git] / shell / main.c
index 01d6c318a8a9c896e3294767435f6eb2c840a11f..cd6429307bb559d59460af84d9e3221cbc71ea75 100644 (file)
@@ -307,6 +307,7 @@ main (int argc, char *argv[])
 #if WITH_GNOME
        GnomeProgram *program;
 #else
+       char *accel_filename;
        GError *error = NULL;
 #endif
 
@@ -318,6 +319,7 @@ main (int argc, char *argv[])
        bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
        textdomain(GETTEXT_PACKAGE);
        g_option_context_add_main_entries (context, goption_options, GETTEXT_PACKAGE);
+       g_option_context_set_translation_domain(context, GETTEXT_PACKAGE);
 #else
        g_option_context_add_main_entries (context, goption_options, NULL);
 #endif
@@ -339,6 +341,9 @@ main (int argc, char *argv[])
        g_option_context_free (context);
        
        gnome_vfs_init ();
+
+       accel_filename = g_build_filename (ev_dot_dir (), "accels", NULL);
+       gtk_accel_map_load (accel_filename);
 #endif
 
        args = arguments_parse ();
@@ -379,6 +384,9 @@ main (int argc, char *argv[])
 
 #if WITH_GNOME
        gnome_accelerators_sync ();
+#else
+       gtk_accel_map_save (accel_filename);
+       g_free (accel_filename);
 #endif
 
        ev_file_helpers_shutdown ();