Internationalize "Grid Settings" dialog.
This commit is contained in:
parent
2fc68c2855
commit
c6b8b1cc9e
|
@ -16,7 +16,7 @@
|
||||||
<property name="help_provider">none</property>
|
<property name="help_provider">none</property>
|
||||||
<property name="image_path_wrapper_function_name"></property>
|
<property name="image_path_wrapper_function_name"></property>
|
||||||
<property name="indent_with_spaces"></property>
|
<property name="indent_with_spaces"></property>
|
||||||
<property name="internationalize">0</property>
|
<property name="internationalize">1</property>
|
||||||
<property name="name">DIALOG_GRID_SETTINGS</property>
|
<property name="name">DIALOG_GRID_SETTINGS</property>
|
||||||
<property name="namespace"></property>
|
<property name="namespace"></property>
|
||||||
<property name="path">.</property>
|
<property name="path">.</property>
|
||||||
|
|
|
@ -22,39 +22,39 @@ DIALOG_GRID_SETTINGS_BASE::DIALOG_GRID_SETTINGS_BASE( wxWindow* parent, wxWindow
|
||||||
m_fgGrid->SetFlexibleDirection( wxBOTH );
|
m_fgGrid->SetFlexibleDirection( wxBOTH );
|
||||||
m_fgGrid->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
m_fgGrid->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
m_staticTextName = new wxStaticText( this, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextName->Wrap( -1 );
|
m_staticTextName->Wrap( -1 );
|
||||||
m_fgGrid->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
|
m_fgGrid->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
|
||||||
|
|
||||||
m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_fgGrid->Add( m_textName, 1, wxALL|wxEXPAND, 5 );
|
m_fgGrid->Add( m_textName, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticTextOptional = new wxStaticText( this, wxID_ANY, wxT("(optional)"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextOptional = new wxStaticText( this, wxID_ANY, _("(optional)"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextOptional->Wrap( -1 );
|
m_staticTextOptional->Wrap( -1 );
|
||||||
m_fgGrid->Add( m_staticTextOptional, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxLEFT, 5 );
|
m_fgGrid->Add( m_staticTextOptional, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxLEFT, 5 );
|
||||||
|
|
||||||
m_staticTextX = new wxStaticText( this, wxID_ANY, wxT("X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextX = new wxStaticText( this, wxID_ANY, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextX->Wrap( -1 );
|
m_staticTextX->Wrap( -1 );
|
||||||
m_fgGrid->Add( m_staticTextX, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
|
m_fgGrid->Add( m_staticTextX, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
|
||||||
|
|
||||||
m_textX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_textX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_fgGrid->Add( m_textX, 1, wxALL|wxEXPAND, 5 );
|
m_fgGrid->Add( m_textX, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticTextXUnits = new wxStaticText( this, wxID_ANY, wxT("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextXUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextXUnits->Wrap( -1 );
|
m_staticTextXUnits->Wrap( -1 );
|
||||||
m_fgGrid->Add( m_staticTextXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 );
|
m_fgGrid->Add( m_staticTextXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
|
m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_checkLinked = new wxCheckBox( this, wxID_ANY, wxT("Linked"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_checkLinked = new wxCheckBox( this, wxID_ANY, _("Linked"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_checkLinked->SetValue(true);
|
m_checkLinked->SetValue(true);
|
||||||
m_fgGrid->Add( m_checkLinked, 1, wxALL|wxEXPAND, 5 );
|
m_fgGrid->Add( m_checkLinked, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
|
m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticTextY = new wxStaticText( this, wxID_ANY, wxT("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextY = new wxStaticText( this, wxID_ANY, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextY->Wrap( -1 );
|
m_staticTextY->Wrap( -1 );
|
||||||
m_fgGrid->Add( m_staticTextY, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
|
m_fgGrid->Add( m_staticTextY, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ DIALOG_GRID_SETTINGS_BASE::DIALOG_GRID_SETTINGS_BASE( wxWindow* parent, wxWindow
|
||||||
|
|
||||||
m_fgGrid->Add( m_textY, 1, wxALL|wxEXPAND, 5 );
|
m_fgGrid->Add( m_textY, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticTextYUnits = new wxStaticText( this, wxID_ANY, wxT("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticTextYUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticTextYUnits->Wrap( -1 );
|
m_staticTextYUnits->Wrap( -1 );
|
||||||
m_fgGrid->Add( m_staticTextYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 );
|
m_fgGrid->Add( m_staticTextYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 );
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include <wx/artprov.h>
|
#include <wx/artprov.h>
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
|
#include <wx/intl.h>
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
|
@ -53,7 +54,7 @@ class DIALOG_GRID_SETTINGS_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_GRID_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("Grid Settings"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE );
|
DIALOG_GRID_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Grid Settings"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE );
|
||||||
|
|
||||||
~DIALOG_GRID_SETTINGS_BASE();
|
~DIALOG_GRID_SETTINGS_BASE();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue