Need only wxWidgets 3.1.1 for translation context strings

This commit is contained in:
Paul Licameli 2020-05-24 11:37:12 -04:00
parent 2eb538f385
commit 7c246ddc26
2 changed files with 6 additions and 1 deletions

View File

@ -363,7 +363,7 @@ wxString TranslatableString::DoChooseFormat(
? ( nn == 1 ? singular : plural )
: wxGetTranslation(
singular, plural, nn
#if wxCHECK_VERSION(3, 1, 3)
#if HAS_I18N_CONTEXTS
, wxString{} // domain
, context
#endif

View File

@ -151,4 +151,9 @@ TranslatableStrings Msgids(
const EnumValueSymbol strings[], size_t nStrings);
TranslatableStrings Msgids( const std::vector<EnumValueSymbol> &strings );
// Whether disambiguationg contexts are supported
// If not, then the program builds and runs, but strings in the catalog with
// contexts will fail to translate
#define HAS_I18N_CONTEXTS wxCHECK_VERSION(3, 1, 1)
#endif