The REPORTER interface is inherently line-based.

Also fixes a bunch of error messages that were similar but not
identical (which just increases translation burden).

Fixes https://gitlab.com/kicad/code/kicad/issues/8723
This commit is contained in:
Jeff Young
2021-07-05 13:41:06 +01:00
parent 6cc564aead
commit ea6769b702
20 changed files with 71 additions and 76 deletions
+12 -4
View File
@@ -280,28 +280,36 @@ void SCH_EDIT_FRAME::AnnotateSymbols( ANNOTATE_SCOPE_T aAnnotateScope,
continue;
if( symbol->GetUnitCount() > 1 )
msg.Printf( _( "Updated %s (unit %s) from %s to %s" ),
{
msg.Printf( _( "Updated %s (unit %s) from %s to %s." ),
symbol->GetValue( sheet, true ),
LIB_SYMBOL::SubReference( symbol->GetUnit(), false ),
prevRef,
newRef );
}
else
msg.Printf( _( "Updated %s from %s to %s" ),
{
msg.Printf( _( "Updated %s from %s to %s." ),
symbol->GetValue( sheet, true ),
prevRef,
newRef );
}
}
else
{
if( symbol->GetUnitCount() > 1 )
msg.Printf( _( "Annotated %s (unit %s) as %s" ),
{
msg.Printf( _( "Annotated %s (unit %s) as %s." ),
symbol->GetValue( sheet, true ),
LIB_SYMBOL::SubReference( symbol->GetUnit(), false ),
newRef );
}
else
msg.Printf( _( "Annotated %s as %s" ),
{
msg.Printf( _( "Annotated %s as %s." ),
symbol->GetValue( sheet, true ),
newRef );
}
}
aReporter.Report( msg, RPT_SEVERITY_ACTION );