Search
lxdream.org :: lxdream/src/gui/gtkcb.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gtkcb.c
changeset 508:ccd2c10edfe6
prev486:9af294489aad
author nkeynes
date Sat Nov 10 04:45:29 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Tag translatable strings
file annotate diff log raw
1.1 --- a/src/gui/gtkcb.c Fri Nov 02 08:22:33 2007 +0000
1.2 +++ b/src/gui/gtkcb.c Sat Nov 10 04:45:29 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gtkcb.c,v 1.8 2007-11-02 08:22:32 nkeynes Exp $
1.6 + * $Id: gtkcb.c,v 1.9 2007-11-10 04:45:29 nkeynes Exp $
1.7 *
1.8 * Action callbacks from the main window
1.9 *
1.10 @@ -33,7 +33,7 @@
1.11 gtk_file_filter_set_name( filter, patname );
1.12 gtk_file_chooser_add_filter( chooser, filter );
1.13 filter = gtk_file_filter_new();
1.14 - gtk_file_filter_set_name( filter, "All files" );
1.15 + gtk_file_filter_set_name( filter, _("All files") );
1.16 gtk_file_filter_add_pattern( filter, "*" );
1.17 gtk_file_chooser_add_filter( chooser, filter );
1.18 }
1.19 @@ -125,12 +125,12 @@
1.20 GtkWidget *file, *preview, *frame, *align;
1.21 GtkRequisition size;
1.22 const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.23 - file = gtk_file_chooser_dialog_new( "Load state...", NULL,
1.24 + file = gtk_file_chooser_dialog_new( _("Load state..."), NULL,
1.25 GTK_FILE_CHOOSER_ACTION_OPEN,
1.26 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
1.27 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
1.28 NULL );
1.29 - add_file_pattern( GTK_FILE_CHOOSER(file), "*.dst", "lxDream Save State (*.dst)" );
1.30 + add_file_pattern( GTK_FILE_CHOOSER(file), "*.dst", _("lxDream Save State (*.dst)") );
1.31 gtk_object_set_data( GTK_OBJECT(file), "file_action", action );
1.32
1.33 preview = gtk_image_new( );
1.34 @@ -160,7 +160,7 @@
1.35 void save_state_action_callback( GtkAction *action, gpointer user_data)
1.36 {
1.37 const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.38 - save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", "lxDream Save State (*.dst)", dir );
1.39 + save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", _("lxDream Save State (*.dst)"), dir );
1.40 }
1.41 void about_action_callback( GtkAction *action, gpointer user_data)
1.42 {
1.43 @@ -215,7 +215,9 @@
1.44
1.45 void debug_memory_action_callback( GtkAction *action, gpointer user_data)
1.46 {
1.47 - dump_window_new( APP_NAME " " APP_VERSION " :: Memory dump" );
1.48 + gchar *title = g_strdup_printf( APP_NAME " " APP_VERSION " :: %s", _("Memory dump") );
1.49 + dump_window_new( title );
1.50 + g_free(title);
1.51 }
1.52
1.53 void debug_mmio_action_callback( GtkAction *action, gpointer user_data)
1.54 @@ -226,7 +228,7 @@
1.55 void save_scene_action_callback( GtkAction *action, gpointer user_data)
1.56 {
1.57 const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.58 - save_file_dialog( "Save next scene...", pvr2_save_next_scene, "*.dsc", "lxdream scene file (*.dsc)", dir );
1.59 + save_file_dialog( _("Save next scene..."), pvr2_save_next_scene, "*.dsc", _("lxdream scene file (*.dsc)"), dir );
1.60 }
1.61
1.62 int debug_window_get_selected_row( debug_window_t data );
1.63 @@ -241,7 +243,7 @@
1.64 debug_window_t debug = gtk_gui_get_debugger();
1.65 int selected_row = debug_window_get_selected_row(debug);
1.66 if( selected_row == -1 ) {
1.67 - WARN( "No address selected, so can't run to it", NULL );
1.68 + WARN( _("No address selected, so can't run to it"), NULL );
1.69 } else {
1.70 debug_window_set_oneshot_breakpoint( debug, selected_row );
1.71 dreamcast_run();
.