From 4a0588db7a0e4ceb25c9ffa0ae6e972c79fc5b5d Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 22 Dec 2022 17:44:14 -0500 Subject: [PATCH] Properties: translation fixes --- common/properties/pg_properties.cpp | 2 +- common/widgets/properties_panel.cpp | 3 ++- pcbnew/widgets/pcb_properties_panel.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common/properties/pg_properties.cpp b/common/properties/pg_properties.cpp index 49b9d7c94b..ad6f11457c 100644 --- a/common/properties/pg_properties.cpp +++ b/common/properties/pg_properties.cpp @@ -162,7 +162,7 @@ wxPGProperty* PGPropertyFactory( const PROPERTY_BASE* aProperty ) ret->SetLabel( wxGetTranslation( aProperty->Name() ) ); ret->SetName( aProperty->Name() ); ret->Enable( !aProperty->IsReadOnly() ); - ret->SetHelpString( aProperty->Name() ); + ret->SetHelpString( wxGetTranslation( aProperty->Name() ) ); ret->SetClientData( const_cast( aProperty ) ); } diff --git a/common/widgets/properties_panel.cpp b/common/widgets/properties_panel.cpp index c2cd20e449..123215b6fa 100644 --- a/common/widgets/properties_panel.cpp +++ b/common/widgets/properties_panel.cpp @@ -285,9 +285,10 @@ void PROPERTIES_PANEL::update( const SELECTION& aSelection ) continue; std::vector& properties = pgPropGroups[groupName]; + wxString groupCaption = wxGetTranslation( groupName ); auto groupItem = new wxPropertyCategory( groupName.IsEmpty() ? unspecifiedGroupCaption - : groupName ); + : groupCaption ); m_grid->Append( groupItem ); diff --git a/pcbnew/widgets/pcb_properties_panel.cpp b/pcbnew/widgets/pcb_properties_panel.cpp index 77c39f9297..feda0da147 100644 --- a/pcbnew/widgets/pcb_properties_panel.cpp +++ b/pcbnew/widgets/pcb_properties_panel.cpp @@ -101,6 +101,7 @@ wxPGProperty* PCB_PROPERTIES_PANEL::createPGProperty( const PROPERTY_BASE* aProp ret->SetLabel( wxGetTranslation( aProperty->Name() ) ); ret->SetName( aProperty->Name() ); ret->Enable( !aProperty->IsReadOnly() ); + ret->SetHelpString( wxGetTranslation( aProperty->Name() ) ); ret->SetClientData( const_cast( aProperty ) ); return ret;