mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-09 19:41:04 +00:00
commit
6b7cf66ea4
6 changed files with 38 additions and 35 deletions
|
@ -131,7 +131,7 @@ static gint ci_new( GtkWidget *widget, gpointer data ){
|
|||
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( hbox );
|
||||
|
||||
w = gtk_button_new_with_label( "Ok" );
|
||||
w = gtk_button_new_with_label( _( "Ok" ) );
|
||||
gtk_box_pack_start( GTK_BOX( hbox ), w, TRUE, TRUE, 0 );
|
||||
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
|
||||
gtk_widget_show( w );
|
||||
|
@ -139,7 +139,7 @@ static gint ci_new( GtkWidget *widget, gpointer data ){
|
|||
GTK_WIDGET_SET_FLAGS( w, GTK_CAN_DEFAULT );
|
||||
gtk_widget_grab_default( w );
|
||||
|
||||
w = gtk_button_new_with_label( "Cancel" );
|
||||
w = gtk_button_new_with_label( _( "Cancel" ) );
|
||||
gtk_box_pack_start( GTK_BOX( hbox ), w, TRUE, TRUE, 0 );
|
||||
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
|
||||
gtk_widget_show( w );
|
||||
|
@ -385,7 +385,7 @@ static gint ci_rename( GtkWidget *widget, gpointer data ){
|
|||
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( hbox );
|
||||
|
||||
w = gtk_label_new( "Name:" );
|
||||
w = gtk_label_new( _( "Name:" ) );
|
||||
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( w );
|
||||
|
||||
|
@ -412,7 +412,7 @@ static gint ci_rename( GtkWidget *widget, gpointer data ){
|
|||
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( hbox );
|
||||
|
||||
w = gtk_button_new_with_label( "Ok" );
|
||||
w = gtk_button_new_with_label( _( "Ok" ) );
|
||||
gtk_box_pack_start( GTK_BOX( hbox ), w, TRUE, TRUE, 0 );
|
||||
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( dialog_button_callback ), GINT_TO_POINTER( IDOK ) );
|
||||
gtk_widget_show( w );
|
||||
|
@ -420,7 +420,7 @@ static gint ci_rename( GtkWidget *widget, gpointer data ){
|
|||
GTK_WIDGET_SET_FLAGS( w, GTK_CAN_DEFAULT );
|
||||
gtk_widget_grab_default( w );
|
||||
|
||||
w = gtk_button_new_with_label( "Cancel" );
|
||||
w = gtk_button_new_with_label( _( "Cancel" ) );
|
||||
gtk_box_pack_start( GTK_BOX( hbox ), w, TRUE, TRUE, 0 );
|
||||
gtk_signal_connect( GTK_OBJECT( w ), "clicked", GTK_SIGNAL_FUNC( dialog_button_callback ), GINT_TO_POINTER( IDCANCEL ) );
|
||||
gtk_widget_show( w );
|
||||
|
@ -503,7 +503,7 @@ static gint ci_add_target( GtkWidget *widget, gpointer data ){
|
|||
gtk_box_pack_start( GTK_BOX( vbox ), hbox, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( hbox );
|
||||
|
||||
w = gtk_label_new( "Name:" );
|
||||
w = gtk_label_new( _( "Name:" ) );
|
||||
gtk_box_pack_start( GTK_BOX( hbox ), w, FALSE, FALSE, 0 );
|
||||
gtk_widget_show( w );
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "surfdlg_plugin.h"
|
||||
|
||||
|
@ -667,7 +668,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_container_add( GTK_CONTAINER( viewport9 ), hbox1 );
|
||||
gtk_container_set_border_width( GTK_CONTAINER( hbox1 ), 4 );
|
||||
|
||||
label = gtk_label_new( "Texture: " );
|
||||
label = gtk_label_new( _( "Texture: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_box_pack_start( GTK_BOX( hbox1 ), label, FALSE, FALSE, 0 );
|
||||
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
|
||||
|
@ -801,7 +802,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Step" );
|
||||
label = gtk_label_new( _( "Step" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 3, 4, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
|
@ -817,7 +818,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_widget_show( match_grid_button );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), match_grid_button );
|
||||
|
||||
label = gtk_label_new( "Value" );
|
||||
label = gtk_label_new( _( "Value" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
|
@ -860,7 +861,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "V Shift: " );
|
||||
label = gtk_label_new( _( "Vertical Shift: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), label );
|
||||
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_LEFT );
|
||||
|
@ -872,7 +873,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( " H Scale: " );
|
||||
label = gtk_label_new( _( "Horizontal Scale: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), label );
|
||||
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_LEFT );
|
||||
|
@ -884,7 +885,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "V Scale: " );
|
||||
label = gtk_label_new( _( "Vertical Scale: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), label );
|
||||
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_LEFT );
|
||||
|
@ -896,7 +897,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Rotate: " );
|
||||
label = gtk_label_new( _( "Rotate: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), label );
|
||||
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_LEFT );
|
||||
|
@ -908,7 +909,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "H Shift: " );
|
||||
label = gtk_label_new( "Horizontal Shift: " );
|
||||
gtk_widget_show( label );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), label );
|
||||
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_LEFT );
|
||||
|
@ -1070,7 +1071,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_container_set_border_width( GTK_CONTAINER( table5 ), 5 );
|
||||
gtk_table_set_col_spacings( GTK_TABLE( table5 ), 2 );
|
||||
|
||||
label = gtk_label_new( "Height" );
|
||||
label = gtk_label_new( _( "Height" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table5 ), label, 2, 3, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
|
@ -1078,7 +1079,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_label_set_justify( GTK_LABEL( label ), GTK_JUSTIFY_LEFT );
|
||||
gtk_misc_set_alignment( GTK_MISC( label ), 0.5, 1 );
|
||||
|
||||
label = gtk_label_new( "Width" );
|
||||
label = gtk_label_new( _( "Width" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table5 ), label, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
|
@ -1118,7 +1119,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 4, 0 );
|
||||
|
||||
fit_button = gtk_button_new_with_mnemonic( " Fit " );
|
||||
fit_button = gtk_button_new_with_mnemonic( _( "Fit" ) );
|
||||
gtk_widget_show( fit_button );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), fit_button );
|
||||
|
||||
|
@ -1140,7 +1141,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ), 0, 0 );
|
||||
|
||||
axial_button = gtk_button_new_with_mnemonic( "Axial" );
|
||||
axial_button = gtk_button_new_with_mnemonic( _( "Axial" ) );
|
||||
gtk_widget_show( axial_button );
|
||||
gtk_container_add( GTK_CONTAINER( eventbox ), axial_button );
|
||||
gtk_widget_set_size_request( axial_button, 56, 29 );
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkkeysyms.h>
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
#include "surfacedialog.h"
|
||||
#include "surfaceflags.h"
|
||||
|
@ -564,7 +565,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_container_add( GTK_CONTAINER( vbox1 ), hbox1 );
|
||||
gtk_container_set_border_width( GTK_CONTAINER( hbox1 ), 4 );
|
||||
|
||||
label = gtk_label_new( "Texture: " );
|
||||
label = gtk_label_new( _( "Texture: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_box_pack_start( GTK_BOX( hbox1 ), label, FALSE, FALSE, 0 );
|
||||
gtk_misc_set_alignment( GTK_MISC( label ), 1, 0.5 );
|
||||
|
@ -580,7 +581,7 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_widget_show( texture_combo_entry );
|
||||
gtk_entry_set_max_length( GTK_ENTRY( texture_combo_entry ), 1024 );
|
||||
|
||||
frame1 = gtk_frame_new( "Surface" );
|
||||
frame1 = gtk_frame_new( _( "Surface" ) );
|
||||
gtk_widget_show( frame1 );
|
||||
gtk_container_add( GTK_CONTAINER( vbox1 ), frame1 );
|
||||
|
||||
|
@ -591,44 +592,44 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_container_set_border_width( GTK_CONTAINER( table1 ), 5 );
|
||||
gtk_container_add( GTK_CONTAINER( frame1 ), table1 );
|
||||
|
||||
label = gtk_label_new( "Step" );
|
||||
label = gtk_label_new( _( "Step" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 2, 3, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( 0 ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Value" );
|
||||
label = gtk_label_new( _( "Value" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 1, 2, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( 0 ), 0, 0 );
|
||||
gtk_misc_set_alignment( GTK_MISC( label ), 0.5, 1 );
|
||||
|
||||
label = gtk_label_new( "Horizontal shift: " );
|
||||
label = gtk_label_new( _( "Horizontal shift: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 0, 1, 1, 2,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Vertical shift: " );
|
||||
label = gtk_label_new( _( "Vertical shift: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 0, 1, 2, 3,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Horizontal scale: " );
|
||||
label = gtk_label_new( _( "Horizontal scale: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 0, 1, 3, 4,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Vertical scale: " );
|
||||
label = gtk_label_new( _( "Vertical scale: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 0, 1, 4, 5,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
(GtkAttachOptions) ( GTK_FILL ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Rotate: " );
|
||||
label = gtk_label_new( _( "Rotate: " ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table1 ), label, 0, 1, 5, 6,
|
||||
(GtkAttachOptions) ( GTK_FILL ),
|
||||
|
@ -747,19 +748,19 @@ GtkWidget* create_SurfaceInspector( void ){
|
|||
gtk_container_set_border_width( GTK_CONTAINER( table2 ), 5 );
|
||||
gtk_container_add( GTK_CONTAINER( frame2 ), table2 );
|
||||
|
||||
label = gtk_label_new( "Height" );
|
||||
label = gtk_label_new( _( "Height" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table2 ), label, 3, 4, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
(GtkAttachOptions) ( 0 ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Width" );
|
||||
label = gtk_label_new( _( "Width" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table2 ), label, 2, 3, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
(GtkAttachOptions) ( 0 ), 0, 0 );
|
||||
|
||||
label = gtk_label_new( "Brush" );
|
||||
label = gtk_label_new( _( "Brush" ) );
|
||||
gtk_widget_show( label );
|
||||
gtk_table_attach( GTK_TABLE( table2 ), label, 0, 2, 0, 1,
|
||||
(GtkAttachOptions) ( GTK_EXPAND | GTK_FILL ),
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include "stdafx.h"
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib/gi18n.h>
|
||||
//#include "qe3.h"
|
||||
|
||||
GtkWidget *g_dlgInfo;
|
||||
|
@ -40,7 +41,7 @@ void ShowInfoDialog( const char* pText ){
|
|||
GtkWidget *dlg, *scr, *text;
|
||||
|
||||
g_dlgInfo = dlg = gtk_window_new( GTK_WINDOW_TOPLEVEL );
|
||||
gtk_window_set_title( GTK_WINDOW( dlg ), "Information" );
|
||||
gtk_window_set_title( GTK_WINDOW( dlg ), _( "Information" ) );
|
||||
gtk_signal_connect( GTK_OBJECT( dlg ), "delete-event",
|
||||
GTK_SIGNAL_FUNC( gtk_widget_hide ), NULL );
|
||||
gtk_signal_connect( GTK_OBJECT( dlg ), "destroy",
|
||||
|
|
|
@ -2668,7 +2668,7 @@ void MainFrame::Create(){
|
|||
else if ( CurrentStyle() == eFloating ) {
|
||||
{
|
||||
GtkWidget* wnd = create_floating( this );
|
||||
gtk_window_set_title( GTK_WINDOW( wnd ), "Camera" );
|
||||
gtk_window_set_title( GTK_WINDOW( wnd ), _( "Camera" ) );
|
||||
|
||||
#ifdef _WIN32
|
||||
if ( g_PrefsDlg.m_bStartOnPrimMon ) {
|
||||
|
@ -2694,7 +2694,7 @@ void MainFrame::Create(){
|
|||
|
||||
{
|
||||
GtkWidget* wnd = create_floating( this );
|
||||
gtk_window_set_title( GTK_WINDOW( wnd ), "XY View" );
|
||||
gtk_window_set_title( GTK_WINDOW( wnd ), _( "XY View" ) );
|
||||
|
||||
#ifdef _WIN32
|
||||
if ( g_PrefsDlg.m_bStartOnPrimMon ) {
|
||||
|
@ -2719,7 +2719,7 @@ void MainFrame::Create(){
|
|||
else
|
||||
{
|
||||
GtkWidget* wnd = create_floating( this );
|
||||
gtk_window_set_title( GTK_WINDOW( wnd ), "XY View" );
|
||||
gtk_window_set_title( GTK_WINDOW( wnd ), _( "XY View" ) );
|
||||
|
||||
#ifdef _WIN32
|
||||
if ( g_PrefsDlg.m_bStartOnPrimMon ) {
|
||||
|
|
|
@ -2538,7 +2538,7 @@ void PrefsDlg::BuildDialog(){
|
|||
AddDialogData( entry, &m_strUserPath, DLG_ENTRY_TEXT );
|
||||
|
||||
// user ini browse button
|
||||
button = gtk_button_new_with_label( "..." );
|
||||
button = gtk_button_new_with_label( _( "..." ) );
|
||||
gtk_widget_show( button );
|
||||
gtk_signal_connect( GTK_OBJECT( button ), "clicked", GTK_SIGNAL_FUNC( OnBtnBrowseuserini ), this );
|
||||
gtk_table_attach( GTK_TABLE( table ), button, 2, 3, 1, 2,
|
||||
|
|
Loading…
Reference in a new issue