mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 06:31:41 +00:00
* more translateable strings
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@295 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
6977eb6647
commit
0902485233
3 changed files with 259 additions and 258 deletions
|
@ -28,6 +28,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
#undef THIS_FILE
|
#undef THIS_FILE
|
||||||
//static char THIS_FILE[] = __FILE__;
|
//static char THIS_FILE[] = __FILE__;
|
||||||
#endif
|
#endif
|
||||||
|
#include <glib/gi18n.h>
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// CConfigDialog dialog
|
// CConfigDialog dialog
|
||||||
|
@ -290,7 +291,7 @@ void DoConfigDialog ()
|
||||||
GtkObject *adj;
|
GtkObject *adj;
|
||||||
|
|
||||||
dlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
dlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
gtk_window_set_title (GTK_WINDOW (dlg), "Portal Viewer Configuration");
|
gtk_window_set_title (GTK_WINDOW (dlg), _("Portal Viewer Configuration"));
|
||||||
gtk_signal_connect (GTK_OBJECT (dlg), "delete_event",
|
gtk_signal_connect (GTK_OBJECT (dlg), "delete_event",
|
||||||
GTK_SIGNAL_FUNC (dialog_delete_callback), NULL);
|
GTK_SIGNAL_FUNC (dialog_delete_callback), NULL);
|
||||||
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
|
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
|
||||||
|
@ -303,7 +304,7 @@ void DoConfigDialog ()
|
||||||
gtk_container_add (GTK_CONTAINER (dlg), vbox);
|
gtk_container_add (GTK_CONTAINER (dlg), vbox);
|
||||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
|
||||||
|
|
||||||
frame = gtk_frame_new ("3D View");
|
frame = gtk_frame_new (_("3D View"));
|
||||||
gtk_widget_show (frame);
|
gtk_widget_show (frame);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
||||||
|
|
||||||
|
@ -333,14 +334,14 @@ void DoConfigDialog ()
|
||||||
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
|
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
|
||||||
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
|
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
|
||||||
|
|
||||||
button = gtk_button_new_with_label ("Color");
|
button = gtk_button_new_with_label (_("Color"));
|
||||||
gtk_widget_show (button);
|
gtk_widget_show (button);
|
||||||
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 0, 1,
|
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 0, 1,
|
||||||
(GtkAttachOptions) (GTK_FILL),
|
(GtkAttachOptions) (GTK_FILL),
|
||||||
(GtkAttachOptions) (0), 0, 0);
|
(GtkAttachOptions) (0), 0, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnColor3d), NULL);
|
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnColor3d), NULL);
|
||||||
|
|
||||||
button = gtk_button_new_with_label ("Depth Color");
|
button = gtk_button_new_with_label (_("Depth Color"));
|
||||||
gtk_widget_show (button);
|
gtk_widget_show (button);
|
||||||
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 1, 2,
|
gtk_table_attach (GTK_TABLE (table), button, 0, 1, 1, 2,
|
||||||
(GtkAttachOptions) (GTK_FILL),
|
(GtkAttachOptions) (GTK_FILL),
|
||||||
|
@ -354,21 +355,21 @@ void DoConfigDialog ()
|
||||||
(GtkAttachOptions) (0), 0, 0);
|
(GtkAttachOptions) (0), 0, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (aa3check), "toggled", GTK_SIGNAL_FUNC (OnAntiAlias3d), NULL);
|
gtk_signal_connect (GTK_OBJECT (aa3check), "toggled", GTK_SIGNAL_FUNC (OnAntiAlias3d), NULL);
|
||||||
|
|
||||||
depthcheck = gtk_check_button_new_with_label ("Depth Cue");
|
depthcheck = gtk_check_button_new_with_label (_("Depth Cue"));
|
||||||
gtk_widget_show (depthcheck);
|
gtk_widget_show (depthcheck);
|
||||||
gtk_table_attach (GTK_TABLE (table), depthcheck, 1, 2, 1, 2,
|
gtk_table_attach (GTK_TABLE (table), depthcheck, 1, 2, 1, 2,
|
||||||
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
|
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
|
||||||
(GtkAttachOptions) (0), 0, 0);
|
(GtkAttachOptions) (0), 0, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (depthcheck), "toggled", GTK_SIGNAL_FUNC (OnFog), NULL);
|
gtk_signal_connect (GTK_OBJECT (depthcheck), "toggled", GTK_SIGNAL_FUNC (OnFog), NULL);
|
||||||
|
|
||||||
linescheck = gtk_check_button_new_with_label ("Lines");
|
linescheck = gtk_check_button_new_with_label (_("Lines"));
|
||||||
gtk_widget_show (linescheck);
|
gtk_widget_show (linescheck);
|
||||||
gtk_table_attach (GTK_TABLE (table), linescheck, 2, 3, 1, 2,
|
gtk_table_attach (GTK_TABLE (table), linescheck, 2, 3, 1, 2,
|
||||||
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
|
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
|
||||||
(GtkAttachOptions) (0), 0, 0);
|
(GtkAttachOptions) (0), 0, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (linescheck), "toggled", GTK_SIGNAL_FUNC (OnLines), NULL);
|
gtk_signal_connect (GTK_OBJECT (linescheck), "toggled", GTK_SIGNAL_FUNC (OnLines), NULL);
|
||||||
|
|
||||||
polyscheck = gtk_check_button_new_with_label ("Polygons");
|
polyscheck = gtk_check_button_new_with_label (_("Polygons"));
|
||||||
gtk_widget_show (polyscheck);
|
gtk_widget_show (polyscheck);
|
||||||
gtk_table_attach (GTK_TABLE (table), polyscheck, 3, 4, 1, 2,
|
gtk_table_attach (GTK_TABLE (table), polyscheck, 3, 4, 1, 2,
|
||||||
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
|
(GtkAttachOptions) (GTK_EXPAND|GTK_FILL),
|
||||||
|
@ -383,19 +384,19 @@ void DoConfigDialog ()
|
||||||
gtk_widget_show (menu);
|
gtk_widget_show (menu);
|
||||||
gtk_option_menu_set_menu (GTK_OPTION_MENU (zlist), menu);
|
gtk_option_menu_set_menu (GTK_OPTION_MENU (zlist), menu);
|
||||||
|
|
||||||
item = gtk_menu_item_new_with_label ("Z-Buffer Test and Write (recommended for solid or no polygons)");
|
item = gtk_menu_item_new_with_label (_("Z-Buffer Test and Write (recommended for solid or no polygons)"));
|
||||||
gtk_widget_show (item);
|
gtk_widget_show (item);
|
||||||
gtk_signal_connect (GTK_OBJECT (item), "activate",
|
gtk_signal_connect (GTK_OBJECT (item), "activate",
|
||||||
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (0));
|
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (0));
|
||||||
gtk_menu_append (GTK_MENU (menu), item);
|
gtk_menu_append (GTK_MENU (menu), item);
|
||||||
|
|
||||||
item = gtk_menu_item_new_with_label ("Z-Buffer Test Only (recommended for transparent polygons)");
|
item = gtk_menu_item_new_with_label (_("Z-Buffer Test Only (recommended for transparent polygons)"));
|
||||||
gtk_widget_show (item);
|
gtk_widget_show (item);
|
||||||
gtk_signal_connect (GTK_OBJECT (item), "activate",
|
gtk_signal_connect (GTK_OBJECT (item), "activate",
|
||||||
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (1));
|
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (1));
|
||||||
gtk_menu_append (GTK_MENU (menu), item);
|
gtk_menu_append (GTK_MENU (menu), item);
|
||||||
|
|
||||||
item = gtk_menu_item_new_with_label ("Z-Buffer Off");
|
item = gtk_menu_item_new_with_label (_("Z-Buffer Off"));
|
||||||
gtk_widget_show (item);
|
gtk_widget_show (item);
|
||||||
gtk_signal_connect (GTK_OBJECT (item), "activate",
|
gtk_signal_connect (GTK_OBJECT (item), "activate",
|
||||||
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (2));
|
GTK_SIGNAL_FUNC (OnSelchangeZbuffer), GINT_TO_POINTER (2));
|
||||||
|
@ -443,17 +444,17 @@ void DoConfigDialog ()
|
||||||
gtk_widget_show (hbox);
|
gtk_widget_show (hbox);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0);
|
||||||
|
|
||||||
show3check = gtk_check_button_new_with_label ("Show");
|
show3check = gtk_check_button_new_with_label (_("Show"));
|
||||||
gtk_widget_show (show3check);
|
gtk_widget_show (show3check);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), show3check, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), show3check, TRUE, TRUE, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (show3check), "toggled", GTK_SIGNAL_FUNC (OnConfig3d), NULL);
|
gtk_signal_connect (GTK_OBJECT (show3check), "toggled", GTK_SIGNAL_FUNC (OnConfig3d), NULL);
|
||||||
|
|
||||||
portalcheck = gtk_check_button_new_with_label ("Portal cubic clipper");
|
portalcheck = gtk_check_button_new_with_label (_("Portal cubic clipper"));
|
||||||
gtk_widget_show (portalcheck);
|
gtk_widget_show (portalcheck);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), portalcheck, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), portalcheck, TRUE, TRUE, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (portalcheck), "toggled", GTK_SIGNAL_FUNC (OnClip), NULL);
|
gtk_signal_connect (GTK_OBJECT (portalcheck), "toggled", GTK_SIGNAL_FUNC (OnClip), NULL);
|
||||||
|
|
||||||
frame = gtk_frame_new ("2D View");
|
frame = gtk_frame_new (_("2D View"));
|
||||||
gtk_widget_show (frame);
|
gtk_widget_show (frame);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
||||||
|
|
||||||
|
@ -481,13 +482,13 @@ void DoConfigDialog ()
|
||||||
gtk_widget_show (hbox);
|
gtk_widget_show (hbox);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0);
|
||||||
|
|
||||||
button = gtk_button_new_with_label ("Color");
|
button = gtk_button_new_with_label (_("Color"));
|
||||||
gtk_widget_show (button);
|
gtk_widget_show (button);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnColor2d), NULL);
|
gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (OnColor2d), NULL);
|
||||||
gtk_widget_set_usize (button, 60, -2);
|
gtk_widget_set_usize (button, 60, -2);
|
||||||
|
|
||||||
aa2check = gtk_check_button_new_with_label ("Anti-Alias (May not work on some video cards)");
|
aa2check = gtk_check_button_new_with_label (_("Anti-Alias (May not work on some video cards)"));
|
||||||
gtk_widget_show (aa2check);
|
gtk_widget_show (aa2check);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), aa2check, TRUE, TRUE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), aa2check, TRUE, TRUE, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (aa2check), "toggled", GTK_SIGNAL_FUNC (OnAntiAlias2d), NULL);
|
gtk_signal_connect (GTK_OBJECT (aa2check), "toggled", GTK_SIGNAL_FUNC (OnAntiAlias2d), NULL);
|
||||||
|
@ -496,7 +497,7 @@ void DoConfigDialog ()
|
||||||
gtk_widget_show (hbox);
|
gtk_widget_show (hbox);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox2), hbox, TRUE, FALSE, 0);
|
||||||
|
|
||||||
show2check = gtk_check_button_new_with_label ("Show");
|
show2check = gtk_check_button_new_with_label (_("Show"));
|
||||||
gtk_widget_show (show2check);
|
gtk_widget_show (show2check);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), show2check, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), show2check, FALSE, FALSE, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (show2check), "toggled", GTK_SIGNAL_FUNC (OnConfig2d), NULL);
|
gtk_signal_connect (GTK_OBJECT (show2check), "toggled", GTK_SIGNAL_FUNC (OnConfig2d), NULL);
|
||||||
|
@ -505,7 +506,7 @@ void DoConfigDialog ()
|
||||||
gtk_widget_show (hbox);
|
gtk_widget_show (hbox);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||||
|
|
||||||
button = gtk_button_new_with_label ("OK");
|
button = gtk_button_new_with_label (_("OK"));
|
||||||
gtk_widget_show (button);
|
gtk_widget_show (button);
|
||||||
gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0);
|
gtk_box_pack_end (GTK_BOX (hbox), button, FALSE, FALSE, 0);
|
||||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||||
|
|
|
@ -2644,7 +2644,7 @@ void DoAbout ()
|
||||||
gtk_widget_show (vbox2);
|
gtk_widget_show (vbox2);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), vbox2, TRUE, FALSE, 0);
|
||||||
|
|
||||||
frame = gtk_frame_new ((char*)NULL);
|
frame = gtk_frame_new (NULL);
|
||||||
gtk_widget_show (frame);
|
gtk_widget_show (frame);
|
||||||
gtk_box_pack_start (GTK_BOX (vbox2), frame, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (vbox2), frame, FALSE, FALSE, 0);
|
||||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
|
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
|
||||||
|
|
|
@ -1319,14 +1319,14 @@ gtk_file_selection_init (GtkFileSelection *filesel)
|
||||||
/* menu for right click file operations */
|
/* menu for right click file operations */
|
||||||
filesel->fileop_menu = gtk_menu_new();
|
filesel->fileop_menu = gtk_menu_new();
|
||||||
|
|
||||||
menu_item = gtk_menu_item_new_with_label ("Rename...");
|
menu_item = gtk_menu_item_new_with_label (_("Rename..."));
|
||||||
gtk_widget_show(menu_item);
|
gtk_widget_show(menu_item);
|
||||||
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
||||||
(GtkSignalFunc) gtk_file_selection_rename_file,
|
(GtkSignalFunc) gtk_file_selection_rename_file,
|
||||||
(gpointer) filesel);
|
(gpointer) filesel);
|
||||||
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
||||||
|
|
||||||
menu_item = gtk_menu_item_new_with_label ("Delete");
|
menu_item = gtk_menu_item_new_with_label (_("Delete"));
|
||||||
gtk_widget_show(menu_item);
|
gtk_widget_show(menu_item);
|
||||||
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
||||||
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
||||||
|
@ -1337,7 +1337,7 @@ gtk_file_selection_init (GtkFileSelection *filesel)
|
||||||
gtk_widget_show(menu_item);
|
gtk_widget_show(menu_item);
|
||||||
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
||||||
|
|
||||||
menu_item = gtk_menu_item_new_with_label ("Create Directory...");
|
menu_item = gtk_menu_item_new_with_label (_("Create Directory..."));
|
||||||
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
||||||
(GtkSignalFunc) gtk_file_selection_create_dir,
|
(GtkSignalFunc) gtk_file_selection_create_dir,
|
||||||
(gpointer) filesel);
|
(gpointer) filesel);
|
||||||
|
@ -1348,7 +1348,7 @@ gtk_file_selection_init (GtkFileSelection *filesel)
|
||||||
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
gtk_menu_append (GTK_MENU (filesel->fileop_menu), menu_item);
|
||||||
gtk_widget_show(menu_item);
|
gtk_widget_show(menu_item);
|
||||||
|
|
||||||
menu_item = gtk_menu_item_new_with_label ("Properties...");
|
menu_item = gtk_menu_item_new_with_label (_("Properties..."));
|
||||||
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
gtk_signal_connect_object (GTK_OBJECT (menu_item), "activate",
|
||||||
(GtkSignalFunc) gtk_file_selection_properties,
|
(GtkSignalFunc) gtk_file_selection_properties,
|
||||||
(gpointer) filesel);
|
(gpointer) filesel);
|
||||||
|
|
Loading…
Reference in a new issue