From a75b537a521cc7f0d581598cc6f97f2f9c9432f9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 21 Aug 2022 10:16:29 +0200 Subject: [PATCH] Avoid using a single word in dialog, not really translatable. Single word string having many meanings is not translatable. --- eeschema/dialogs/dialog_sim_model_base.cpp | 12 ++++++------ eeschema/dialogs/dialog_sim_model_base.fbp | 8 ++++---- eeschema/dialogs/dialog_sim_model_base.h | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/eeschema/dialogs/dialog_sim_model_base.cpp b/eeschema/dialogs/dialog_sim_model_base.cpp index d44ebda2bd..c0f85b873e 100644 --- a/eeschema/dialogs/dialog_sim_model_base.cpp +++ b/eeschema/dialogs/dialog_sim_model_base.cpp @@ -79,18 +79,18 @@ DIALOG_SIM_MODEL_BASE::DIALOG_SIM_MODEL_BASE( wxWindow* parent, wxWindowID id, c fgSizer16->SetFlexibleDirection( wxBOTH ); fgSizer16->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); - m_staticText127 = new wxStaticText( m_parametersPanel, wxID_ANY, _("Device:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText127->Wrap( -1 ); - fgSizer16->Add( m_staticText127, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + m_staticTextDevType = new wxStaticText( m_parametersPanel, wxID_ANY, _("Spice device:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_staticTextDevType->Wrap( -1 ); + fgSizer16->Add( m_staticTextDevType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); wxArrayString m_deviceTypeChoiceChoices; m_deviceTypeChoice = new wxChoice( m_parametersPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_deviceTypeChoiceChoices, 0 ); m_deviceTypeChoice->SetSelection( 0 ); fgSizer16->Add( m_deviceTypeChoice, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 5 ); - m_staticText8 = new wxStaticText( m_parametersPanel, wxID_ANY, _("Type:"), wxDefaultPosition, wxDefaultSize, 0 ); - m_staticText8->Wrap( -1 ); - fgSizer16->Add( m_staticText8, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); + m_staticTextSpiceType = new wxStaticText( m_parametersPanel, wxID_ANY, _("Spice type:"), wxDefaultPosition, wxDefaultSize, 0 ); + m_staticTextSpiceType->Wrap( -1 ); + fgSizer16->Add( m_staticTextSpiceType, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 ); wxArrayString m_typeChoiceChoices; m_typeChoice = new wxChoice( m_parametersPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_typeChoiceChoices, 0 ); diff --git a/eeschema/dialogs/dialog_sim_model_base.fbp b/eeschema/dialogs/dialog_sim_model_base.fbp index 9480b5409b..86dbf3003d 100644 --- a/eeschema/dialogs/dialog_sim_model_base.fbp +++ b/eeschema/dialogs/dialog_sim_model_base.fbp @@ -863,7 +863,7 @@ 0 0 wxID_ANY - Device: + Spice device: 0 0 @@ -872,7 +872,7 @@ 0 1 - m_staticText127 + m_staticTextDevType 1 @@ -990,7 +990,7 @@ 0 0 wxID_ANY - Type: + Spice type: 0 0 @@ -999,7 +999,7 @@ 0 1 - m_staticText8 + m_staticTextSpiceType 1 diff --git a/eeschema/dialogs/dialog_sim_model_base.h b/eeschema/dialogs/dialog_sim_model_base.h index f8742fc86c..c765dd6abb 100644 --- a/eeschema/dialogs/dialog_sim_model_base.h +++ b/eeschema/dialogs/dialog_sim_model_base.h @@ -63,9 +63,9 @@ class DIALOG_SIM_MODEL_BASE : public DIALOG_SHIM wxCheckBox* m_overrideCheckbox; wxNotebook* m_notebook4; wxPanel* m_parametersPanel; - wxStaticText* m_staticText127; + wxStaticText* m_staticTextDevType; wxChoice* m_deviceTypeChoice; - wxStaticText* m_staticText8; + wxStaticText* m_staticTextSpiceType; wxChoice* m_typeChoice; wxPropertyGridManager* m_paramGridMgr; wxPropertyGridPage* m_paramGrid;