Don't skip loading the wxWidgets message catalogs
The wxWidgets message catalog contains translations for strings that are in the wx-provided dialogs, and these strings aren't contained in our message catalog. Fixes https://gitlab.com/kicad/code/kicad/-/issues/15035
This commit is contained in:
parent
f5d7edaa73
commit
5e740c354e
|
@ -686,7 +686,7 @@ bool PGM_BASE::SetLanguage( wxString& aErrMsg, bool first_time )
|
|||
|
||||
// don't use wxLOCALE_LOAD_DEFAULT flag so that Init() doesn't return
|
||||
// false just because it failed to load wxstd catalog
|
||||
if( !m_locale->Init( m_language_id, wxLOCALE_DONT_LOAD_DEFAULT ) )
|
||||
if( !m_locale->Init( m_language_id ) )
|
||||
{
|
||||
wxLogTrace( traceLocale, wxT( "This language is not supported by the system." ) );
|
||||
|
||||
|
@ -694,7 +694,7 @@ bool PGM_BASE::SetLanguage( wxString& aErrMsg, bool first_time )
|
|||
delete m_locale;
|
||||
|
||||
m_locale = new wxLocale;
|
||||
m_locale->Init( wxLANGUAGE_DEFAULT, wxLOCALE_DONT_LOAD_DEFAULT);
|
||||
m_locale->Init( wxLANGUAGE_DEFAULT );
|
||||
|
||||
aErrMsg = _( "This language is not supported by the operating system." );
|
||||
return false;
|
||||
|
@ -745,7 +745,7 @@ bool PGM_BASE::SetLanguage( wxString& aErrMsg, bool first_time )
|
|||
delete m_locale;
|
||||
|
||||
m_locale = new wxLocale;
|
||||
m_locale->Init( wxLANGUAGE_DEFAULT, wxLOCALE_DONT_LOAD_DEFAULT);
|
||||
m_locale->Init( wxLANGUAGE_DEFAULT );
|
||||
|
||||
aErrMsg = _( "The KiCad language file for this language is not installed." );
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue