Search
lxdream.org :: lxdream/src/gui/ctrl_dlg.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/ctrl_dlg.c
changeset 508:ccd2c10edfe6
prev480:d28c2992f5ee
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/ctrl_dlg.c Wed Oct 31 11:53:35 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 }
.