Make internal errors messages not translatable

This commit is contained in:
jean-pierre charras 2017-08-01 13:12:59 +02:00
parent 816307e500
commit 1f6854f2b8
5 changed files with 10 additions and 19 deletions

View File

@ -76,10 +76,7 @@ int checkGlError( const std::string& aInfo, bool aThrow )
if( aThrow )
throw std::runtime_error( (const char*) errorMsg.char_str() );
else
DisplayErrorMessage(
nullptr,
_( "OpenGL error occurred" ),
errorMsg );
DisplayErrorMessage( nullptr, "OpenGL error occurred", errorMsg );
}
return result;

View File

@ -545,11 +545,9 @@ void PCB_EDIT_FRAME::OnLeftDClick( wxDC* aDC, const wxPoint& aPosition )
if( curr_item->Type() != PCB_LINE_T )
{
DisplayErrorMessage(
this,
_( "Item type is incorrect" ),
wxString::Format( _( "Selected item type is %d\n"
"Expected: %d" ), curr_item->Type(), PCB_LINE_T ) );
DisplayErrorMessage( this, "Item type is incorrect",
wxString::Format( "Selected item type is %d\n"
"Expected: %d", curr_item->Type(), PCB_LINE_T ) );
m_canvas->SetAutoPanRequest( false );
break;
}

View File

@ -256,10 +256,8 @@ void PCB_EDIT_FRAME::Process_Config( wxCommandEvent& event )
break;
default:
DisplayErrorMessage(
this,
_( "Unkown ID in Process Config" ),
wxString::Format( _( "PCB_EDIT_FRAME::Process_Config received ID %d" ), id ) );
DisplayErrorMessage( this, "Unkown ID in Process Config",
wxString::Format( "PCB_EDIT_FRAME::Process_Config received ID %d", id ) );
break;
}
}

View File

@ -101,9 +101,8 @@ void FOOTPRINT_EDIT_FRAME::ToolOnRightClick( wxCommandEvent& event )
break;
default:
DisplayErrorMessage( this,
_( "Invalid tool ID "),
wxString::Format( _( "ToolOnRightClick called with ID %d" ), id ) );
DisplayErrorMessage( this, "Invalid tool ID ",
wxString::Format( "ToolOnRightClick called with ID %d", id ) );
break;
}
}

View File

@ -813,9 +813,8 @@ void PCB_EDIT_FRAME::OnSelectOptionToolbar( wxCommandEvent& event )
break;
default:
DisplayErrorMessage( this,
_( "Invalid toolbar option" ),
_( "PCB_EDIT_FRAME::OnSelectOptionToolbar error \n (event not handled!)" ) );
DisplayErrorMessage( this, "Invalid toolbar option",
"PCB_EDIT_FRAME::OnSelectOptionToolbar error \n (event not handled!)" );
break;
}
}