Remove escaped double-quotes
For some reason, escaped double quotes in wxString::Format cause issues on Mac. We can replace them with single quotes in most places without loss of clarity
This commit is contained in:
parent
888050bd67
commit
cf6b18ec7e
|
@ -60,7 +60,7 @@ BOM_GENERATOR_HANDLER::BOM_GENERATOR_HANDLER( const wxString& aFile )
|
|||
if( extension == "xsl" )
|
||||
{
|
||||
m_info = readHeader( "-->" );
|
||||
m_cmd = wxString::Format( "xsltproc -o \"%%O%s\" \"%s\" \"%%I\"",
|
||||
m_cmd = wxString::Format( "xsltproc -o '%%O%s' '%s' '%%I'",
|
||||
getOutputExtension( m_info ), m_file.GetFullPath() );
|
||||
}
|
||||
else if( extension == "py" )
|
||||
|
@ -76,7 +76,7 @@ BOM_GENERATOR_HANDLER::BOM_GENERATOR_HANDLER( const wxString& aFile )
|
|||
if( interpreter.IsEmpty() )
|
||||
interpreter = wxT( "python" );
|
||||
|
||||
m_cmd = wxString::Format( "%s \"%s\" \"%%I\" \"%%O%s\"", interpreter, m_file.GetFullPath(),
|
||||
m_cmd = wxString::Format( "%s '%s' '%%I' '%%O%s'", interpreter, m_file.GetFullPath(),
|
||||
getOutputExtension( m_info ) );
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -399,7 +399,7 @@ private:
|
|||
}
|
||||
else
|
||||
{
|
||||
wxFAIL_MSG( wxString::Format( "string \"%s\" can't be converted to boolean "
|
||||
wxFAIL_MSG( wxString::Format( "string '%s' can't be converted to boolean "
|
||||
"correctly, it will have been perceived as FALSE",
|
||||
aValue ) );
|
||||
return false;
|
||||
|
|
|
@ -997,7 +997,7 @@ void DIALOG_SYMBOL_FIELDS_TABLE::OnAddField( wxCommandEvent& event )
|
|||
{
|
||||
if( fieldName == m_dataModel->GetColLabelValue( i ) )
|
||||
{
|
||||
DisplayError( this, wxString::Format( _( "Field name \"%s\" already in use." ),
|
||||
DisplayError( this, wxString::Format( _( "Field name '%s' already in use." ),
|
||||
fieldName ) );
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -667,7 +667,7 @@ bool FIELDS_GRID_TABLE<T>::BoolFromString( wxString aValue ) const
|
|||
}
|
||||
else
|
||||
{
|
||||
wxFAIL_MSG( wxString::Format( "string \"%s\" can't be converted to boolean "
|
||||
wxFAIL_MSG( wxString::Format( "string '%s' can't be converted to boolean "
|
||||
"correctly, it will have been perceived as FALSE", aValue ) );
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1095,7 +1095,7 @@ void SCH_EAGLE_PLUGIN::loadSegments( wxXmlNode* aSegmentsNode, const wxString& n
|
|||
}
|
||||
else // DEFAULT
|
||||
{
|
||||
// THROW_IO_ERROR( wxString::Format( _( "XML node \"%s\" unknown" ), nodeName ) );
|
||||
// THROW_IO_ERROR( wxString::Format( _( "XML node '%s' unknown" ), nodeName ) );
|
||||
}
|
||||
|
||||
// Get next segment attribute
|
||||
|
|
|
@ -67,7 +67,7 @@ private:
|
|||
( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_CMP ) )
|
||||
{
|
||||
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightComponent );
|
||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Items of Component \"%s\"" ),
|
||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Items of Component '%s'" ),
|
||||
net_attr.m_Cmpref ) );
|
||||
addSeparator = true;
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ private:
|
|||
if( ( net_attr.m_NetAttribType & GBR_NETLIST_METADATA::GBR_NETINFO_NET ) )
|
||||
{
|
||||
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightNet );
|
||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Items of Net \"%s\"" ),
|
||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Items of Net '%s'" ),
|
||||
UnescapeString( net_attr.m_Netname ) ) );
|
||||
addSeparator = true;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ private:
|
|||
if( apertDescr && !apertDescr->m_AperFunction.IsEmpty() )
|
||||
{
|
||||
auto menuEntry = Add( GERBVIEW_ACTIONS::highlightAttribute );
|
||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Aperture Type \"%s\"" ),
|
||||
menuEntry->SetItemLabel( wxString::Format( _( "Highlight Aperture Type '%s'" ),
|
||||
apertDescr->m_AperFunction ) );
|
||||
addSeparator = true;
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ void KICAD_MANAGER_FRAME::OnUnarchiveFiles( wxCommandEvent& event )
|
|||
if( zipfiledlg.ShowModal() == wxID_CANCEL )
|
||||
return;
|
||||
|
||||
wxString msg = wxString::Format( _( "\nOpen \"%s\"\n" ), zipfiledlg.GetPath() );
|
||||
wxString msg = wxString::Format( _( "\nOpen '%s'\n" ), zipfiledlg.GetPath() );
|
||||
PrintMsg( msg );
|
||||
|
||||
wxDirDialog dirDlg( this, _( "Target Directory" ), fn.GetPath(), wxDD_DEFAULT_STYLE );
|
||||
|
|
|
@ -741,7 +741,7 @@ void KICAD_MANAGER_FRAME::OnIdle( wxIdleEvent& aEvent )
|
|||
if( file.open )
|
||||
{
|
||||
progressReporter.Update( i++,
|
||||
wxString::Format( _( "Restoring \"%s\"" ), file.fileName ) );
|
||||
wxString::Format( _( "Restoring '%s'" ), file.fileName ) );
|
||||
|
||||
wxFileName fn( file.fileName );
|
||||
|
||||
|
|
|
@ -207,7 +207,7 @@ bool PCM_TASK_MANAGER::extract( const wxString& aFilePath, const wxString& aPack
|
|||
continue;
|
||||
}
|
||||
|
||||
// m_reporter->Report( wxString::Format( _( "Extracting file \"%s\"\n" ), entry->GetName() ),
|
||||
// m_reporter->Report( wxString::Format( _( "Extracting file '%s'\n" ), entry->GetName() ),
|
||||
// RPT_SEVERITY_INFO );
|
||||
|
||||
// Transform paths from
|
||||
|
|
|
@ -854,7 +854,7 @@ void PROJECT_TREE_PANE::onRenameFile( wxCommandEvent& event )
|
|||
return;
|
||||
|
||||
wxString buffer = m_TreeProject->GetItemText( curr_item );
|
||||
wxString msg = wxString::Format( _( "Change filename: \"%s\"" ),
|
||||
wxString msg = wxString::Format( _( "Change filename: '%s'" ),
|
||||
tree_data[0]->GetFileName() );
|
||||
wxTextEntryDialog dlg( this, msg, _( "Change filename" ), buffer );
|
||||
|
||||
|
|
|
@ -415,7 +415,7 @@ void DIALOG_EXPORT_STEP::onExportButton( wxCommandEvent& aEvent )
|
|||
}
|
||||
|
||||
LOCALE_IO dummy;
|
||||
cmdK2S.Append( wxString::Format( " --user-origin=\"%.6f x %.6f\"", xOrg, yOrg ) );
|
||||
cmdK2S.Append( wxString::Format( " --user-origin='%.6f x %.6f'", xOrg, yOrg ) );
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -425,21 +425,21 @@ void DIALOG_EXPORT_STEP::onExportButton( wxCommandEvent& aEvent )
|
|||
xOrg = Iu2Millimeter( bbox.GetCenter().x );
|
||||
yOrg = Iu2Millimeter( bbox.GetCenter().y );
|
||||
LOCALE_IO dummy;
|
||||
cmdK2S.Append( wxString::Format( " --user-origin=\"%.6f x %.6f\"", xOrg, yOrg ) );
|
||||
cmdK2S.Append( wxString::Format( " --user-origin='%.6f x %.6f'", xOrg, yOrg ) );
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
{
|
||||
LOCALE_IO dummy;
|
||||
cmdK2S.Append( wxString::Format( " --min-distance=\"%.3f mm\"", tolerance ) );
|
||||
cmdK2S.Append( wxString::Format( " --min-distance='%.3f mm'", tolerance ) );
|
||||
}
|
||||
|
||||
cmdK2S.Append( " -f -o " );
|
||||
cmdK2S.Append( wxString::Format("\"%s\"", m_filePickerSTEP->GetPath() ) ); // input file path
|
||||
cmdK2S.Append( wxString::Format("'%s'", m_filePickerSTEP->GetPath() ) ); // input file path
|
||||
|
||||
cmdK2S.Append( " " );
|
||||
cmdK2S.Append( wxString::Format("\"%s\"", m_boardPath ) ); // output file path
|
||||
cmdK2S.Append( wxString::Format("'%s'", m_boardPath ) ); // output file path
|
||||
|
||||
wxExecute( cmdK2S, wxEXEC_ASYNC | wxEXEC_SHOW_CONSOLE );
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ PyObject* PYTHON_ACTION_PLUGIN::CallMethod( const char* aMethod, PyObject* aArgl
|
|||
}
|
||||
else
|
||||
{
|
||||
wxString msg = wxString::Format( _( "Method \"%s\" not found, or not callable" ), aMethod );
|
||||
wxString msg = wxString::Format( _( "Method '%s' not found, or not callable" ), aMethod );
|
||||
wxMessageBox( msg, _( "Unknown Method" ), wxICON_ERROR | wxOK );
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ PyObject* PYTHON_FOOTPRINT_WIZARD::CallMethod( const char* aMethod, PyObject* aA
|
|||
}
|
||||
else
|
||||
{
|
||||
wxString msg = wxString::Format(_( "Method \"%s\" not found, or not callable" ), aMethod );
|
||||
wxString msg = wxString::Format(_( "Method '%s' not found, or not callable" ), aMethod );
|
||||
wxMessageBox( msg, _( "Unknown Method" ), wxICON_ERROR | wxOK );
|
||||
}
|
||||
|
||||
|
|
|
@ -442,7 +442,7 @@ void SPECCTRA_DB::FromSESSION( BOARD* aBoard )
|
|||
'wire'.
|
||||
|
||||
wxString netId = FROM_UTF8( wire->net_id.c_str() );
|
||||
THROW_IO_ERROR( wxString::Format( _("Unsupported wire shape: \"%s\" for net: \"%s\""),
|
||||
THROW_IO_ERROR( wxString::Format( _("Unsupported wire shape: '%s' for net: '%s'"),
|
||||
DLEX::GetTokenString(shape).GetData(),
|
||||
netId.GetData()
|
||||
) );
|
||||
|
|
Loading…
Reference in New Issue