Search
lxdream.org :: lxdream :: r508:ccd2c10edfe6
lxdream 0.9.1
released Jun 29
Download Now
changeset508:ccd2c10edfe6
parent507:4de0a4149afa
child509:d72564edc482
authornkeynes
dateSat Nov 10 04:45:29 2007 +0000 (12 years ago)
Tag translatable strings
src/gui/ctrl_dlg.c
src/gui/debug_win.c
src/gui/gdrom_menu.c
src/gui/gtkcb.c
src/gui/gtkui.c
src/gui/gtkui.h
src/gui/mmio_win.c
src/gui/path_dlg.c
1.1 --- a/src/gui/ctrl_dlg.c Sat Nov 10 04:44:51 2007 +0000
1.2 +++ b/src/gui/ctrl_dlg.c Sat Nov 10 04:45:29 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: ctrl_dlg.c,v 1.5 2007-10-31 11:53:35 nkeynes Exp $
1.6 + * $Id: ctrl_dlg.c,v 1.6 2007-11-10 04:45:29 nkeynes Exp $
1.7 *
1.8 * Define the main (emu) GTK window, along with its menubars,
1.9 * toolbars, etc.
1.10 @@ -51,7 +51,7 @@
1.11 {
1.12 gboolean keypress_mode = GPOINTER_TO_INT(g_object_get_data( G_OBJECT(widget), "keypress_mode"));
1.13 if( !keypress_mode ) {
1.14 - gtk_entry_set_text( GTK_ENTRY(widget), "<press key>" );
1.15 + gtk_entry_set_text( GTK_ENTRY(widget), _("<press key>") );
1.16 g_object_set_data( G_OBJECT(widget), "keypress_mode", GINT_TO_POINTER(TRUE) );
1.17 }
1.18 return FALSE;
1.19 @@ -78,7 +78,7 @@
1.20 switch( event->keyval ) {
1.21 case GDK_Return:
1.22 case GDK_KP_Enter:
1.23 - gtk_entry_set_text( GTK_ENTRY(widget), "<press key>" );
1.24 + gtk_entry_set_text( GTK_ENTRY(widget), _("<press key>") );
1.25 g_object_set_data( G_OBJECT(widget), "keypress_mode", GINT_TO_POINTER(TRUE) );
1.26 return TRUE;
1.27 case GDK_BackSpace:
1.28 @@ -177,7 +177,7 @@
1.29 }
1.30 }
1.31 gtk_container_set_focus_chain( GTK_CONTAINER(table), focus_chain );
1.32 - gtk_gui_run_property_dialog( "Controller Configuration", table, controller_config_done );
1.33 + gtk_gui_run_property_dialog( _("Controller Configuration"), table, controller_config_done );
1.34 }
1.35
1.36
1.37 @@ -197,7 +197,7 @@
1.38 }
1.39 }
1.40 if( maple_device_config[i].name == NULL ) {
1.41 - gui_error_dialog( "No configuration page available for device type" );
1.42 + gui_error_dialog( _("No configuration page available for device type") );
1.43 }
1.44 }
1.45 return TRUE;
1.46 @@ -267,10 +267,10 @@
1.47 GtkWidget *combo, *button;
1.48 int active = 0;
1.49 maple_device_t device = maple_get_device(i,0);
1.50 - sprintf( buf, "Slot %d.", i );
1.51 + sprintf( buf, _("Slot %d."), i );
1.52 gtk_table_attach_defaults( GTK_TABLE(table), gtk_label_new(buf), 0, 1, i, i+1 );
1.53 combo = gtk_combo_box_new_text();
1.54 - gtk_combo_box_append_text( GTK_COMBO_BOX(combo), "<empty>" );
1.55 + gtk_combo_box_append_text( GTK_COMBO_BOX(combo), _("<empty>") );
1.56 for( j=0; devices[j] != NULL; j++ ) {
1.57 gtk_combo_box_append_text(GTK_COMBO_BOX(combo), devices[j]->name);
1.58 if( device != NULL && device->device_class == devices[j] ) {
1.59 @@ -298,5 +298,5 @@
1.60
1.61 void maple_dialog_run( )
1.62 {
1.63 - gtk_gui_run_property_dialog( "Controller Settings", maple_panel_new(), maple_dialog_done );
1.64 + gtk_gui_run_property_dialog( _("Controller Settings"), maple_panel_new(), maple_dialog_done );
1.65 }
2.1 --- a/src/gui/debug_win.c Sat Nov 10 04:44:51 2007 +0000
2.2 +++ b/src/gui/debug_win.c Sat Nov 10 04:45:29 2007 +0000
2.3 @@ -1,5 +1,5 @@
2.4 /**
2.5 - * $Id: debug_win.c,v 1.28 2007-10-31 12:23:19 nkeynes Exp $
2.6 + * $Id: debug_win.c,v 1.29 2007-11-10 04:45:29 nkeynes Exp $
2.7 * This file is responsible for the main debugger gui frame.
2.8 *
2.9 * Copyright (c) 2005 Nathan Keynes.
2.10 @@ -259,7 +259,7 @@
2.11 gtk_entry_set_text( data->page_field, addr );
2.12
2.13 if( !data->cpu->is_valid_page_func( from ) ) {
2.14 - arr[3] = "This page is currently unmapped";
2.15 + arr[3] = _("This page is currently unmapped");
2.16 gtk_clist_append( data->disasm_list, arr );
2.17 gtk_clist_set_foreground( data->disasm_list, 0, &gui_colour_error );
2.18 } else {
3.1 --- a/src/gui/gdrom_menu.c Sat Nov 10 04:44:51 2007 +0000
3.2 +++ b/src/gui/gdrom_menu.c Sat Nov 10 04:45:29 2007 +0000
3.3 @@ -1,5 +1,5 @@
3.4 /**
3.5 - * $Id: gdrom_menu.c,v 1.4 2007-10-31 11:22:10 nkeynes Exp $
3.6 + * $Id: gdrom_menu.c,v 1.5 2007-11-10 04:45:29 nkeynes Exp $
3.7 *
3.8 * Creates and manages the GD-Rom attachment menu.
3.9 *
3.10 @@ -18,6 +18,7 @@
3.11
3.12 #include <assert.h>
3.13 #include <libgen.h>
3.14 +#include <glib/gi18n.h>
3.15
3.16 #include "dream.h"
3.17 #include "dreamcast.h"
3.18 @@ -142,7 +143,7 @@
3.19 {
3.20 if( !gdrom_menu_adjusting ) {
3.21 const gchar *dir = lxdream_get_config_value(CONFIG_DEFAULT_PATH);
3.22 - open_file_dialog( "Open...", gdrom_menu_open_file, NULL, NULL, dir );
3.23 + open_file_dialog( _("Open..."), gdrom_menu_open_file, NULL, NULL, dir );
3.24 }
3.25 }
3.26
3.27 @@ -157,7 +158,7 @@
3.28 void gdrom_menu_build( GtkWidget *menu )
3.29 {
3.30 GSList *group = NULL;
3.31 - GtkWidget *empty = gtk_radio_menu_item_new_with_label( group, "Empty" );
3.32 + GtkWidget *empty = gtk_radio_menu_item_new_with_label( group, _("Empty") );
3.33 group = gtk_radio_menu_item_get_group( GTK_RADIO_MENU_ITEM(empty) );
3.34 g_signal_connect_after( empty, "activate", G_CALLBACK(gdrom_menu_empty_callback), NULL );
3.35 gtk_menu_shell_append( GTK_MENU_SHELL(menu), empty );
3.36 @@ -188,7 +189,7 @@
3.37 }
3.38 }
3.39 gtk_menu_shell_append( GTK_MENU_SHELL(menu), gtk_separator_menu_item_new() );
3.40 - GtkWidget *open = gtk_image_menu_item_new_with_label( "Open image file..." );
3.41 + GtkWidget *open = gtk_image_menu_item_new_with_label( _("Open image file...") );
3.42 g_signal_connect_after( open, "activate", G_CALLBACK(gdrom_menu_open_image_callback), NULL );
3.43 gtk_menu_shell_append( GTK_MENU_SHELL(menu), open );
3.44 gtk_widget_show_all(menu);
3.45 @@ -197,7 +198,7 @@
3.46 GtkWidget *gdrom_menu_new()
3.47 {
3.48 GtkWidget *menu = gtk_menu_new();
3.49 - gtk_menu_set_title( GTK_MENU(menu), "GD-Rom Settings" );
3.50 + gtk_menu_set_title( GTK_MENU(menu), _("GD-Rom Settings") );
3.51
3.52 gdrom_menu_build(menu);
3.53
4.1 --- a/src/gui/gtkcb.c Sat Nov 10 04:44:51 2007 +0000
4.2 +++ b/src/gui/gtkcb.c Sat Nov 10 04:45:29 2007 +0000
4.3 @@ -1,5 +1,5 @@
4.4 /**
4.5 - * $Id: gtkcb.c,v 1.8 2007-11-02 08:22:32 nkeynes Exp $
4.6 + * $Id: gtkcb.c,v 1.9 2007-11-10 04:45:29 nkeynes Exp $
4.7 *
4.8 * Action callbacks from the main window
4.9 *
4.10 @@ -33,7 +33,7 @@
4.11 gtk_file_filter_set_name( filter, patname );
4.12 gtk_file_chooser_add_filter( chooser, filter );
4.13 filter = gtk_file_filter_new();
4.14 - gtk_file_filter_set_name( filter, "All files" );
4.15 + gtk_file_filter_set_name( filter, _("All files") );
4.16 gtk_file_filter_add_pattern( filter, "*" );
4.17 gtk_file_chooser_add_filter( chooser, filter );
4.18 }
4.19 @@ -125,12 +125,12 @@
4.20 GtkWidget *file, *preview, *frame, *align;
4.21 GtkRequisition size;
4.22 const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
4.23 - file = gtk_file_chooser_dialog_new( "Load state...", NULL,
4.24 + file = gtk_file_chooser_dialog_new( _("Load state..."), NULL,
4.25 GTK_FILE_CHOOSER_ACTION_OPEN,
4.26 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
4.27 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
4.28 NULL );
4.29 - add_file_pattern( GTK_FILE_CHOOSER(file), "*.dst", "lxDream Save State (*.dst)" );
4.30 + add_file_pattern( GTK_FILE_CHOOSER(file), "*.dst", _("lxDream Save State (*.dst)") );
4.31 gtk_object_set_data( GTK_OBJECT(file), "file_action", action );
4.32
4.33 preview = gtk_image_new( );
4.34 @@ -160,7 +160,7 @@
4.35 void save_state_action_callback( GtkAction *action, gpointer user_data)
4.36 {
4.37 const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
4.38 - save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", "lxDream Save State (*.dst)", dir );
4.39 + save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", _("lxDream Save State (*.dst)"), dir );
4.40 }
4.41 void about_action_callback( GtkAction *action, gpointer user_data)
4.42 {
4.43 @@ -215,7 +215,9 @@
4.44
4.45 void debug_memory_action_callback( GtkAction *action, gpointer user_data)
4.46 {
4.47 - dump_window_new( APP_NAME " " APP_VERSION " :: Memory dump" );
4.48 + gchar *title = g_strdup_printf( APP_NAME " " APP_VERSION " :: %s", _("Memory dump") );
4.49 + dump_window_new( title );
4.50 + g_free(title);
4.51 }
4.52
4.53 void debug_mmio_action_callback( GtkAction *action, gpointer user_data)
4.54 @@ -226,7 +228,7 @@
4.55 void save_scene_action_callback( GtkAction *action, gpointer user_data)
4.56 {
4.57 const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
4.58 - save_file_dialog( "Save next scene...", pvr2_save_next_scene, "*.dsc", "lxdream scene file (*.dsc)", dir );
4.59 + save_file_dialog( _("Save next scene..."), pvr2_save_next_scene, "*.dsc", _("lxdream scene file (*.dsc)"), dir );
4.60 }
4.61
4.62 int debug_window_get_selected_row( debug_window_t data );
4.63 @@ -241,7 +243,7 @@
4.64 debug_window_t debug = gtk_gui_get_debugger();
4.65 int selected_row = debug_window_get_selected_row(debug);
4.66 if( selected_row == -1 ) {
4.67 - WARN( "No address selected, so can't run to it", NULL );
4.68 + WARN( _("No address selected, so can't run to it"), NULL );
4.69 } else {
4.70 debug_window_set_oneshot_breakpoint( debug, selected_row );
4.71 dreamcast_run();
5.1 --- a/src/gui/gtkui.c Sat Nov 10 04:44:51 2007 +0000
5.2 +++ b/src/gui/gtkui.c Sat Nov 10 04:45:29 2007 +0000
5.3 @@ -1,5 +1,5 @@
5.4 /**
5.5 - * $Id: gtkui.c,v 1.11 2007-11-02 08:22:32 nkeynes Exp $
5.6 + * $Id: gtkui.c,v 1.12 2007-11-10 04:45:29 nkeynes Exp $
5.7 *
5.8 * Core GTK-based user interface
5.9 *
5.10 @@ -16,9 +16,10 @@
5.11 * GNU General Public License for more details.
5.12 */
5.13
5.14 +#include "lxdream.h"
5.15 #include <sys/time.h>
5.16 #include <time.h>
5.17 -#include "dream.h"
5.18 +#include <glib/gi18n.h>
5.19 #include "dreamcast.h"
5.20 #include "display.h"
5.21 #include "gdrom/gdrom.h"
5.22 @@ -61,32 +62,32 @@
5.23
5.24 // UI Actions
5.25 static const GtkActionEntry ui_actions[] = {
5.26 - { "FileMenu", NULL, "_File" },
5.27 - { "SettingsMenu", NULL, "_Settings" },
5.28 - { "HelpMenu", NULL, "_Help" },
5.29 - { "Reset", GTK_STOCK_REFRESH, "_Reset", "<control>R", "Reset dreamcast", G_CALLBACK(reset_action_callback) },
5.30 - { "Pause", GTK_STOCK_MEDIA_PAUSE, "_Pause", NULL, "Pause dreamcast", G_CALLBACK(pause_action_callback) },
5.31 - { "Run", GTK_STOCK_MEDIA_PLAY, "Resume", NULL, "Resume", G_CALLBACK(resume_action_callback) },
5.32 - { "LoadState", GTK_STOCK_REVERT_TO_SAVED, "_Load state...", "F4", "Load an lxdream save state", G_CALLBACK(load_state_action_callback) },
5.33 - { "SaveState", GTK_STOCK_SAVE_AS, "_Save state...", "F3", "Create an lxdream save state", G_CALLBACK(save_state_action_callback) },
5.34 - { "Exit", GTK_STOCK_QUIT, "E_xit", NULL, "Exit lxdream", G_CALLBACK(exit_action_callback) },
5.35 - { "GdromSettings", NULL, "_GD-Rom..." },
5.36 - { "GdromUnmount", NULL, "_Empty" },
5.37 - { "GdromMount", GTK_STOCK_CDROM, "_Open Image...", "<control>O", "Mount a cdrom disc", G_CALLBACK(mount_action_callback) },
5.38 - { "PathSettings", NULL, "_Paths...", NULL, "Configure files and paths", G_CALLBACK(path_settings_callback) },
5.39 - { "AudioSettings", NULL, "_Audio...", NULL, "Configure audio output", G_CALLBACK(audio_settings_callback) },
5.40 - { "ControllerSettings", NULL, "_Controllers...", NULL, "Configure controllers", G_CALLBACK(maple_settings_callback) },
5.41 - { "NetworkSettings", NULL, "_Network...", NULL, "Configure network settings", G_CALLBACK(network_settings_callback) },
5.42 - { "VideoSettings", NULL, "_Video...", NULL, "Configure video output", G_CALLBACK(video_settings_callback) },
5.43 - { "About", GTK_STOCK_ABOUT, "_About...", NULL, "About lxdream", G_CALLBACK(about_action_callback) },
5.44 - { "DebugMenu", NULL, "_Debug" },
5.45 - { "Debugger", NULL, "_Debugger", NULL, "Open debugger window", G_CALLBACK(debugger_action_callback) },
5.46 - { "DebugMem", NULL, "View _Memory", NULL, "View memory dump", G_CALLBACK(debug_memory_action_callback) },
5.47 - { "DebugMmio", NULL, "View IO _Registers", NULL, "View MMIO Registers", G_CALLBACK(debug_mmio_action_callback) },
5.48 - { "SaveScene", NULL, "_Save Scene", NULL, "Save next rendered scene", G_CALLBACK(save_scene_action_callback) },
5.49 - { "SingleStep", GTK_STOCK_REDO, "_Single Step", NULL, "Single step", G_CALLBACK(debug_step_action_callback) },
5.50 - { "RunTo", GTK_STOCK_GOTO_LAST, "Run _To", NULL, "Run to", G_CALLBACK( debug_runto_action_callback) },
5.51 - { "SetBreakpoint", GTK_STOCK_CLOSE, "_Breakpoint", NULL, "Toggle breakpoint", G_CALLBACK( debug_breakpoint_action_callback) }
5.52 + { "FileMenu", NULL, N_("_File") },
5.53 + { "SettingsMenu", NULL, N_("_Settings") },
5.54 + { "HelpMenu", NULL, N_("_Help") },
5.55 + { "Reset", GTK_STOCK_REFRESH, N_("_Reset"), "<control>R", N_("Reset dreamcast"), G_CALLBACK(reset_action_callback) },
5.56 + { "Pause", GTK_STOCK_MEDIA_PAUSE, N_("_Pause"), NULL, N_("Pause dreamcast"), G_CALLBACK(pause_action_callback) },
5.57 + { "Run", GTK_STOCK_MEDIA_PLAY, N_("Resume"), NULL, N_("Resume"), G_CALLBACK(resume_action_callback) },
5.58 + { "LoadState", GTK_STOCK_REVERT_TO_SAVED, N_("_Load state..."), "F4", N_("Load an lxdream save state"), G_CALLBACK(load_state_action_callback) },
5.59 + { "SaveState", GTK_STOCK_SAVE_AS, N_("_Save state..."), "F3", N_("Create an lxdream save state"), G_CALLBACK(save_state_action_callback) },
5.60 + { "Exit", GTK_STOCK_QUIT, N_("E_xit"), NULL, N_("Exit lxdream"), G_CALLBACK(exit_action_callback) },
5.61 + { "GdromSettings", NULL, N_("_GD-Rom...") },
5.62 + { "GdromUnmount", NULL, N_("_Empty") },
5.63 + { "GdromMount", GTK_STOCK_CDROM, N_("_Open Image..."), "<control>O", N_("Mount a cdrom disc"), G_CALLBACK(mount_action_callback) },
5.64 + { "PathSettings", NULL, N_("_Paths..."), NULL, N_("Configure files and paths"), G_CALLBACK(path_settings_callback) },
5.65 + { "AudioSettings", NULL, N_("_Audio..."), NULL, N_("Configure audio output"), G_CALLBACK(audio_settings_callback) },
5.66 + { "ControllerSettings", NULL, N_("_Controllers..."), NULL, N_("Configure controllers"), G_CALLBACK(maple_settings_callback) },
5.67 + { "NetworkSettings", NULL, N_("_Network..."), NULL, N_("Configure network settings"), G_CALLBACK(network_settings_callback) },
5.68 + { "VideoSettings", NULL, N_("_Video..."), NULL,N_( "Configure video output"), G_CALLBACK(video_settings_callback) },
5.69 + { "About", GTK_STOCK_ABOUT, N_("_About..."), NULL, N_("About lxdream"), G_CALLBACK(about_action_callback) },
5.70 + { "DebugMenu", NULL, N_("_Debug") },
5.71 + { "Debugger", NULL, N_("_Debugger"), NULL, N_("Open debugger window"), G_CALLBACK(debugger_action_callback) },
5.72 + { "DebugMem", NULL, N_("View _Memory"), NULL, N_("View memory dump"), G_CALLBACK(debug_memory_action_callback) },
5.73 + { "DebugMmio", NULL, N_("View IO _Registers"), NULL, N_("View MMIO Registers"), G_CALLBACK(debug_mmio_action_callback) },
5.74 + { "SaveScene", NULL, N_("_Save Scene"), NULL, N_("Save next rendered scene"), G_CALLBACK(save_scene_action_callback) },
5.75 + { "SingleStep", GTK_STOCK_REDO, N_("_Single Step"), NULL, N_("Single step"), G_CALLBACK(debug_step_action_callback) },
5.76 + { "RunTo", GTK_STOCK_GOTO_LAST, N_("Run _To"), NULL, N_("Run to"), G_CALLBACK( debug_runto_action_callback) },
5.77 + { "SetBreakpoint", GTK_STOCK_CLOSE, N_("_Breakpoint"), NULL, N_("Toggle breakpoint"), G_CALLBACK( debug_breakpoint_action_callback) }
5.78 };
5.79 static const GtkToggleActionEntry ui_toggle_actions[] = {
5.80 { "FullScreen", NULL, "_Full Screen", "<alt>Return", "Toggle full screen video", G_CALLBACK(fullscreen_toggle_callback), 0 },
5.81 @@ -193,6 +194,7 @@
5.82 gtk_gui_alloc_resources();
5.83
5.84 global_action_group = gtk_action_group_new("MenuActions");
5.85 + gtk_action_group_set_translation_domain( global_action_group, NULL );
5.86 gtk_action_group_add_actions( global_action_group, ui_actions, G_N_ELEMENTS(ui_actions), NULL );
5.87 gtk_action_group_add_toggle_actions( global_action_group, ui_toggle_actions, G_N_ELEMENTS(ui_toggle_actions), NULL );
5.88 gtk_gui_enable_action("AudioSettings", FALSE);
5.89 @@ -264,7 +266,9 @@
5.90 GtkWidget *gdrommenuitem = gtk_ui_manager_get_widget(global_ui_manager, "/DebugMenu/FileMenu/GdromSettings");
5.91 GtkWidget *gdrommenu = gdrom_menu_new();
5.92 gtk_menu_item_set_submenu( GTK_MENU_ITEM(gdrommenuitem), gdrommenu );
5.93 - debug_win = debug_window_new( APP_NAME " " APP_VERSION " :: Debugger", menubar, toolbar, accel_group );
5.94 + gchar *title = g_strdup_printf( APP_NAME " " APP_VERSION " :: %s", _("Debugger"));
5.95 + debug_win = debug_window_new( title, menubar, toolbar, accel_group );
5.96 + g_free(title);
5.97 }
5.98 }
5.99
5.100 @@ -273,7 +277,9 @@
5.101 if( mmio_win ) {
5.102 mmio_window_show(mmio_win, TRUE);
5.103 } else {
5.104 - mmio_win = mmio_window_new( APP_NAME " " APP_VERSION " :: MMIO Registers" );
5.105 + gchar *title = g_strdup_printf( APP_NAME " " APP_VERSION " :: %s", _("MMIO Registers"));
5.106 + mmio_win = mmio_window_new( title );
5.107 + g_free(title);
5.108 }
5.109 }
5.110
6.1 --- a/src/gui/gtkui.h Sat Nov 10 04:44:51 2007 +0000
6.2 +++ b/src/gui/gtkui.h Sat Nov 10 04:45:29 2007 +0000
6.3 @@ -1,5 +1,5 @@
6.4 /**
6.5 - * $Id: gtkui.h,v 1.11 2007-11-02 08:22:32 nkeynes Exp $
6.6 + * $Id: gtkui.h,v 1.12 2007-11-10 04:45:29 nkeynes Exp $
6.7 *
6.8 * Core GTK-based user interface
6.9 *
6.10 @@ -19,8 +19,9 @@
6.11 #ifndef __lxdream_gtkui_H
6.12 #define __lxdream_gtkui_H
6.13
6.14 +#include "lxdream.h"
6.15 #include <gtk/gtk.h>
6.16 -#include "lxdream.h"
6.17 +#include <glib/gi18n.h>
6.18 #include "gui.h"
6.19 #include "cpu.h"
6.20
7.1 --- a/src/gui/mmio_win.c Sat Nov 10 04:44:51 2007 +0000
7.2 +++ b/src/gui/mmio_win.c Sat Nov 10 04:45:29 2007 +0000
7.3 @@ -1,5 +1,5 @@
7.4 /**
7.5 - * $Id: mmio_win.c,v 1.10 2007-10-31 12:23:19 nkeynes Exp $
7.6 + * $Id: mmio_win.c,v 1.11 2007-11-10 04:45:29 nkeynes Exp $
7.7 *
7.8 * Implements the MMIO register viewing window
7.9 *
7.10 @@ -107,11 +107,11 @@
7.11 gtk_clist_set_column_justification(list, 0, GTK_JUSTIFY_CENTER );
7.12 gtk_clist_set_column_justification(list, 2, GTK_JUSTIFY_CENTER );
7.13 gtk_clist_set_column_justification(list, 3, GTK_JUSTIFY_CENTER );
7.14 - gtk_clist_set_column_title(list, 0, "Address");
7.15 - gtk_clist_set_column_title(list, 1, "Register");
7.16 - gtk_clist_set_column_title(list, 2, "Value");
7.17 - gtk_clist_set_column_title(list, 3, "Bit Pattern");
7.18 - gtk_clist_set_column_title(list, 4, "Description");
7.19 + gtk_clist_set_column_title(list, 0, _("Address"));
7.20 + gtk_clist_set_column_title(list, 1, _("Register"));
7.21 + gtk_clist_set_column_title(list, 2, _("Value"));
7.22 + gtk_clist_set_column_title(list, 3, _("Bit Pattern"));
7.23 + gtk_clist_set_column_title(list, 4, _("Description"));
7.24 gtk_clist_column_titles_show(list);
7.25 gtk_widget_modify_font( GTK_WIDGET(list), gui_fixed_font );
7.26 tab = gtk_label_new(_(name));
7.27 @@ -120,7 +120,7 @@
7.28 vbox = GTK_VBOX(gtk_vbox_new( FALSE, 0 ));
7.29 gtk_container_add( GTK_CONTAINER(vbox), GTK_WIDGET(scroll) );
7.30
7.31 - trace_button = GTK_CHECK_BUTTON(gtk_check_button_new_with_label("Trace access"));
7.32 + trace_button = GTK_CHECK_BUTTON(gtk_check_button_new_with_label(_("Trace access")));
7.33 gtk_container_add( GTK_CONTAINER(vbox), GTK_WIDGET(trace_button) );
7.34 gtk_box_set_child_packing( GTK_BOX(vbox), GTK_WIDGET(trace_button),
7.35 FALSE, FALSE, 0, GTK_PACK_START );
8.1 --- a/src/gui/path_dlg.c Sat Nov 10 04:44:51 2007 +0000
8.2 +++ b/src/gui/path_dlg.c Sat Nov 10 04:45:29 2007 +0000
8.3 @@ -1,5 +1,5 @@
8.4 /**
8.5 - * $Id: path_dlg.c,v 1.4 2007-10-31 12:05:23 nkeynes Exp $
8.6 + * $Id: path_dlg.c,v 1.5 2007-11-10 04:45:29 nkeynes Exp $
8.7 *
8.8 * Define the main (emu) GTK window, along with its menubars,
8.9 * toolbars, etc.
8.10 @@ -25,8 +25,8 @@
8.11 #include "config.h"
8.12 #include "gui/gtkui.h"
8.13
8.14 -static const gchar *path_label[] = { "Bios rom", "Flash rom", "Default disc path",
8.15 - "Save state path", "Bootstrap IP.BIN" };
8.16 +static const gchar *path_label[] = { N_("Bios rom"), N_("Flash rom"), N_("Default disc path"),
8.17 + N_("Save state path"), N_("Bootstrap IP.BIN") };
8.18 static const int path_id[] = { CONFIG_BIOS_PATH, CONFIG_FLASH_PATH, CONFIG_DEFAULT_PATH,
8.19 CONFIG_SAVE_PATH, CONFIG_BOOTSTRAP };
8.20 static GtkFileChooserAction path_action[] = {
8.21 @@ -41,7 +41,7 @@
8.22 static gboolean path_file_button_clicked( GtkWidget *button, gpointer user_data )
8.23 {
8.24 GtkWidget *entry = GTK_WIDGET(user_data);
8.25 - GtkWidget *file = gtk_file_chooser_dialog_new( "Select file", NULL,
8.26 + GtkWidget *file = gtk_file_chooser_dialog_new( _("Select file"), NULL,
8.27 GTK_FILE_CHOOSER_ACTION_OPEN,
8.28 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
8.29 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
8.30 @@ -62,7 +62,7 @@
8.31 static gboolean path_dir_button_clicked( GtkWidget *button, gpointer user_data )
8.32 {
8.33 GtkWidget *entry = GTK_WIDGET(user_data);
8.34 - GtkWidget *file = gtk_file_chooser_dialog_new( "Select file", NULL,
8.35 + GtkWidget *file = gtk_file_chooser_dialog_new( _("Select file"), NULL,
8.36 GTK_FILE_CHOOSER_ACTION_OPEN,
8.37 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
8.38 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
8.39 @@ -88,7 +88,7 @@
8.40 for( i=0; i<5; i++ ) {
8.41 GtkWidget *text = path_entry[i] = gtk_entry_new();
8.42 GtkWidget *button = gtk_button_new();
8.43 - gtk_table_attach( GTK_TABLE(table), gtk_label_new(path_label[i]), 0, 1, i, i+1,
8.44 + gtk_table_attach( GTK_TABLE(table), gtk_label_new(Q_(path_label[i])), 0, 1, i, i+1,
8.45 GTK_SHRINK, GTK_SHRINK, 0, 0);
8.46 gtk_entry_set_text( GTK_ENTRY(text), lxdream_get_config_value(path_id[i]) );
8.47 gtk_entry_set_width_chars( GTK_ENTRY(text), 48 );
8.48 @@ -124,5 +124,5 @@
8.49
8.50 void path_dialog_run( void )
8.51 {
8.52 - gtk_gui_run_property_dialog( "Path Settings", path_panel_new(), path_panel_done );
8.53 + gtk_gui_run_property_dialog( _("Path Settings"), path_panel_new(), path_panel_done );
8.54 }
.