From 8c8ccf83e6be0e16181927849790bf6af030fbd9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 16 Nov 2018 09:43:40 +0100 Subject: [PATCH] Fix a few I18n minor issues. --- gerbview/job_file_reader.cpp | 2 +- pcbnew/dialogs/dialog_position_relative.cpp | 2 +- pcbnew/kicad_plugin.cpp | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gerbview/job_file_reader.cpp b/gerbview/job_file_reader.cpp index ec617b983f..b48393d6e8 100644 --- a/gerbview/job_file_reader.cpp +++ b/gerbview/job_file_reader.cpp @@ -145,7 +145,7 @@ bool GERBER_JOBFILE_READER::ReadGerberJobFile() else { if( m_reporter ) - m_reporter->ReportTail( _( "This job file uses an outdated format. Please, recreate it" ), + m_reporter->ReportTail( _( "This job file uses an outdated format. Please, recreate it." ), REPORTER::RPT_WARNING ); return false; diff --git a/pcbnew/dialogs/dialog_position_relative.cpp b/pcbnew/dialogs/dialog_position_relative.cpp index c76f7e8805..782d605509 100644 --- a/pcbnew/dialogs/dialog_position_relative.cpp +++ b/pcbnew/dialogs/dialog_position_relative.cpp @@ -190,7 +190,7 @@ void DIALOG_POSITION_RELATIVE::UpdateAnchor( EDA_ITEM* aItem ) reference = aItem->GetSelectMenuText( GetUserUnits() ); } - m_referenceInfo->SetLabel( _( "Reference item: " ) + reference ); + m_referenceInfo->SetLabel( wxString::Format( "Reference item: %s", reference ) ); Show( true ); } diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp index ddbdf60c79..0766ef9c48 100644 --- a/pcbnew/kicad_plugin.cpp +++ b/pcbnew/kicad_plugin.cpp @@ -1272,8 +1272,7 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const case PAD_ATTRIB_HOLE_NOT_PLATED: type = "np_thru_hole"; break; default: - THROW_IO_ERROR( wxString::Format( _( "unknown pad attribute: %d" ), - aPad->GetAttribute() ) ); + THROW_IO_ERROR( wxString::Format( "unknown pad attribute: %d", aPad->GetAttribute() ) ); } m_out->Print( aNestLevel, "(pad %s %s %s",