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;