Fix compatibility with wxWidgetsversion < 3.1.6

This commit is contained in:
jean-pierre charras 2023-02-22 10:04:45 +01:00
parent ad838e3d73
commit 814dcdab31
1 changed files with 4 additions and 0 deletions

View File

@ -783,7 +783,11 @@ wxString PGM_BASE::GetLanguageTag()
return "";
else
{
#if wxCHECK_VERSION( 3, 1, 6 )
wxString str = langInfo->GetCanonicalWithRegion();
#else
wxString str = langInfo->CanonicalName;
#endif
str.Replace( "_", "-" );
return str;