From c6b8b1cc9e2ebd252b1d2f4801c25f523b5fa6d8 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Sat, 10 Feb 2024 08:28:40 +0300 Subject: [PATCH] Internationalize "Grid Settings" dialog. --- common/dialogs/dialog_grid_settings.fbp | 2 +- common/dialogs/dialog_grid_settings_base.cpp | 14 +++++++------- common/dialogs/dialog_grid_settings_base.h | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/common/dialogs/dialog_grid_settings.fbp b/common/dialogs/dialog_grid_settings.fbp index 200f533088..0408829ce0 100644 --- a/common/dialogs/dialog_grid_settings.fbp +++ b/common/dialogs/dialog_grid_settings.fbp @@ -16,7 +16,7 @@ none - 0 + 1 DIALOG_GRID_SETTINGS . diff --git a/common/dialogs/dialog_grid_settings_base.cpp b/common/dialogs/dialog_grid_settings_base.cpp index 7101b4f308..3875a0a11f 100644 --- a/common/dialogs/dialog_grid_settings_base.cpp +++ b/common/dialogs/dialog_grid_settings_base.cpp @@ -22,39 +22,39 @@ DIALOG_GRID_SETTINGS_BASE::DIALOG_GRID_SETTINGS_BASE( wxWindow* parent, wxWindow m_fgGrid->SetFlexibleDirection( wxBOTH ); 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_fgGrid->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); 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_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_fgGrid->Add( m_staticTextX, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 ); m_textX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); 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_fgGrid->Add( m_staticTextXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 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_fgGrid->Add( m_checkLinked, 1, wxALL|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_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_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_fgGrid->Add( m_staticTextYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 ); diff --git a/common/dialogs/dialog_grid_settings_base.h b/common/dialogs/dialog_grid_settings_base.h index ca5bcabf28..4b9db9f680 100644 --- a/common/dialogs/dialog_grid_settings_base.h +++ b/common/dialogs/dialog_grid_settings_base.h @@ -9,6 +9,7 @@ #include #include +#include #include "dialog_shim.h" #include #include @@ -53,7 +54,7 @@ class DIALOG_GRID_SETTINGS_BASE : public DIALOG_SHIM 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();