From 81a4182319fd0532d211c2ee19aac3ae652bd573 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 10 Aug 2017 09:48:17 +0200 Subject: [PATCH] Fix a not easy to translate message --- pcbnew/dialogs/dialog_export_step.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/dialogs/dialog_export_step.cpp b/pcbnew/dialogs/dialog_export_step.cpp index d6b798fb82..e0fa6f0a26 100644 --- a/pcbnew/dialogs/dialog_export_step.cpp +++ b/pcbnew/dialogs/dialog_export_step.cpp @@ -192,10 +192,10 @@ bool DIALOG_EXPORT_STEP::TransferDataFromWindow() if( fn.FileExists() ) { - wxString msg( _( "File: " ) ); - msg.append( fn.GetFullPath() ); - msg.append( "\n" ); - msg.append( _( "already exists. Do you want overwrite this file?" ) ); + wxString msg; + msg.Printf( _( "File: %s\n" + "already exists. Do you want overwrite this file?" ), + fn.GetFullPath().GetData() ); if( wxMessageBox( msg, _( "STEP Export" ), wxYES_NO | wxICON_QUESTION, this ) == wxNO ) return false;