Make sure there are no translation changes for 6.0.x.
This commit is contained in:
parent
af40ddd0e1
commit
7bd073b5cb
|
@ -90,6 +90,9 @@ DIALOG_ERC::DIALOG_ERC( SCH_EDIT_FRAME* parent ) :
|
|||
|
||||
m_violationsTitleTemplate = m_notebook->GetPageText( 1 );
|
||||
|
||||
// Hack to keep from changing translated string in 6.0.x
|
||||
m_violationsTitleTemplate.Replace( wxT( "%d" ), wxT( "%s" ) );
|
||||
|
||||
m_errorsBadge->SetMaximumNumber( 999 );
|
||||
m_warningsBadge->SetMaximumNumber( 999 );
|
||||
m_exclusionsBadge->SetMaximumNumber( 999 );
|
||||
|
|
|
@ -54,7 +54,7 @@ DIALOG_ERC_BASE::DIALOG_ERC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
|
|||
violationsPanel->SetSizer( bViolationsSizer );
|
||||
violationsPanel->Layout();
|
||||
bViolationsSizer->Fit( violationsPanel );
|
||||
m_notebook->AddPage( violationsPanel, _("Violations (%s)"), false );
|
||||
m_notebook->AddPage( violationsPanel, _("Violations (%d)"), false );
|
||||
|
||||
bMainSizer->Add( m_notebook, 1, wxEXPAND, 5 );
|
||||
|
||||
|
|
|
@ -309,7 +309,7 @@
|
|||
</object>
|
||||
<object class="notebookpage" expanded="1">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Violations (%s)</property>
|
||||
<property name="label">Violations (%d)</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
|
|
@ -118,7 +118,7 @@ bool DIALOG_LIB_TEXT_PROPERTIES::TransferDataFromWindow()
|
|||
if( m_TextCtrl->GetValue().IsEmpty() )
|
||||
{
|
||||
// Other text items do not have defined extents, and so will disappear if empty
|
||||
DisplayError( this, _( "Text can not be empty." ) );
|
||||
DisplayError( this, _( "Value may not be empty." ) );
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -149,6 +149,11 @@ void DIALOG_DRC::initValues()
|
|||
m_unconnectedTitleTemplate = m_Notebook->GetPageText( 1 );
|
||||
m_footprintsTitleTemplate = m_Notebook->GetPageText( 2 );
|
||||
|
||||
// Hack to keep from changing translated string in 6.0.x
|
||||
m_markersTitleTemplate.Replace( wxT( "%d" ), wxT( "%s" ) );
|
||||
m_unconnectedTitleTemplate.Replace( wxT( "%d" ), wxT( "%s" ) );
|
||||
m_footprintsTitleTemplate.Replace( wxT( "%d" ), wxT( "%s" ) );
|
||||
|
||||
auto cfg = m_frame->GetPcbNewSettings();
|
||||
|
||||
m_cbRefillZones->SetValue( cfg->m_DrcDialog.refill_zones );
|
||||
|
|
|
@ -102,7 +102,7 @@ DIALOG_DRC_BASE::DIALOG_DRC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
|
|||
m_panelViolations->SetSizer( bSizerViolationsBox );
|
||||
m_panelViolations->Layout();
|
||||
bSizerViolationsBox->Fit( m_panelViolations );
|
||||
m_Notebook->AddPage( m_panelViolations, _("Violations (%s)"), false );
|
||||
m_Notebook->AddPage( m_panelViolations, _("Violations (%d)"), false );
|
||||
m_panelUnconnectedItems = new wxPanel( m_Notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizerUnconnectedBox;
|
||||
bSizerUnconnectedBox = new wxBoxSizer( wxVERTICAL );
|
||||
|
@ -114,7 +114,7 @@ DIALOG_DRC_BASE::DIALOG_DRC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
|
|||
m_panelUnconnectedItems->SetSizer( bSizerUnconnectedBox );
|
||||
m_panelUnconnectedItems->Layout();
|
||||
bSizerUnconnectedBox->Fit( m_panelUnconnectedItems );
|
||||
m_Notebook->AddPage( m_panelUnconnectedItems, _("Unconnected Items (%s)"), false );
|
||||
m_Notebook->AddPage( m_panelUnconnectedItems, _("Unconnected Items (%d)"), false );
|
||||
m_panelFootprintWarnings = new wxPanel( m_Notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizerFootprintsBox;
|
||||
bSizerFootprintsBox = new wxBoxSizer( wxVERTICAL );
|
||||
|
@ -126,7 +126,7 @@ DIALOG_DRC_BASE::DIALOG_DRC_BASE( wxWindow* parent, wxWindowID id, const wxStrin
|
|||
m_panelFootprintWarnings->SetSizer( bSizerFootprintsBox );
|
||||
m_panelFootprintWarnings->Layout();
|
||||
bSizerFootprintsBox->Fit( m_panelFootprintWarnings );
|
||||
m_Notebook->AddPage( m_panelFootprintWarnings, _("Schematic Parity (%s)"), false );
|
||||
m_Notebook->AddPage( m_panelFootprintWarnings, _("Schematic Parity (%d)"), false );
|
||||
|
||||
bSizer13->Add( m_Notebook, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
|
||||
|
||||
|
|
|
@ -777,7 +777,7 @@
|
|||
<event name="OnNotebookPageChanged">OnChangingNotebookPage</event>
|
||||
<object class="notebookpage" expanded="1">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Violations (%s)</property>
|
||||
<property name="label">Violations (%d)</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="1">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -870,7 +870,7 @@
|
|||
</object>
|
||||
<object class="notebookpage" expanded="0">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Unconnected Items (%s)</property>
|
||||
<property name="label">Unconnected Items (%d)</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
@ -962,7 +962,7 @@
|
|||
</object>
|
||||
<object class="notebookpage" expanded="0">
|
||||
<property name="bitmap"></property>
|
||||
<property name="label">Schematic Parity (%s)</property>
|
||||
<property name="label">Schematic Parity (%d)</property>
|
||||
<property name="select">0</property>
|
||||
<object class="wxPanel" expanded="0">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
|
Loading…
Reference in New Issue