Search
lxdream.org :: lxdream/src/gui/path_dlg.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/path_dlg.c
changeset 508:ccd2c10edfe6
prev481:3b2d6c5a19ad
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/path_dlg.c Wed Oct 31 12:05:23 2007 +0000
1.2 +++ b/src/gui/path_dlg.c Sat Nov 10 04:45:29 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: path_dlg.c,v 1.4 2007-10-31 12:05:23 nkeynes Exp $
1.6 + * $Id: path_dlg.c,v 1.5 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 @@ -25,8 +25,8 @@
1.11 #include "config.h"
1.12 #include "gui/gtkui.h"
1.13
1.14 -static const gchar *path_label[] = { "Bios rom", "Flash rom", "Default disc path",
1.15 - "Save state path", "Bootstrap IP.BIN" };
1.16 +static const gchar *path_label[] = { N_("Bios rom"), N_("Flash rom"), N_("Default disc path"),
1.17 + N_("Save state path"), N_("Bootstrap IP.BIN") };
1.18 static const int path_id[] = { CONFIG_BIOS_PATH, CONFIG_FLASH_PATH, CONFIG_DEFAULT_PATH,
1.19 CONFIG_SAVE_PATH, CONFIG_BOOTSTRAP };
1.20 static GtkFileChooserAction path_action[] = {
1.21 @@ -41,7 +41,7 @@
1.22 static gboolean path_file_button_clicked( GtkWidget *button, gpointer user_data )
1.23 {
1.24 GtkWidget *entry = GTK_WIDGET(user_data);
1.25 - GtkWidget *file = gtk_file_chooser_dialog_new( "Select file", NULL,
1.26 + GtkWidget *file = gtk_file_chooser_dialog_new( _("Select file"), NULL,
1.27 GTK_FILE_CHOOSER_ACTION_OPEN,
1.28 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
1.29 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
1.30 @@ -62,7 +62,7 @@
1.31 static gboolean path_dir_button_clicked( GtkWidget *button, gpointer user_data )
1.32 {
1.33 GtkWidget *entry = GTK_WIDGET(user_data);
1.34 - GtkWidget *file = gtk_file_chooser_dialog_new( "Select file", NULL,
1.35 + GtkWidget *file = gtk_file_chooser_dialog_new( _("Select file"), NULL,
1.36 GTK_FILE_CHOOSER_ACTION_OPEN,
1.37 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
1.38 GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
1.39 @@ -88,7 +88,7 @@
1.40 for( i=0; i<5; i++ ) {
1.41 GtkWidget *text = path_entry[i] = gtk_entry_new();
1.42 GtkWidget *button = gtk_button_new();
1.43 - gtk_table_attach( GTK_TABLE(table), gtk_label_new(path_label[i]), 0, 1, i, i+1,
1.44 + gtk_table_attach( GTK_TABLE(table), gtk_label_new(Q_(path_label[i])), 0, 1, i, i+1,
1.45 GTK_SHRINK, GTK_SHRINK, 0, 0);
1.46 gtk_entry_set_text( GTK_ENTRY(text), lxdream_get_config_value(path_id[i]) );
1.47 gtk_entry_set_width_chars( GTK_ENTRY(text), 48 );
1.48 @@ -124,5 +124,5 @@
1.49
1.50 void path_dialog_run( void )
1.51 {
1.52 - gtk_gui_run_property_dialog( "Path Settings", path_panel_new(), path_panel_done );
1.53 + gtk_gui_run_property_dialog( _("Path Settings"), path_panel_new(), path_panel_done );
1.54 }
.