Fix a few I18N issues.
This commit is contained in:
parent
748bee1bc7
commit
ff0a728753
|
@ -488,10 +488,10 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRulesForItems( DRC_CONSTRAINT_TYPE_T aConstraintI
|
|||
const CONSTRAINT_WITH_CONDITIONS* rcons = ruleset->sortedConstraints[ ii ];
|
||||
bool implicit = rcons->parentRule && rcons->parentRule->m_Implicit;
|
||||
|
||||
REPORT( wxString::Format( _( "Checking %s %s." ),
|
||||
implicit ? _( "" ) : _( "rule" ),
|
||||
rcons->parentRule->m_Name ) )
|
||||
|
||||
if( implicit )
|
||||
REPORT( wxString::Format( _( "Checking %s." ), rcons->parentRule->m_Name ) )
|
||||
else
|
||||
REPORT( wxString::Format( _( "Checking rule %s." ), rcons->parentRule->m_Name ) )
|
||||
if( aLayer != UNDEFINED_LAYER && !rcons->layerTest.test( aLayer ) )
|
||||
{
|
||||
REPORT( wxString::Format( _( "Rule layer \"%s\" not matched." ),
|
||||
|
|
|
@ -72,7 +72,7 @@ static void onLayer( LIBEVAL::CONTEXT* aCtx, void *self )
|
|||
}
|
||||
|
||||
if( !anyMatch )
|
||||
aCtx->ReportError( wxString::Format( _( "Unrecognized layer '%s' " ), layerName ) );
|
||||
aCtx->ReportError( wxString::Format( _( "Unrecognized layer '%s'" ), layerName ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -52,17 +52,18 @@ void CADSTAR_PCB_ARCHIVE_LOADER::Load( ::BOARD* aBoard )
|
|||
long long designSizeYkicad = (long long) designLimit.y * KiCadUnitMultiplier;
|
||||
|
||||
// Max size limited by the positive dimention of wxPoint
|
||||
long long maxDesignSizekicad = (long long) std::numeric_limits<int>::max();
|
||||
double maxDesignSizekicad = Iu2Millimeter( std::numeric_limits<int>::max() );
|
||||
|
||||
if( designSizeXkicad > maxDesignSizekicad || designSizeYkicad > maxDesignSizekicad )
|
||||
THROW_IO_ERROR( wxString::Format(
|
||||
_( "The design is too large and cannot be imported into KiCad. \n"
|
||||
"Please reduce the maximum design size in CADSTAR by navigating to: \n"
|
||||
"Design Tab -> Properties -> Design Options -> Maximum Design Size. \n"
|
||||
"Current Design size: %.2f, %.2f milimetres. \n"
|
||||
"Maximum permitted design size: %.2f, %.2f milimetres.\n" ),
|
||||
(double) designSizeXkicad / 1E6, (double) designSizeYkicad / 1E6,
|
||||
(double) maxDesignSizekicad / 1E6, (double) maxDesignSizekicad / 1E6 ) );
|
||||
"Current Design size: %.2f, %.2f millimeters. \n"
|
||||
"Maximum permitted design size: %.2f, %.2f millimeters.\n" ),
|
||||
(double) designSizeXkicad / PCB_IU_PER_MM,
|
||||
(double) designSizeYkicad / PCB_IU_PER_MM,
|
||||
maxDesignSizekicad, maxDesignSizekicad ) );
|
||||
|
||||
mDesignCenter =
|
||||
( Assignments.Technology.DesignArea.first + Assignments.Technology.DesignArea.second )
|
||||
|
|
Loading…
Reference in New Issue