Commit 9c0c8925 authored by jean-pierre charras's avatar jean-pierre charras

Make hotkeys editor titles translatable.

parent 79af0c45
...@@ -275,7 +275,7 @@ HOTKEYS_EDITOR_DIALOG::HOTKEYS_EDITOR_DIALOG( EDA_BASE_FRAME* aParent, ...@@ -275,7 +275,7 @@ HOTKEYS_EDITOR_DIALOG::HOTKEYS_EDITOR_DIALOG( EDA_BASE_FRAME* aParent,
for( section = m_hotkeys; section->m_HK_InfoList; section++ ) for( section = m_hotkeys; section->m_HK_InfoList; section++ )
{ {
m_hotkeySectionPages.push_back( new HOTKEY_SECTION_PAGE( this, m_hotkeySections, m_hotkeySectionPages.push_back( new HOTKEY_SECTION_PAGE( this, m_hotkeySections,
_( *section->m_Title ), wxGetTranslation( *section->m_Title ),
section ) ); section ) );
} }
......
...@@ -52,11 +52,11 @@ wxString g_LibEditSectionTag( wxT( "[libedit]" ) ); ...@@ -52,11 +52,11 @@ wxString g_LibEditSectionTag( wxT( "[libedit]" ) );
wxString g_BoardEditorSectionTag( wxT( "[pcbnew]" ) ); wxString g_BoardEditorSectionTag( wxT( "[pcbnew]" ) );
wxString g_ModuleEditSectionTag( wxT( "[footprinteditor]" ) ); wxString g_ModuleEditSectionTag( wxT( "[footprinteditor]" ) );
wxString g_CommonSectionTitle( wxT( "Common" ) ); wxString g_CommonSectionTitle( _HKI( "Common" ) );
wxString g_SchematicSectionTitle( wxT( "Schematic Editor" ) ); wxString g_SchematicSectionTitle( _HKI( "Schematic Editor" ) );
wxString g_LibEditSectionTitle( wxT( "Library Editor" ) ); wxString g_LibEditSectionTitle( _HKI( "Library Editor" ) );
wxString g_BoardEditorSectionTitle( wxT( "Board Editor" ) ); wxString g_BoardEditorSectionTitle( _HKI( "Board Editor" ) );
wxString g_ModuleEditSectionTitle( wxT( "Footprint Editor" ) ); wxString g_ModuleEditSectionTitle( _HKI( "Footprint Editor" ) );
/* Class to handle hotkey commnands. hotkeys have a default value /* Class to handle hotkey commnands. hotkeys have a default value
......
...@@ -167,9 +167,11 @@ EDA_HOTKEY* common_Hotkey_List[] = ...@@ -167,9 +167,11 @@ EDA_HOTKEY* common_Hotkey_List[] =
// list of sections and corresponding hotkey list for Kicad // list of sections and corresponding hotkey list for Kicad
// (used to create an hotkey config file, and edit hotkeys ) // (used to create an hotkey config file, and edit hotkeys )
// here we have only one section. // here we have only one section.
wxString sectionTitle( _HKI( "Kicad Manager Hotkeys" ) );
struct EDA_HOTKEY_CONFIG kicad_Manager_Hokeys_Descr[] = { struct EDA_HOTKEY_CONFIG kicad_Manager_Hokeys_Descr[] = {
{ &g_CommonSectionTag, common_Hotkey_List, &g_CommonSectionTitle }, { &g_CommonSectionTag, common_Hotkey_List, &sectionTitle },
{ NULL, NULL, NULL } { NULL, NULL, NULL }
}; };
///////////// End hotkeys management /////////////////////////////////////// ///////////// End hotkeys management ///////////////////////////////////////
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment