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:
+12
-4
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user