Setting a new language now update the layer manager.

This commit is contained in:
charras
2010-02-26 15:39:10 +00:00
parent 1661d6d405
commit 47bfe663fd
16 changed files with 426 additions and 324 deletions
+17
View File
@@ -77,6 +77,23 @@ void WinEDA_BasicFrame::ReCreateMenuBar()
}
/** Vitual function SetLanguage
* called on a language menu selection
* when using a derived function, do not forget to call this one
*/
void WinEDA_BasicFrame::SetLanguage( wxCommandEvent& event )
{
int id = event.GetId();
wxGetApp().SetLanguageIdentifier( id );
if ( wxGetApp().SetLanguage() )
{
wxLogDebug( wxT( "Recreating menu bar due to language change." ) );
ReCreateMenuBar();
Refresh();
}
}
/**
* Load common frame parameters from configuration.