Make translations a bit easier.

This commit is contained in:
Jeff Young 2020-11-23 21:51:27 +00:00
parent bf04fc3b72
commit 41aa97d0d2
1 changed files with 14 additions and 5 deletions

View File

@ -357,11 +357,20 @@ bool DIALOG_EXCHANGE_FOOTPRINTS::processFootprint( FOOTPRINT* aFootprint, const
wxString msg;
// Load new footprint.
msg.Printf( _( "%s footprint \"%s\" (from \"%s\") to \"%s\"" ),
m_updateMode ? _( "Update" ) : _( "Change" ),
aFootprint->GetReference(),
oldFPID.Format().c_str(),
aNewFPID.Format().c_str() );
if( m_updateMode )
{
msg.Printf( _( "Update footprint %s from '%s' to '%s'" ),
aFootprint->GetReference(),
oldFPID.Format().c_str(),
aNewFPID.Format().c_str() );
}
else
{
msg.Printf( _( "Change footprint %s from '%s' to '%s'" ),
aFootprint->GetReference(),
oldFPID.Format().c_str(),
aNewFPID.Format().c_str() );
}
FOOTPRINT* newFootprint = m_parent->LoadFootprint( aNewFPID );