mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-15 10:43:15 +02:00
Fix some issues in ERC error messages.
1) use consistent punctuation 2) make sure all are translated Fixes https://gitlab.com/kicad/code/kicad/issues/12432
This commit is contained in:
parent
9a4a68fb5e
commit
1e64db779c
@ -685,14 +685,14 @@ int SCH_REFERENCE_LIST::CheckAnnotation( ANNOTATION_ERROR_HANDLER aHandler )
|
|||||||
|
|
||||||
if( ( flatList[ii].m_unit > 0 ) && ( flatList[ii].m_unit < 0x7FFFFFFF ) )
|
if( ( flatList[ii].m_unit > 0 ) && ( flatList[ii].m_unit < 0x7FFFFFFF ) )
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Item not annotated: %s%s (unit %d)\n" ),
|
msg.Printf( _( "Item not annotated: %s%s (unit %d)" ),
|
||||||
flatList[ii].GetRef(),
|
flatList[ii].GetRef(),
|
||||||
tmp,
|
tmp,
|
||||||
flatList[ii].m_unit );
|
flatList[ii].m_unit );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
msg.Printf( _( "Item not annotated: %s%s\n" ), flatList[ii].GetRef(), tmp );
|
msg.Printf( _( "Item not annotated: %s%s" ), flatList[ii].GetRef(), tmp );
|
||||||
}
|
}
|
||||||
|
|
||||||
aHandler( ERCE_UNANNOTATED, msg, &flatList[ii], nullptr );
|
aHandler( ERCE_UNANNOTATED, msg, &flatList[ii], nullptr );
|
||||||
@ -710,7 +710,7 @@ int SCH_REFERENCE_LIST::CheckAnnotation( ANNOTATION_ERROR_HANDLER aHandler )
|
|||||||
else
|
else
|
||||||
tmp = wxT( "?" );
|
tmp = wxT( "?" );
|
||||||
|
|
||||||
msg.Printf( _( "Error: symbol %s%s%s (unit %d) exceeds units defined (%d)\n" ),
|
msg.Printf( _( "Error: symbol %s%s%s (unit %d) exceeds units defined (%d)" ),
|
||||||
flatList[ii].GetRef(),
|
flatList[ii].GetRef(),
|
||||||
tmp,
|
tmp,
|
||||||
LIB_SYMBOL::SubReference( flatList[ii].m_unit ),
|
LIB_SYMBOL::SubReference( flatList[ii].m_unit ),
|
||||||
|
@ -280,7 +280,7 @@ void ERC_TESTER::TestTextVars( DS_PROXY_VIEW_ITEM* aDrawingSheet )
|
|||||||
if( text->GetShownText().Matches( wxT( "*${*}*" ) ) )
|
if( text->GetShownText().Matches( wxT( "*${*}*" ) ) )
|
||||||
{
|
{
|
||||||
std::shared_ptr<ERC_ITEM> erc = ERC_ITEM::Create( ERCE_UNRESOLVED_VARIABLE );
|
std::shared_ptr<ERC_ITEM> erc = ERC_ITEM::Create( ERCE_UNRESOLVED_VARIABLE );
|
||||||
erc->SetErrorMessage( _( "Unresolved text variable in drawing sheet." ) );
|
erc->SetErrorMessage( _( "Unresolved text variable in drawing sheet" ) );
|
||||||
|
|
||||||
SCH_MARKER* marker = new SCH_MARKER( erc, text->GetPosition() );
|
SCH_MARKER* marker = new SCH_MARKER( erc, text->GetPosition() );
|
||||||
screen->Append( marker );
|
screen->Append( marker );
|
||||||
@ -435,7 +435,7 @@ int ERC_TESTER::TestNoConnectPins()
|
|||||||
ercItem->SetItems( pair.second[0], pair.second[1],
|
ercItem->SetItems( pair.second[0], pair.second[1],
|
||||||
pair.second.size() > 2 ? pair.second[2] : nullptr,
|
pair.second.size() > 2 ? pair.second[2] : nullptr,
|
||||||
pair.second.size() > 3 ? pair.second[3] : nullptr );
|
pair.second.size() > 3 ? pair.second[3] : nullptr );
|
||||||
ercItem->SetErrorMessage( _( "Pins with \"no connection\" type are connected" ) );
|
ercItem->SetErrorMessage( _( "Pins with 'no connection' type are connected" ) );
|
||||||
|
|
||||||
SCH_MARKER* marker = new SCH_MARKER( ercItem, pair.first );
|
SCH_MARKER* marker = new SCH_MARKER( ercItem, pair.first );
|
||||||
sheet.LastScreen()->Append( marker );
|
sheet.LastScreen()->Append( marker );
|
||||||
@ -732,7 +732,7 @@ int ERC_TESTER::TestLibSymbolIssues()
|
|||||||
{
|
{
|
||||||
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
||||||
ercItem->SetItems( symbol );
|
ercItem->SetItems( symbol );
|
||||||
msg.Printf( _( "The current configuration does not include the library '%s'." ),
|
msg.Printf( _( "The current configuration does not include the library '%s'" ),
|
||||||
UnescapeString( libName ) );
|
UnescapeString( libName ) );
|
||||||
ercItem->SetErrorMessage( msg );
|
ercItem->SetErrorMessage( msg );
|
||||||
|
|
||||||
@ -743,7 +743,7 @@ int ERC_TESTER::TestLibSymbolIssues()
|
|||||||
{
|
{
|
||||||
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
||||||
ercItem->SetItems( symbol );
|
ercItem->SetItems( symbol );
|
||||||
msg.Printf( _( "The library '%s' is not enabled in the current configuration." ),
|
msg.Printf( _( "The library '%s' is not enabled in the current configuration" ),
|
||||||
UnescapeString( libName ) );
|
UnescapeString( libName ) );
|
||||||
ercItem->SetErrorMessage( msg );
|
ercItem->SetErrorMessage( msg );
|
||||||
|
|
||||||
@ -758,7 +758,7 @@ int ERC_TESTER::TestLibSymbolIssues()
|
|||||||
{
|
{
|
||||||
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
||||||
ercItem->SetItems( symbol );
|
ercItem->SetItems( symbol );
|
||||||
msg.Printf( "Symbol '%s' not found in symbol library '%s'.",
|
msg.Printf( _( "Symbol '%s' not found in symbol library '%s'" ),
|
||||||
UnescapeString( symbolName ),
|
UnescapeString( symbolName ),
|
||||||
UnescapeString( libName ) );
|
UnescapeString( libName ) );
|
||||||
ercItem->SetErrorMessage( msg );
|
ercItem->SetErrorMessage( msg );
|
||||||
@ -774,7 +774,7 @@ int ERC_TESTER::TestLibSymbolIssues()
|
|||||||
{
|
{
|
||||||
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
std::shared_ptr<ERC_ITEM> ercItem = ERC_ITEM::Create( ERCE_LIB_SYMBOL_ISSUES );
|
||||||
ercItem->SetItems( symbol );
|
ercItem->SetItems( symbol );
|
||||||
msg.Printf( "Symbol '%s' has been modified in library '%s'.",
|
msg.Printf( _( "Symbol '%s' has been modified in library '%s'" ),
|
||||||
UnescapeString( symbolName ),
|
UnescapeString( symbolName ),
|
||||||
UnescapeString( libName ) );
|
UnescapeString( libName ) );
|
||||||
ercItem->SetErrorMessage( msg );
|
ercItem->SetErrorMessage( msg );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user