diff --git a/common/gal/opengl/utils.cpp b/common/gal/opengl/utils.cpp index ad32d1d9b1..0f36ccc08e 100644 --- a/common/gal/opengl/utils.cpp +++ b/common/gal/opengl/utils.cpp @@ -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; diff --git a/pcbnew/onleftclick.cpp b/pcbnew/onleftclick.cpp index 336045048d..217b71bbe2 100644 --- a/pcbnew/onleftclick.cpp +++ b/pcbnew/onleftclick.cpp @@ -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; } diff --git a/pcbnew/pcbnew_config.cpp b/pcbnew/pcbnew_config.cpp index dd4a245ba8..23bfd90a8a 100644 --- a/pcbnew/pcbnew_config.cpp +++ b/pcbnew/pcbnew_config.cpp @@ -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; } } diff --git a/pcbnew/tool_onrightclick.cpp b/pcbnew/tool_onrightclick.cpp index 81095ff80c..969eda5cf7 100644 --- a/pcbnew/tool_onrightclick.cpp +++ b/pcbnew/tool_onrightclick.cpp @@ -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; } } diff --git a/pcbnew/tool_pcb.cpp b/pcbnew/tool_pcb.cpp index 6aa12e8aa5..cf7bf5edb0 100644 --- a/pcbnew/tool_pcb.cpp +++ b/pcbnew/tool_pcb.cpp @@ -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; } }