Add locale information to the Version Info

This commit is contained in:
Seth Hillbrand
2024-04-18 12:41:31 -07:00
parent d00cda3b2f
commit 2ca8abd7f1
+17 -2
View File
@@ -267,10 +267,11 @@ wxString GetVersionInfoData( const wxString& aTitle, bool aHtml, bool aBrief )
aMsg << " without C++ ABI" << eol;
#endif
aMsg << eol;
// Add build settings config (build options):
#if defined( KICAD_USE_EGL ) || ! defined( NDEBUG )
aMsg << eol;
aMsg << "Build settings:" << eol;
#endif
#ifdef KICAD_USE_EGL
aMsg << indent4 << "KICAD_USE_EGL=" << ON;
@@ -305,5 +306,19 @@ wxString GetVersionInfoData( const wxString& aTitle, bool aHtml, bool aBrief )
#endif
#endif
wxLocale* locale = wxGetLocale();
if( locale )
{
aMsg << eol;
aMsg << "Locale: " << eol;
aMsg << indent4 << "Lang: " << locale->GetCanonicalName() << eol;
aMsg << indent4 << "Enc: " << locale->GetSystemEncodingName() << eol;
aMsg << indent4 << "Num: "
<< wxString::Format( "%d%s%.1f", 1,
locale->GetInfo( wxLocaleInfo::wxLOCALE_THOUSANDS_SEP ), 234.5 )
<< eol;
}
return aMsg;
}