From 814dcdab319b25da0f999b754d630dfa487f65f6 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 22 Feb 2023 10:04:45 +0100 Subject: [PATCH] Fix compatibility with wxWidgetsversion < 3.1.6 --- common/pgm_base.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp index 0e74b023f7..286d222cb0 100644 --- a/common/pgm_base.cpp +++ b/common/pgm_base.cpp @@ -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;