Update a few strings based on new string freeze policy.
This commit is contained in:
parent
8cd0c5d574
commit
da46a96623
|
@ -158,9 +158,7 @@ void SCH_EDIT_FRAME::FlipBodyStyle( SCH_SYMBOL* aSymbol )
|
|||
if( aSymbol->IsSelected() )
|
||||
m_toolManager->RunAction<EDA_ITEM*>( EE_ACTIONS::addItemToSel, aSymbol );
|
||||
|
||||
// TODO: 9.0 It would be better as "Change Body Style", but we're past string freeze so
|
||||
// this (existing) string will have to do....
|
||||
commit.Push( _( "Convert Symbol" ) );
|
||||
commit.Push( _( "Change Body Style" ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -197,8 +197,7 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector<wxString>& aMessages,
|
|||
|
||||
if( aSymbol->HasAlternateBodyStyle() )
|
||||
{
|
||||
// TODO: 9.0: change to "A Power Symbol should not have DeMorgan variants"
|
||||
msg.Printf( _( "<b>A Power Symbol should have no convert option</b><br><br>" ) );
|
||||
msg.Printf( _( "<b>A Power Symbol should not have DeMorgan variants</b><br><br>" ) );
|
||||
aMessages.push_back( msg );
|
||||
}
|
||||
|
||||
|
|
|
@ -1706,10 +1706,8 @@ int SCH_EDIT_TOOL::ChangeBodyStyle( const TOOL_EVENT& aEvent )
|
|||
if( symbol->IsNew() )
|
||||
m_toolMgr->PostAction( ACTIONS::refreshPreview );
|
||||
|
||||
// TODO: 9.0 It would be better as "Change Body Style", but we're past string freeze so
|
||||
// this (existing) string will have to do....
|
||||
if( !commit.Empty() )
|
||||
commit.Push( _( "Convert Symbol" ) );
|
||||
commit.Push( _( "Change Body Style" ) );
|
||||
|
||||
if( selection.IsHover() )
|
||||
m_toolMgr->RunAction( EE_ACTIONS::clearSelection );
|
||||
|
|
|
@ -133,9 +133,9 @@ SYMBOL_SEARCH_HANDLER::SYMBOL_SEARCH_HANDLER( SCH_EDIT_FRAME* aFrame ) :
|
|||
m_columns.emplace_back( _HKI( "Page" ), 1, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( wxT( "X" ), 3, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( wxT( "Y" ), 3, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( wxT( "Excl. sim" ), 2, wxLIST_FORMAT_CENTER ); // 9.0 TODO: wxT -> _HKI
|
||||
m_columns.emplace_back( wxT( "Excl. BOM" ), 2, wxLIST_FORMAT_CENTER ); // 9.0 TODO: wxT -> _HKI
|
||||
m_columns.emplace_back( wxT( "Excl. board" ), 2, wxLIST_FORMAT_CENTER ); // 9.0 TODO: wxT -> _HKI
|
||||
m_columns.emplace_back( _HKI( "Excl. sim" ), 2, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( _HKI( "Excl. BOM" ), 2, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( _HKI( "Excl. board" ), 2, wxLIST_FORMAT_CENTER );
|
||||
m_columns.emplace_back( _HKI( "DNP" ), 2, wxLIST_FORMAT_CENTER );
|
||||
}
|
||||
|
||||
|
@ -347,15 +347,14 @@ wxString LABEL_SEARCH_HANDLER::getResultCell( const SCH_SEARCH_HIT& aHit, int aC
|
|||
|
||||
if (aCol == 0)
|
||||
{
|
||||
// 9.0 TODO: wxS() -> _HKI():
|
||||
if(lbl->Type() == SCH_LABEL_T)
|
||||
return wxS( "Local" );
|
||||
return _HKI( "Local" );
|
||||
else if( lbl->Type() == SCH_GLOBAL_LABEL_T )
|
||||
return wxS( "Global" );
|
||||
return _HKI( "Global" );
|
||||
else if( lbl->Type() == SCH_HIER_LABEL_T )
|
||||
return wxS( "Hierarchical" );
|
||||
return _HKI( "Hierarchical" );
|
||||
else if( lbl->Type() == SCH_DIRECTIVE_LABEL_T )
|
||||
return wxS( "Directive" );
|
||||
return _HKI( "Directive" );
|
||||
}
|
||||
else if( aCol == 1 )
|
||||
return lbl->GetShownText( false );
|
||||
|
|
|
@ -117,8 +117,8 @@ wxString EXPORTER_STEP_PARAMS::GetDefaultExportExtension()
|
|||
{
|
||||
switch( m_format )
|
||||
{
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::STEP: return wxS( "step" ); break;
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::GLB: return wxS( "glb" ); break;
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::STEP: return wxS( "step" );
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::GLB: return wxS( "glb" );
|
||||
default: return wxEmptyString; // shouldn't happen
|
||||
}
|
||||
}
|
||||
|
@ -128,8 +128,8 @@ wxString EXPORTER_STEP_PARAMS::GetFormatName()
|
|||
switch( m_format )
|
||||
{
|
||||
// honestly these names shouldn't be translated since they are mostly industry standard acronyms
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::STEP: return wxS( "STEP" ); break;
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::GLB: return wxS("Binary GLTF" ); break;
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::STEP: return wxS( "STEP" );
|
||||
case EXPORTER_STEP_PARAMS::FORMAT::GLB: return wxS("Binary GLTF" );
|
||||
default: return wxEmptyString; // shouldn't happen
|
||||
}
|
||||
}
|
||||
|
|
|
@ -926,8 +926,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
|
|||
// connections and properties are kept) and the sourceFootprint (old footprint) is
|
||||
// deleted
|
||||
pcbframe->ExchangeFootprint( sourceFootprint, newFootprint, commit );
|
||||
// TODO: 9.0: make translatable
|
||||
commit.Push( wxT( "Update Footprint" ) );
|
||||
commit.Push( _( "Update Footprint" ) );
|
||||
}
|
||||
else // This is an insert command
|
||||
{
|
||||
|
@ -940,8 +939,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew )
|
|||
newFootprint->SetPosition( VECTOR2I( 0, 0 ) );
|
||||
viewControls->SetCrossHairCursorPosition( cursorPos, false );
|
||||
const_cast<KIID&>( newFootprint->m_Uuid ) = KIID();
|
||||
// TODO: 9.0: make translatable
|
||||
commit.Push( wxT( "Insert Footprint" ) );
|
||||
commit.Push( _( "Insert Footprint" ) );
|
||||
|
||||
pcbframe->Raise();
|
||||
pcb_ToolManager->RunAction( PCB_ACTIONS::placeFootprint, newFootprint );
|
||||
|
|
|
@ -611,8 +611,7 @@ TOOL_ACTION PCB_ACTIONS::filletLines( TOOL_ACTION_ARGS()
|
|||
TOOL_ACTION PCB_ACTIONS::chamferLines( TOOL_ACTION_ARGS()
|
||||
.Name( "pcbnew.InteractiveEdit.chamferLines" )
|
||||
.Scope( AS_GLOBAL )
|
||||
// TODO: 9.0: Change to "Chamfer Lines..."
|
||||
.FriendlyName( _( "Chamfer Lines" ) )
|
||||
.FriendlyName( _( "Chamfer Lines..." ) )
|
||||
.Tooltip( _( "Cut away corners between selected lines" ) )
|
||||
.Icon( BITMAPS::chamfer ) );
|
||||
|
||||
|
|
|
@ -271,7 +271,7 @@ NETS_SEARCH_HANDLER::NETS_SEARCH_HANDLER( PCB_EDIT_FRAME* aFrame ) :
|
|||
PCB_SEARCH_HANDLER( _HKI( "Nets" ), aFrame )
|
||||
{
|
||||
m_columns.emplace_back( _HKI( "Name" ), 6, wxLIST_FORMAT_LEFT );
|
||||
m_columns.emplace_back( wxT( "Class" ), 6, wxLIST_FORMAT_LEFT ); // 9.0 TODO: wxT -> _HKI
|
||||
m_columns.emplace_back( _HKI( "Class" ), 6, wxLIST_FORMAT_LEFT );
|
||||
}
|
||||
|
||||
|
||||
|
@ -350,7 +350,7 @@ RATSNEST_SEARCH_HANDLER::RATSNEST_SEARCH_HANDLER( PCB_EDIT_FRAME* aFrame ) :
|
|||
PCB_SEARCH_HANDLER( _HKI( "Ratsnest" ), aFrame )
|
||||
{
|
||||
m_columns.emplace_back( _HKI( "Name" ), 6, wxLIST_FORMAT_LEFT );
|
||||
m_columns.emplace_back( wxT( "Class" ), 6, wxLIST_FORMAT_LEFT ); // 9.0 TODO: wxT -> _HKI
|
||||
m_columns.emplace_back( _HKI( "Class" ), 6, wxLIST_FORMAT_LEFT );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1609,7 +1609,7 @@ static struct ZONE_DESC
|
|||
return false;
|
||||
};
|
||||
|
||||
auto isBelowAreaIslandRemoval =
|
||||
auto isAreaBasedIslandRemoval =
|
||||
[]( INSPECTABLE* aItem ) -> bool
|
||||
{
|
||||
if( ZONE* zone = dynamic_cast<ZONE*>( aItem ) )
|
||||
|
@ -1652,7 +1652,6 @@ static struct ZONE_DESC
|
|||
.SetAvailableFunc( isCopperZone )
|
||||
.SetWriteableFunc( isHatchedFill );
|
||||
|
||||
// TODO: Switch to translated
|
||||
auto atLeastMinWidthValidator =
|
||||
[]( const wxAny&& aValue, EDA_ITEM* aZone ) -> VALIDATOR_RESULT
|
||||
{
|
||||
|
@ -1663,30 +1662,27 @@ static struct ZONE_DESC
|
|||
if( val < zone->GetMinThickness() )
|
||||
{
|
||||
return std::make_unique<VALIDATION_ERROR_MSG>(
|
||||
wxT( "Cannot be less than zone minimum width" ) );
|
||||
_( "Cannot be less than zone minimum width" ) );
|
||||
}
|
||||
|
||||
return std::nullopt;
|
||||
};
|
||||
|
||||
// TODO: Switch to translated
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, int>( wxT( "Hatch Width" ),
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, int>( _HKI( "Hatch Width" ),
|
||||
&ZONE::SetHatchThickness, &ZONE::GetHatchThickness, PROPERTY_DISPLAY::PT_SIZE ),
|
||||
groupFill )
|
||||
.SetAvailableFunc( isCopperZone )
|
||||
.SetWriteableFunc( isHatchedFill )
|
||||
.SetValidator( atLeastMinWidthValidator );
|
||||
|
||||
// TODO: Switch to translated
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, int>( wxT( "Hatch Gap" ),
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, int>( _HKI( "Hatch Gap" ),
|
||||
&ZONE::SetHatchGap, &ZONE::GetHatchGap, PROPERTY_DISPLAY::PT_SIZE ),
|
||||
groupFill )
|
||||
.SetAvailableFunc( isCopperZone )
|
||||
.SetWriteableFunc( isHatchedFill )
|
||||
.SetValidator( atLeastMinWidthValidator );
|
||||
|
||||
// TODO: Switch to translated
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, double>( wxT( "Hatch Minimum Hole Ratio" ),
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, double>( _HKI( "Hatch Minimum Hole Ratio" ),
|
||||
&ZONE::SetHatchHoleMinArea, &ZONE::GetHatchHoleMinArea ),
|
||||
groupFill )
|
||||
.SetAvailableFunc( isCopperZone )
|
||||
|
@ -1694,32 +1690,28 @@ static struct ZONE_DESC
|
|||
.SetValidator( PROPERTY_VALIDATORS::PositiveRatioValidator );
|
||||
|
||||
// TODO: Smoothing effort needs to change to enum (in dialog too)
|
||||
// TODO: Switch to translated
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, int>( wxT( "Smoothing Effort" ),
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, int>( _HKI( "Smoothing Effort" ),
|
||||
&ZONE::SetHatchSmoothingLevel, &ZONE::GetHatchSmoothingLevel ),
|
||||
groupFill )
|
||||
.SetAvailableFunc( isCopperZone )
|
||||
.SetWriteableFunc( isHatchedFill );
|
||||
|
||||
// TODO: Switch to translated
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, double>( wxT( "Smoothing Amount" ),
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, double>( _HKI( "Smoothing Amount" ),
|
||||
&ZONE::SetHatchSmoothingValue, &ZONE::GetHatchSmoothingValue ),
|
||||
groupFill )
|
||||
.SetAvailableFunc( isCopperZone )
|
||||
.SetWriteableFunc( isHatchedFill );
|
||||
|
||||
// TODO: Switch to translated
|
||||
propMgr.AddProperty( new PROPERTY_ENUM<ZONE, ISLAND_REMOVAL_MODE>( wxT( "Remove Islands" ),
|
||||
propMgr.AddProperty( new PROPERTY_ENUM<ZONE, ISLAND_REMOVAL_MODE>( _HKI( "Remove Islands" ),
|
||||
&ZONE::SetIslandRemovalMode, &ZONE::GetIslandRemovalMode ),
|
||||
groupFill )
|
||||
.SetAvailableFunc( isCopperZone );
|
||||
|
||||
// TODO: Switch to translated
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, long long int>( wxT( "Minimum Island Area" ),
|
||||
propMgr.AddProperty( new PROPERTY<ZONE, long long int>( _HKI( "Minimum Island Area" ),
|
||||
&ZONE::SetMinIslandArea, &ZONE::GetMinIslandArea, PROPERTY_DISPLAY::PT_AREA ),
|
||||
groupFill )
|
||||
.SetAvailableFunc( isCopperZone )
|
||||
.SetWriteableFunc( isBelowAreaIslandRemoval );
|
||||
.SetWriteableFunc( isAreaBasedIslandRemoval );
|
||||
|
||||
const wxString groupElectrical = _HKI( "Electrical" );
|
||||
|
||||
|
|
Loading…
Reference in New Issue